Skip to content
Permalink
Browse files

assign a local $login_request variable in login.php; if there is no a…

…dministrator session and this variable does not exist, redirect to the login page.
  • Loading branch information...
haraldpdl committed Sep 10, 2009
1 parent c3a8407 commit 8a9dd053a40b44d632999331bc31f309604aceae
Showing with 6 additions and 0 deletions.
  1. +4 −0 catalog/admin/includes/application_top.php
  2. +2 −0 catalog/admin/login.php
@@ -161,6 +161,10 @@
$redirect = true;
}
if (!isset($login_request) || isset($HTTP_GET_VARS['login_request']) || isset($HTTP_POST_VARS['login_request']) || isset($HTTP_COOKIE_VARS['login_request']) || isset($HTTP_SESSION_VARS['login_request']) || isset($HTTP_POST_FILES['login_request']) || isset($HTTP_SERVER_VARS['login_request'])) {
$redirect = true;
}
if ($redirect == true) {
tep_redirect(tep_href_link(FILENAME_LOGIN, (isset($redirect_origin['auth_user']) ? 'action=process' : '')));
}
@@ -10,6 +10,8 @@
Released under the GNU General Public License
*/
$login_request = true;
require('includes/application_top.php');
require('includes/functions/password_funcs.php');

0 comments on commit 8a9dd05

Please sign in to comment.
You can’t perform that action at this time.