mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +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:
12
email.php
12
email.php
@@ -49,7 +49,7 @@ if (e_QUERY)
|
||||
}
|
||||
else
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
$source = $qs[0];
|
||||
@@ -77,12 +77,12 @@ if (isset($_POST['emailsubmit']))
|
||||
{
|
||||
if(!isset($_POST['code_verify']) || !isset($_POST['rand_num']))
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
if (!$sec_img->verify_code($_POST['rand_num'], $_POST['code_verify']))
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ if (isset($_POST['emailsubmit']))
|
||||
}
|
||||
if($text == '')
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
$message .= $text;
|
||||
@@ -127,7 +127,7 @@ if (isset($_POST['emailsubmit']))
|
||||
{
|
||||
if(!isset($_POST['referer']) || $_POST['referer'] == '')
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
$message .= strip_tags($_POST['referer']);
|
||||
@@ -146,7 +146,7 @@ if (isset($_POST['emailsubmit']))
|
||||
|
||||
if($message == '')
|
||||
{
|
||||
header('location:'.e_BASE.'index.php');
|
||||
e107::redirect();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user