1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Disable login.php when a custom e_LOGIN is used. (customlogin.php for example)

This commit is contained in:
CaMer0n
2011-06-07 02:20:27 +00:00
parent 5b052e22e7
commit eb2349e1c2
2 changed files with 7 additions and 3 deletions

View File

@@ -2358,8 +2358,12 @@ class e107
// login/signup
define('e_SIGNUP', SITEURL.(file_exists(e_BASE.'customsignup.php') ? 'customsignup.php' : 'signup.php'));
define('e_LOGIN', SITEURL.(file_exists(e_BASE.'customlogin.php') ? 'customlogin.php' : 'login.php'));
if(!defined('e_LOGIN'))
{
define('e_LOGIN', SITEURL.(file_exists(e_BASE.'customlogin.php') ? 'customlogin.php' : 'login.php'));
}
return $this;
}

View File

@@ -20,7 +20,7 @@
require_once("class2.php");
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
if (USER)
if (USER || e_LOGIN !='login.php') // Disable page if user logged in, or some custom e_LOGIN value is used.
{
header('location:'.e_BASE.'index.php');
exit();