mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
#85, time()을 $_SERVER['REQUEST_TIME']으로 대체
This commit is contained in:
parent
3bc8d7da67
commit
540da2c75c
28 changed files with 48 additions and 48 deletions
|
|
@ -379,7 +379,7 @@ class member extends ModuleObject {
|
|||
if($output->data && $output->data->count)
|
||||
{
|
||||
$last_update = strtotime($output->data->last_update);
|
||||
$term = intval(time()-$last_update);
|
||||
$term = intval($_SERVER['REQUEST_TIME']-$last_update);
|
||||
//update, if IP address access in a short time, update count. If not, make count 1.
|
||||
if($term < $config->max_error_count_time)
|
||||
{
|
||||
|
|
@ -422,14 +422,14 @@ class member extends ModuleObject {
|
|||
{
|
||||
//update
|
||||
$content = unserialize($output->data->content);
|
||||
$content[] = array($_SERVER['REMOTE_ADDR'],Context::getLang($message),time());
|
||||
$content[] = array($_SERVER['REMOTE_ADDR'],Context::getLang($message),$_SERVER['REQUEST_TIME']);
|
||||
$args->content = serialize($content);
|
||||
$output = executeQuery('member.updateLoginCountHistoryByMemberSrl', $args);
|
||||
}
|
||||
else
|
||||
{
|
||||
//insert
|
||||
$content[0] = array($_SERVER['REMOTE_ADDR'],Context::getLang($message),time());
|
||||
$content[0] = array($_SERVER['REMOTE_ADDR'],Context::getLang($message),$_SERVER['REQUEST_TIME']);
|
||||
$args->content = serialize($content);
|
||||
$output = executeQuery('member.insertLoginCountHistoryByMemberSrl', $args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1501,7 +1501,7 @@ class memberController extends member
|
|||
// If no information exists, delete a cookie
|
||||
if(!$output->toBool() || !$output->data)
|
||||
{
|
||||
setCookie('xeak',null,time()+60*60*24*365, '/');
|
||||
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1513,7 +1513,7 @@ class memberController extends member
|
|||
|
||||
if(!$user_id || !$password)
|
||||
{
|
||||
setCookie('xeak',null,time()+60*60*24*365, '/');
|
||||
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1562,7 +1562,7 @@ class memberController extends member
|
|||
else
|
||||
{
|
||||
executeQuery('member.deleteAutologin', $args);
|
||||
setCookie('xeak',null,time()+60*60*24*365, '/');
|
||||
setCookie('xeak',null,$_SERVER['REQUEST_TIME']+60*60*24*365, '/');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1615,7 +1615,7 @@ class memberController extends member
|
|||
if($errorCount >= $config->max_error_count)
|
||||
{
|
||||
$last_update = strtotime($output->data->last_update);
|
||||
$term = intval(time()-$last_update);
|
||||
$term = intval($_SERVER['REQUEST_TIME']-$last_update);
|
||||
if($term < $config->max_error_count_time)
|
||||
{
|
||||
$term = $config->max_error_count_time - $term;
|
||||
|
|
@ -1708,7 +1708,7 @@ class memberController extends member
|
|||
$autologin_args->member_srl = $this->memberInfo->member_srl;
|
||||
executeQuery('member.deleteAutologin', $autologin_args);
|
||||
$autologin_output = executeQuery('member.insertAutologin', $autologin_args);
|
||||
if($autologin_output->toBool()) setCookie('xeak',$autologin_args->autologin_key, time()+31536000, '/');
|
||||
if($autologin_output->toBool()) setCookie('xeak',$autologin_args->autologin_key, $_SERVER['REQUEST_TIME']+31536000, '/');
|
||||
}
|
||||
if($this->memberInfo->is_admin == 'Y')
|
||||
{
|
||||
|
|
@ -1821,7 +1821,7 @@ class memberController extends member
|
|||
|
||||
$logged_info = Context::get('logged_info');
|
||||
// If the date of the temporary restrictions limit further information on the date of
|
||||
if($config->limit_day) $args->limit_date = date("YmdHis", time()+$config->limit_day*60*60*24);
|
||||
if($config->limit_day) $args->limit_date = date("YmdHis", $_SERVER['REQUEST_TIME']+$config->limit_day*60*60*24);
|
||||
|
||||
$args->member_srl = getNextSequence();
|
||||
$args->list_order = -1 * $args->member_srl;
|
||||
|
|
@ -2225,9 +2225,9 @@ class memberController extends member
|
|||
$_SESSION[$key] = '';
|
||||
}
|
||||
session_destroy();
|
||||
setcookie(session_name(), '', time()-42000, '/');
|
||||
setcookie('sso','',time()-42000, '/');
|
||||
setcookie('xeak','',time()-42000, '/');
|
||||
setcookie(session_name(), '', $_SERVER['REQUEST_TIME']-42000, '/');
|
||||
setcookie('sso','',$_SERVER['REQUEST_TIME']-42000, '/');
|
||||
setcookie('xeak','',$_SERVER['REQUEST_TIME']-42000, '/');
|
||||
|
||||
if($memberSrl || $_COOKIE['xeak'])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue