mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
r9977 fixed typo
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9978 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ec58b0f88d
commit
f218ee9320
1 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@
|
||||||
function checkEasyinstall()
|
function checkEasyinstall()
|
||||||
{
|
{
|
||||||
$lastTime = (int)FileHandler::readFile($this->easyinstallCheckFile);
|
$lastTime = (int)FileHandler::readFile($this->easyinstallCheckFile);
|
||||||
if ($lastTime > $_SERVER['REQUEST_TIME'] - 60*60*24*30) return;
|
if ($lastTime > time() - 60*60*24*30) return;
|
||||||
|
|
||||||
$oAutoinstallModel = &getModel('autoinstall');
|
$oAutoinstallModel = &getModel('autoinstall');
|
||||||
$params = array();
|
$params = array();
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
function _markingCheckEasyinstall()
|
function _markingCheckEasyinstall()
|
||||||
{
|
{
|
||||||
$currentTime = $_SERVER['REQUEST_TIME'];
|
$currentTime = time();
|
||||||
FileHandler::writeFile($this->easyinstallCheckFile, $currentTime);
|
FileHandler::writeFile($this->easyinstallCheckFile, $currentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -213,7 +213,7 @@
|
||||||
**/
|
**/
|
||||||
function dispAdminIndex() {
|
function dispAdminIndex() {
|
||||||
// Get statistics
|
// Get statistics
|
||||||
$args->date = date("Ymd000000", $_SERVER['REQUEST_TIME']-60*60*24);
|
$args->date = date("Ymd000000", time()-60*60*24);
|
||||||
$today = date("Ymd");
|
$today = date("Ymd");
|
||||||
|
|
||||||
// Member Status
|
// Member Status
|
||||||
|
|
@ -280,7 +280,7 @@
|
||||||
//Retrieve recent news and set them into context
|
//Retrieve recent news and set them into context
|
||||||
$newest_news_url = sprintf("http://news.xpressengine.com/%s/news.php?version=%s&package=%s", _XE_LOCATION_, __ZBXE_VERSION__, _XE_PACKAGE_);
|
$newest_news_url = sprintf("http://news.xpressengine.com/%s/news.php?version=%s&package=%s", _XE_LOCATION_, __ZBXE_VERSION__, _XE_PACKAGE_);
|
||||||
$cache_file = sprintf("%sfiles/cache/newest_news.%s.cache.php", _XE_PATH_, _XE_LOCATION_);
|
$cache_file = sprintf("%sfiles/cache/newest_news.%s.cache.php", _XE_PATH_, _XE_LOCATION_);
|
||||||
if(!file_exists($cache_file) || filemtime($cache_file)+ 60*60 < $_SERVER['REQUEST_TIME']) {
|
if(!file_exists($cache_file) || filemtime($cache_file)+ 60*60 < time()) {
|
||||||
// Considering if data cannot be retrieved due to network problem, modify filemtime to prevent trying to reload again when refreshing administration page
|
// Considering if data cannot be retrieved due to network problem, modify filemtime to prevent trying to reload again when refreshing administration page
|
||||||
// Ensure to access the administration page even though news cannot be displayed
|
// Ensure to access the administration page even though news cannot be displayed
|
||||||
FileHandler::writeFile($cache_file,'');
|
FileHandler::writeFile($cache_file,'');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue