parent
a7ca637692
commit
da1a0deb76
@ -1,24 +0,0 @@
|
|||||||
<?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>';
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in new issue