You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
579 B
25 lines
579 B
13 years ago
|
<?php
|
||
|
//define('ROOT_PATH', ROOT_PATH.'ag
|
||
|
|
||
|
// okay and now define the url ;)
|
||
|
|
||
|
if(!defined('ROOT_PATH')) {
|
||
|
$actual_path = __FILE__;
|
||
|
//s echo $actual_path .'<br>';
|
||
|
|
||
|
// okay this is the script that has included us :) -> lets search for the include/config/ directory
|
||
|
while(strlen($actual_path) > 0) {
|
||
|
$actual_path = substr($actual_path,0,strrpos($actual_path,'/'));
|
||
|
if(is_dir($actual_path . '/include/config')) {
|
||
|
define('ROOT_PATH', $actual_path);
|
||
|
define('ROOT_URL', '/ag'); // --> currently no support :(
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
echo ROOT_PATH . '<br>';
|
||
|
echo ROOT_URL . '<br>';
|
||
|
|
||
|
?>
|
||
|
|