X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=cron%2Fps.php;h=8b2199c5c6eafa9a0bf0b3d47921f49c6d2f1a0f;hb=ad7b5117657235e1fcb080389ab52a1b126736d0;hp=2a5f798da9a13b83aefab797c8a4d366f2363ecf;hpb=ae9f745727e193ff2aa36bcae8f73478f79a2d4a;p=mirrors%2FKyberia-bloodline.git diff --git a/cron/ps.php b/cron/ps.php index 2a5f798..8b2199c 100755 --- a/cron/ps.php +++ b/cron/ps.php @@ -27,13 +27,12 @@ function update_template($params) { // Use relative address of config file // Change this, if you move you cron directory. $dir=substr(__FILE__, 0, strrpos(__FILE__, '/')); -require($dir.'/../wwwroot/config/config.inc'); +require_once($dir.'/../wwwroot/config/config.inc'); //connecting to database and creating universal $db object -require(INCLUDE_DIR.'/log.inc'); -require(INCLUDE_DIR.'/database.inc'); -require(INCLUDE_DIR.'/nodes.inc'); -require(INCLUDE_DIR.'/senate.inc'); +require_once(INCLUDE_DIR.'/log.inc'); +require_once(INCLUDE_DIR.'/database.inc'); +require_once(INCLUDE_DIR.'/nodes.inc'); $db=new CLASS_DATABASE(); foreach ($requests as $request) {