1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 17:01:43 +02:00

user force update absolute redirect URL

This commit is contained in:
secretr
2012-06-01 14:31:02 +00:00
parent ef3a390732
commit 412d754983

View File

@@ -783,11 +783,11 @@ $ns = e107::getRender(); //TODO - find & replace $ns, $e107->ns
$e107 = e107::getInstance(); // Is this needed now?
e107::getIPHandler()->ban();
if(varset($pref['force_userupdate']) && USER && !isset($_E107['no_forceuserupdate']))
if(varset($pref['force_userupdate']) && USER && !isset($_E107['no_forceuserupdate']) && $_SERVER['QUERY_STRING'] !== 'logout')
{
if(force_userupdate($currentUser))
{
header('Location: '.e_BASE.'usersettings.php?update');
header('Location: '.SITEURL.'usersettings.php?update');
exit();
}
}