Environmant

This commit is contained in:
CHIEFSOFT\ameye
2024-10-02 15:04:42 -04:00
parent 48984e7d48
commit b189bd33fb
2 changed files with 7 additions and 5 deletions
+6 -3
View File
@@ -11,13 +11,16 @@ class Home extends BaseController
public function promoIndex($promo,$promoOwner=''){
// var_dump( $_SERVER);
//exit();
$httpHost = $_SERVER['HTTP_HOST'];
if ( $_SERVER['HTTP_HOST'] == 'https://promo.wrenchboard.com'){
if ( $httpHost == 'https://promo.wrenchboard.com' || $httpHost == 'promo.wrenchboard.com' ){
$_SERVER['CI_ENV'] = 'production';
$_SERVER['CI_ENVIRONMENT'] = 'production';
}
// var_dump( $_SERVER);
// exit();
$in["promo"] = $promo;
$in["promo_owner"] = $promoOwner;
$out = $this->APIcall('POST', $this->wrenchApiServer(). 'start',$in);