Closes #144 Updated to HESK 2.6.1
This commit is contained in:
parent
dbc5868f27
commit
8e585cd262
@ -306,7 +306,7 @@ $set['pop3'] = empty($_POST['s_pop3']) ? 0 : 1;
|
||||
if ($set['pop3'])
|
||||
{
|
||||
// Get POP3 fetching timeout
|
||||
$set['pop3_job_wait'] = hesk_checkMinMax( intval( hesk_POST('s_pop3_job_wait') ) , 1, 1440, 15);
|
||||
$set['pop3_job_wait'] = hesk_checkMinMax( intval( hesk_POST('s_pop3_job_wait') ) , 0, 1440, 15);
|
||||
|
||||
// Test POP3 connection
|
||||
$pop3_OK = hesk_testPOP3(true);
|
||||
|
@ -400,18 +400,20 @@ function hesk_autoLogin($noredirect=0)
|
||||
}
|
||||
|
||||
$res=hesk_dbFetchAssoc($result);
|
||||
foreach ($res as $k=>$v)
|
||||
{
|
||||
$_SESSION[$k]=$v;
|
||||
}
|
||||
|
||||
/* Check password */
|
||||
if ($hash != hesk_Pass2Hash($_SESSION['pass'] . strtolower($user) . $_SESSION['pass']) )
|
||||
{
|
||||
if ($hash != hesk_Pass2Hash($res['pass'] . strtolower($user) . $res['pass']) )
|
||||
{
|
||||
setcookie('hesk_username', '');
|
||||
setcookie('hesk_p', '');
|
||||
header('Location: index.php?a=login¬ice=1');
|
||||
exit();
|
||||
setcookie('hesk_p', '');
|
||||
header('Location: index.php?a=login¬ice=1');
|
||||
exit();
|
||||
}
|
||||
|
||||
// Set user details
|
||||
foreach ($res as $k=>$v)
|
||||
{
|
||||
$_SESSION[$k]=$v;
|
||||
}
|
||||
|
||||
/* Check if default password */
|
||||
|
Loading…
x
Reference in New Issue
Block a user