Removed multiple require()
[mirrors/Kyberia-bloodline.git] / cron / ps.php
index 2a5f798da9a13b83aefab797c8a4d366f2363ecf..8b2199c5c6eafa9a0bf0b3d47921f49c6d2f1a0f 100755 (executable)
@@ -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) {
This page took 0.097922 seconds and 4 git commands to generate.