function loginCallback() { header('Cache-Control: no-cache, must-revalidate'); global $auth, $cfg, $db; $provider = getValIfExists($_POST, 'provider'); if (!$provider) { $provider = getValIfExists($_SESSION, 'provider'); } else { $_SESSION['provider'] = $provider; } $db = new dbConnection(); if (!$auth) { $auth = new AuthManager(); } $auth->callback($provider); }