mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +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
2
classes/cache/CacheApc.class.php
vendored
2
classes/cache/CacheApc.class.php
vendored
|
|
@ -67,7 +67,7 @@ class CacheApc extends CacheBase
|
|||
$valid_time = $this->valid_time;
|
||||
}
|
||||
|
||||
return apc_store(md5(_XE_PATH_ . $key), array(time(), $buff), $valid_time);
|
||||
return apc_store(md5(_XE_PATH_ . $key), array($_SERVER['REQUEST_TIME'], $buff), $valid_time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
classes/cache/CacheMemcache.class.php
vendored
2
classes/cache/CacheMemcache.class.php
vendored
|
|
@ -113,7 +113,7 @@ class CacheMemcache extends CacheBase
|
|||
$valid_time = $this->valid_time;
|
||||
}
|
||||
|
||||
return $this->Memcache->set($this->getKey($key), array(time(), $buff), MEMCACHE_COMPRESSED, $valid_time);
|
||||
return $this->Memcache->set($this->getKey($key), array($_SERVER['REQUEST_TIME'], $buff), MEMCACHE_COMPRESSED, $valid_time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
classes/cache/CacheWincache.class.php
vendored
2
classes/cache/CacheWincache.class.php
vendored
|
|
@ -69,7 +69,7 @@ class CacheWincache extends CacheBase
|
|||
{
|
||||
$valid_time = $this->valid_time;
|
||||
}
|
||||
return wincache_ucache_set(md5(_XE_PATH_ . $key), array(time(), $buff), $valid_time);
|
||||
return wincache_ucache_set(md5(_XE_PATH_ . $key), array($_SERVER['REQUEST_TIME'], $buff), $valid_time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ class Context
|
|||
$this->lang_type = $this->get('l');
|
||||
if($_COOKIE['lang_type'] != $this->lang_type)
|
||||
{
|
||||
setcookie('lang_type', $this->lang_type, time() + 3600 * 24 * 1000, '/');
|
||||
setcookie('lang_type', $this->lang_type, $_SERVER['REQUEST_TIME'] + 3600 * 24 * 1000, '/');
|
||||
}
|
||||
}
|
||||
elseif($_COOKIE['lang_type'])
|
||||
|
|
|
|||
|
|
@ -674,7 +674,7 @@ class XmlQueryParser extends XmlParser
|
|||
$val = '$_SERVER[\'REMOTE_ADDR\']';
|
||||
break;
|
||||
case 'unixtime' :
|
||||
$val = 'time()';
|
||||
$val = '$_SERVER[\'REQUEST_TIME\']';
|
||||
break;
|
||||
case 'curdate' :
|
||||
$val = 'date("YmdHis")';
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class DefaultValue
|
|||
$this->_is_string_from_function = TRUE;
|
||||
break;
|
||||
case 'unixtime' :
|
||||
$val = 'time()';
|
||||
$val = '$_SERVER[\'REQUEST_TIME\']';
|
||||
break;
|
||||
case 'curdate' :
|
||||
$val = 'date("YmdHis")';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue