diff --git a/lib/system/system_control/systemcontrol.php b/lib/system/system_control/systemcontrol.php index a29825e..16a8be7 100755 --- a/lib/system/system_control/systemcontrol.php +++ b/lib/system/system_control/systemcontrol.php @@ -665,7 +665,7 @@ var $currentCoordinationObject=null; /* Tentative de connexion */ // if ($GLOBALS["SYSTEM_USER_SESSION"]->isNew==true) // { - $clientIp=isset($_SERVER['HTTP_CLIENT_IP']) ? $_SERVER['HTTP_CLIENT_IP'] : isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; + $clientIp=isset($_SERVER['HTTP_CLIENT_IP']) ? $_SERVER['HTTP_CLIENT_IP'] : (isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']); // $message="log:".$login.",".date("Y-m-d H:i:s").",uid:".$GLOBALS["SYSTEM_USER_SESSION"]->user->getId().",eid:".$GLOBALS["SYSTEM_USER_SESSION"]->entryNodeId.",nid:".$GLOBALS["SYSTEM_USER_SESSION"]->navigationNodeId.",3"; $message="auth-disconnect: ".date("Y-m-d H:i:s")." Disconnection success for user ".$login." from ".$clientIp; addToLog( $message, $CONF_AUTH_FILE ); diff --git a/lib/system/system_template/modelixe.php b/lib/system/system_template/modelixe.php index 05dcb01..e2ddcc0 100755 --- a/lib/system/system_template/modelixe.php +++ b/lib/system/system_template/modelixe.php @@ -109,6 +109,7 @@ ini_set('include_path', $path); //require_once('ErrorManager.php'); //Désactivation de magic_quotes_runtime de php.ini + if (get_magic_quotes_runtime()) set_magic_quotes_runtime(0); class ModeliXe extends ErrorManager{ diff --git a/lib/system/system_utils/chaine.php b/lib/system/system_utils/chaine.php index 09bb75b..1eae806 100755 --- a/lib/system/system_utils/chaine.php +++ b/lib/system/system_utils/chaine.php @@ -228,7 +228,7 @@ var $src = null; { $c=""; for($i=0;$i<$l;$i++) { - $c.=$a{$i}^$b{$i}; + $c.=$a[$i]^$b[$i]; } return($c); }