getName()]=(string)$setting->value; //echo $setting->getName()."=".$setting->value."
"; } //Setting the unique identifier for the user, default we use the user's IP adress // This first version sets the unique identifier to be the user's IP adress function getTheIP() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } if ($ip=="::1"){ $ip="127.0.0.1"; } return (string)$ip; } // This second version sets the unique identifier to be a random generated token. if(empty($_COOKIE["clientUniqueIdentifier"])){ setcookie("clientUniqueIdentifier", "id_".rand(100,999999)); } // Choose one of the 2 versions above to use, or implement your own unique identifier method. $avconfig["clientUniqueIdentifier"] = getTheIP(); //$avconfig["clientUniqueIdentifier"] = $_COOKIE["clientUniqueIdentifier"]; ##################### DO NOT EDIT BELOW ############################ //integration.php most commonly contains code for integrating with 3rd party cms systems if (file_exists("integration.php")){ include("integration.php");} if (file_exists("Mobile_Detect.php")){ include("Mobile_Detect.php");} $detect = new Mobile_Detect(); if(isset($doNotEcho)){ if($doNotEcho != true){ echo 'a=b';//as3 won't allow the var/value air to start with & so we echo some dummy data first foreach ($avconfig as $key => $value){ echo '&'.$key.'='.urlencode($value); } } }else if(!$detect->isMobile() && !$detect->isTablet()){ echo 'a=b';//as3 won't allow the var/value air to start with & so we echo some dummy data first foreach ($avconfig as $key => $value){ echo '&'.$key.'='.urlencode($value); } } ?>