From c3edc3f083ba59b4e90335108f16df5468967dbf Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 20 Dec 2009 08:06:36 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9time.xml=E6=AF=8F=E5=A4=A9=E7=94=9F?= =?UTF-8?q?=E6=88=90=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 811f3d33..5854883d 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -267,6 +267,9 @@ class DataController extends Zend_Controller_Action */ function timelineAction() { + $fn="time.xml"; + if (!file_exists($fn) || (time()-filemtime($fn)>3600*24)) + { $dateformat="D M j Y G:i:s O"; $md = new MetadataTable(); $db=$md->getAdapter(); @@ -286,6 +289,7 @@ class DataController extends Zend_Controller_Action $fp=fopen('time.xml','w'); fwrite($fp,$timexml); fclose($fp); + } //$this->_helper->layout->disableLayout(); } /*