mirror of
https://github.com/e107inc/e107.git
synced 2025-07-17 13:01:14 +02:00
Issue #4356 - Admin-area login issue.
This commit is contained in:
@@ -140,13 +140,12 @@ else
|
|||||||
if(e107::getUser()->login($_POST['authname'], $_POST['authpass'], false, varset($_POST['hashchallenge']), true)!==false)
|
if(e107::getUser()->login($_POST['authname'], $_POST['authpass'], false, varset($_POST['hashchallenge']), true)!==false)
|
||||||
{
|
{
|
||||||
e107::getRedirect()->go('admin');
|
e107::getRedirect()->go('admin');
|
||||||
// var_dump($_COOKIE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
e107::coreLan('log_messages', true);
|
e107::coreLan('log_messages', true);
|
||||||
e107::getLog()->addEvent(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".$tp->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING);
|
e107::getLog()->addEvent(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".$tp->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING);
|
||||||
echo "<script type='text/javascript'>document.location.href='../index.php'</script>\n";
|
// echo "<script type='text/javascript'>document.location.href='../index.php'</script>\n";
|
||||||
e107::getRedirect()->redirect('admin.php?failed');
|
e107::getRedirect()->redirect('admin.php?failed');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -2936,7 +2936,7 @@ class e_front_model extends e_model
|
|||||||
}
|
}
|
||||||
if($return) return $ret;
|
if($return) return $ret;
|
||||||
|
|
||||||
print_a($ret);
|
var_dump($ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1224,7 +1224,7 @@ class e_user_model extends e_admin_model
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($return) return $ret;
|
if($return) return $ret;
|
||||||
print_a($ret);
|
var_dump($ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function destroy()
|
public function destroy()
|
||||||
@@ -1386,7 +1386,7 @@ class e_system_user extends e_user_model
|
|||||||
if($this->debug)
|
if($this->debug)
|
||||||
{
|
{
|
||||||
echo '$eml returned nothing on Line '.__LINE__.' of user_model.php using $type = '.$type;
|
echo '$eml returned nothing on Line '.__LINE__.' of user_model.php using $type = '.$type;
|
||||||
print_a($userInfo);
|
var_dump($userInfo);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1395,9 +1395,9 @@ class e_system_user extends e_user_model
|
|||||||
if($this->debug)
|
if($this->debug)
|
||||||
{
|
{
|
||||||
echo '<h3>$eml array</h3>';
|
echo '<h3>$eml array</h3>';
|
||||||
print_a($eml);
|
var_dump($eml);
|
||||||
$temp = var_export($eml, true);
|
$temp = var_export($eml, true);
|
||||||
print_a($temp);
|
var_dump($temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@ class _blank_event // plugin-folder + '_event'
|
|||||||
|
|
||||||
function myfunction($data) // the method to run.
|
function myfunction($data) // the method to run.
|
||||||
{
|
{
|
||||||
print_a($data);
|
// var_dump($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user