Prepare php8.0 support
This commit is contained in:
parent
490b63dbaa
commit
10c67f312a
@ -665,7 +665,7 @@ var $currentCoordinationObject=null;
|
|||||||
/* Tentative de connexion */
|
/* Tentative de connexion */
|
||||||
// if ($GLOBALS["SYSTEM_USER_SESSION"]->isNew==true)
|
// 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="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;
|
$message="auth-disconnect: ".date("Y-m-d H:i:s")." Disconnection success for user ".$login." from ".$clientIp;
|
||||||
addToLog( $message, $CONF_AUTH_FILE );
|
addToLog( $message, $CONF_AUTH_FILE );
|
||||||
|
@ -109,6 +109,7 @@ ini_set('include_path', $path);
|
|||||||
//require_once('ErrorManager.php');
|
//require_once('ErrorManager.php');
|
||||||
|
|
||||||
//Désactivation de magic_quotes_runtime de php.ini
|
//Désactivation de magic_quotes_runtime de php.ini
|
||||||
|
|
||||||
if (get_magic_quotes_runtime()) set_magic_quotes_runtime(0);
|
if (get_magic_quotes_runtime()) set_magic_quotes_runtime(0);
|
||||||
|
|
||||||
class ModeliXe extends ErrorManager{
|
class ModeliXe extends ErrorManager{
|
||||||
|
@ -228,7 +228,7 @@ var $src = null;
|
|||||||
{
|
{
|
||||||
$c="";
|
$c="";
|
||||||
for($i=0;$i<$l;$i++) {
|
for($i=0;$i<$l;$i++) {
|
||||||
$c.=$a{$i}^$b{$i};
|
$c.=$a[$i]^$b[$i];
|
||||||
}
|
}
|
||||||
return($c);
|
return($c);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user