mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Added support for previousURL to login page.
This commit is contained in:
11
login.php
11
login.php
@@ -18,14 +18,23 @@
|
||||
*/
|
||||
|
||||
require_once("class2.php");
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
||||
|
||||
if ((USER || e_LOGIN != e_SELF || empty($pref['user_reg']) ) && e_QUERY !== 'preview' && !getperms('0') ) // Disable page if user logged in, or some custom e_LOGIN value is used.
|
||||
{
|
||||
$prev = e107::getRedirect()->getPreviousUrl();
|
||||
|
||||
if(!empty($prev))
|
||||
{
|
||||
e107::redirect($prev);
|
||||
exit();
|
||||
}
|
||||
|
||||
e107::redirect();
|
||||
exit();
|
||||
}
|
||||
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
|
||||
|
||||
define('e_IFRAME',true);
|
||||
require_once(HEADERF);
|
||||
$use_imagecode = ($pref['logcode'] && extension_loaded("gd"));
|
||||
|
Reference in New Issue
Block a user