mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
issue 1816, change codes to 'strtotime()'
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10840 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
634b6b78ea
commit
0a432e5221
2 changed files with 2 additions and 18 deletions
|
|
@ -368,16 +368,7 @@
|
|||
// Create a member model object
|
||||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
|
||||
$last_update = $output->data->last_update;
|
||||
$year = substr($last_update,0,4);
|
||||
$month = substr($last_update,4,2);
|
||||
$day = substr($last_update,6,2);
|
||||
$hour = substr($last_update,8,2);
|
||||
$min = substr($last_update,10,2);
|
||||
$sec = substr($last_update,12,2);
|
||||
$last_update = mktime($hour,$min,$sec,$month,$day,$year);
|
||||
|
||||
$last_update = strtotime($output->data->last_update);
|
||||
$term = intval(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)
|
||||
|
|
|
|||
|
|
@ -1653,14 +1653,7 @@
|
|||
$count = (int)$output->data->count;
|
||||
if($config->max_error_count < $count)
|
||||
{
|
||||
$last_update = $output->data->last_update;
|
||||
$year = substr($last_update,0,4);
|
||||
$month = substr($last_update,4,2);
|
||||
$day = substr($last_update,6,2);
|
||||
$hour = substr($last_update,8,2);
|
||||
$min = substr($last_update,10,2);
|
||||
$sec = substr($last_update,12,2);
|
||||
$last_update = mktime($hour,$min,$sec,$month,$day,$year);
|
||||
$last_update = strtotime($output->data->last_update);
|
||||
$term = intval(time()-$last_update);
|
||||
if($term < $config->max_error_count_time)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue