mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
user force update absolute redirect URL
This commit is contained in:
@@ -783,11 +783,11 @@ $ns = e107::getRender(); //TODO - find & replace $ns, $e107->ns
|
|||||||
$e107 = e107::getInstance(); // Is this needed now?
|
$e107 = e107::getInstance(); // Is this needed now?
|
||||||
e107::getIPHandler()->ban();
|
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))
|
if(force_userupdate($currentUser))
|
||||||
{
|
{
|
||||||
header('Location: '.e_BASE.'usersettings.php?update');
|
header('Location: '.SITEURL.'usersettings.php?update');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user