1
0
Fork 0

Working directory fix

This commit is contained in:
magnolia-fan 2011-04-04 21:40:52 +04:00
parent 77bb597609
commit cfb4dcda07
2 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
#!/opt/local/bin/php #!/opt/local/bin/php
<?php <?php
define('APPDIR', '/www/server/php/'); require_once '/www/server/php/common.php';
require_once APPDIR .'common.php';
$tmp = array_slice(scandir(Config::get('app:Parser:bot_stats_dir')), 2); $tmp = array_slice(scandir(Config::get('app:Parser:bot_stats_dir')), 2);
$bots = array(); $bots = array();

View File

@ -1,6 +1,6 @@
<?php <?php
define('ROOT_DIR', getcwd()); define('ROOT_DIR', dirname(__FILE__));
require_once ROOT_DIR .'/autoload.php'; require_once ROOT_DIR .'/autoload.php';