mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 14:13:03 +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:
@@ -20,7 +20,7 @@ $sql = e107::getDb();
|
||||
if (!$e107->isInstalled('forum'))
|
||||
{
|
||||
// FIXME GLOBAL - get rid of all e_BASE|e_HTTP|Whatever/index.php - just point to SITEURL
|
||||
header('Location: '.SITEURL);
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
e107::lan('forum', "front", true);
|
||||
@@ -32,8 +32,6 @@ if(!deftrue('BOOTSTRAP'))
|
||||
'FORLAN_11' => 'LAN_FORUM_0039',
|
||||
'FORLAN_12' => 'LAN_FORUM_0040',
|
||||
'FORLAN_18' => 'LAN_FORUM_0041',
|
||||
|
||||
|
||||
);
|
||||
|
||||
e107::getLanguage()->bcDefs($bcDefs);
|
||||
|
@@ -12,7 +12,7 @@ $eplug_admin = true;
|
||||
require_once('../../class2.php');
|
||||
if (!getperms('P'))
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect('admin');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -12,7 +12,7 @@ require_once('../../class2.php');
|
||||
$e107 = e107::getInstance();
|
||||
if (!$e107->isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.e_BASE.'index.php');
|
||||
e107::redirect('admin');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -27,7 +27,7 @@ $mes = e107::getMessage();
|
||||
|
||||
if (!$e107->isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.SITEURL.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -15,7 +15,7 @@ if(!defined('e107_INIT'))
|
||||
|
||||
if (!e107::isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -15,7 +15,7 @@ require_once ('../../class2.php');
|
||||
|
||||
if (!getperms('P'))
|
||||
{
|
||||
header('location:' . e_BASE . 'index.php');
|
||||
e107::redirect();
|
||||
exit ;
|
||||
}
|
||||
|
||||
|
@@ -12,7 +12,7 @@ require_once("../../class2.php");
|
||||
$e107 = e107::getInstance();
|
||||
if (!$e107->isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ if(!USER)
|
||||
exit;
|
||||
}
|
||||
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_uploads.php');
|
||||
e107::lan('forum', "front", true);
|
||||
|
||||
|
||||
e107::lan('forum','front');
|
||||
|
||||
if(is_array($_POST['delete']))
|
||||
{
|
||||
|
@@ -15,9 +15,9 @@ if(!defined('e107_INIT'))
|
||||
require_once('../../class2.php');
|
||||
}
|
||||
$e107 = e107::getInstance();
|
||||
if (!$e107->isInstalled('forum'))
|
||||
if (!e107::isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.SITEURL);
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
e107::lan('forum', "front", true);
|
||||
|
@@ -42,7 +42,7 @@ $ns = e107::getRender();
|
||||
|
||||
if (!e107::isInstalled('forum'))
|
||||
{
|
||||
header('Location: '.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@ $eplug_admin = TRUE;
|
||||
require_once('../../class2.php');
|
||||
if (!getperms('1'))
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect('admin');
|
||||
exit();
|
||||
}
|
||||
require_once(e_ADMIN.'auth.php');
|
||||
|
Reference in New Issue
Block a user