X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=139812d742d19fc69d3382f637fcf7f47a6f4ec6;hb=fab87c2696b9d6a26310f1bfc024b018ca5184fe;hp=c87ebf65ad390da04f4c25de3adecd1fe270f98a;hpb=89ccc83ba497fa91eaaf2a2a52d8549aea5e2aee;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index c87ebf65..139812d7 100644 --- a/index.php +++ b/index.php @@ -78,8 +78,8 @@ require_once 'application/Updater.php'; use \Shaarli\Languages; use \Shaarli\ThemeUtils; use \Shaarli\Config\ConfigManager; -use \Shaarli\LoginManager; -use \Shaarli\SessionManager; +use \Shaarli\Security\LoginManager; +use \Shaarli\Security\SessionManager; // Ensure the PHP version is supported try { @@ -179,7 +179,7 @@ if (! is_file($conf->getConfigFileExt())) { // a token depending of deployment salt, user password, and the current ip define('STAY_SIGNED_IN_TOKEN', sha1($conf->get('credentials.hash') . $_SERVER['REMOTE_ADDR'] . $conf->get('credentials.salt'))); -$loginManager->checkLoginState($_SESSION, $_COOKIE, WEB_PATH, $clientIpId, STAY_SIGNED_IN_TOKEN); +$loginManager->checkLoginState($_COOKIE, WEB_PATH, $clientIpId, STAY_SIGNED_IN_TOKEN); /** * Adapter function to ensure compatibility with third-party templates