CI_ENV
This commit is contained in:
@@ -11,6 +11,13 @@ class Home extends BaseController
|
|||||||
|
|
||||||
public function promoIndex($promo,$promoOwner=''){
|
public function promoIndex($promo,$promoOwner=''){
|
||||||
|
|
||||||
|
// var_dump( $_SERVER);
|
||||||
|
//exit();
|
||||||
|
|
||||||
|
if ( $_SERVER['HTTP_HOST'] == 'https://promo.wrenchboard.com'){
|
||||||
|
$_SERVER['CI_ENV'] = 'production';
|
||||||
|
}
|
||||||
|
|
||||||
$in["promo"] = $promo;
|
$in["promo"] = $promo;
|
||||||
$in["promo_owner"] = $promoOwner;
|
$in["promo_owner"] = $promoOwner;
|
||||||
$out = $this->APIcall('POST', $this->wrenchApiServer(). 'start',$in);
|
$out = $this->APIcall('POST', $this->wrenchApiServer(). 'start',$in);
|
||||||
|
|||||||
Reference in New Issue
Block a user