mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Header location cleanup. From now, please use e107::redirect(); to redirect to the home page, or e107::redirect('admin'); to redirect to the admin start page or e107::redirect($url);
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
require_once('../class2.php');
|
||||
if (!getperms('4'))
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect('admin');
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -559,7 +559,7 @@ function checkAllowed($classID, $redirect = true, $fullEdit = FALSE)
|
||||
|
||||
if ($redirect)
|
||||
{
|
||||
header('location:'.SITEURL);
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user