1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 05:24:38 +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

@@ -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();