X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth.php;h=763596365a1f8c38897bc74288552e3d1e0403d7;hb=f23469121662325745660b3e39ca31f02365a8b2;hp=f220e1685b649878459a64e459414c6ab5f3b31d;hpb=5adfeb0bd5fed2f793332056c03bb7c043d5fc69;p=friendica.git diff --git a/include/auth.php b/include/auth.php index f220e1685b..763596365a 100644 --- a/include/auth.php +++ b/include/auth.php @@ -33,7 +33,7 @@ if (isset($_COOKIE["Friendica"])) { if (!isset($_SESSION) || !isset($_SESSION['authenticated'])) { authenticate_success($r[0]); - if (get_config('system','paranoia')) + if (Config::get('system','paranoia')) $_SESSION['addr'] = $data->ip; } } @@ -67,7 +67,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params' // already logged in user returning - $check = get_config('system','paranoia'); + $check = Config::get('system','paranoia'); // extra paranoia - if the IP changed, log them out if ($check && ($_SESSION['addr'] != $_SERVER['REMOTE_ADDR'])) { logger('Session address changed. Paranoid setting in effect, blocking session. '. @@ -109,7 +109,7 @@ if (isset($_SESSION) && x($_SESSION,'authenticated') && (!x($_POST,'auth-params' if ((x($_POST,'openid_url')) && strlen($_POST['openid_url']) || (x($_POST,'username')) && strlen($_POST['username'])) { - $noid = get_config('system','no_openid'); + $noid = Config::get('system','no_openid'); $openid_url = trim((strlen($_POST['openid_url'])?$_POST['openid_url']:$_POST['username']));