{success”:false,”error”:{code”:”Illegal request”,”message”:”Illegal request”}}
$site_URL = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on' ? 'https': 'http')."://".$_SERVER['HTTP_HOST'].(dirname($_SERVER['PHP_SELF']) != '/' ? dirname($_SERVER['PHP_SELF']) : '').'/';
.
require_once 'libraries/csrf-magic/csrf-magic.php';
.
//require_once 'libraries/csrf-magic/csrf-magic.php';
// Check we are being connected to on the right host and protocol
global $site_URL;$request_URL = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on')? 'https': 'http')."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if ($site_URL && stripos($request_URL, $site_URL) !== 0){ header("Location: $site_URL",TRUE,301); exit; }
/*
// Check we are being connected to on the right host and protocol
global $site_URL;
$request_URL = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']==='on')? 'https': 'http')."://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if ($site_URL && stripos($request_URL, $site_URL) !== 0){
header("Location: $site_URL",TRUE,301);
exit;
}
*/
if ($_SERVER['HTTP_HOST'] == '216.58.211.46') {
$site_URL = 'http://216.58.211.46/vtigercrm6/';
} else {
$site_URL = 'http://192.168.1.100/vtigercrm6/';
}
,server ,site ,http ,url ,https ,site url ,server https ,کد پیاچپی ,url , ,isset server https , && server https ,site url && stripos request ,host server request
درباره این سایت