svn: /web/doc-editor/trunk/scripts/cron/ check_entities.php

From: Date: Sun, 28 Mar 2010 19:55:17 +0000
Subject: svn: /web/doc-editor/trunk/scripts/cron/ check_entities.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1693@lists.php.net to get a copy of this message
yannick Sun, 28 Mar 2010 19:55:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296995 Log: Store checkEntities info Changed paths: U web/doc-editor/trunk/scripts/cron/check_entities.php Modified: web/doc-editor/trunk/scripts/cron/check_entities.php =================================================================== --- web/doc-editor/trunk/scripts/cron/check_entities.php 2010-03-28 19:54:43 UTC (rev 296994) +++ web/doc-editor/trunk/scripts/cron/check_entities.php 2010-03-28 19:55:17 UTC (rev 296995) @@ -7,7 +7,7 @@ * 00 01 * * 4 /usr/bin/php /path/to/your/vcs/dir/doc-editor/scripts/cron/check_entities.php ****/ -require_once dirname(__FILE__) . '/../../php/conf.inc.php'; +require_once dirname(__FILE__) . '/../../php/Conf.php'; require_once dirname(__FILE__) . '/../../php/LockFile.php'; require_once dirname(__FILE__) . '/../../php/ProjectManager.php'; require_once dirname(__FILE__) . '/../../php/RepositoryManager.php'; @@ -28,12 +28,14 @@ ToolsCheckEntities::getInstance()->startCheck(); + // Set lastUpdate date/time + $info = array(); + $info['user'] = 'root'; + + $rm->setStaticValue('info', 'checkEntities', json_encode($info), true); } // Remove the lock File - $lock->release();; - - // Set lastUpdate date/time - $rm->setLastUpdate('entities'); + $lock->release(); } ?> \ No newline at end of file

« previous php.doc.web (#1693) next »