Index: branches/unlabeled/unlabeled-1.23.20/admin/advanced_view.php =================================================================== diff -u -r3185 -r4178 --- branches/unlabeled/unlabeled-1.23.20/admin/advanced_view.php (.../advanced_view.php) (revision 3185) +++ branches/unlabeled/unlabeled-1.23.20/admin/advanced_view.php (.../advanced_view.php) (revision 4178) @@ -13,8 +13,6 @@ ## privileges along maximum prosecution allowed by law. ## ############################################################## -//KERNEL4 STARTUP - FOR ACTIONS HANDLING - function k4getmicrotime() { list($usec, $sec) = explode(" ", microtime()); @@ -23,23 +21,17 @@ $start = k4getmicrotime(); -define('ADMIN', 1); -define('FULL_PATH', realpath(dirname(__FILE__).'/..')); -define('APPLICATION_CLASS', 'MyApplication'); -include_once(FULL_PATH."/kernel/kernel4/startup.php"); +// new startup: begin +define('REL_PATH', 'admin'); +$relation_level = count( explode('/', REL_PATH) ); +define('FULL_PATH', realpath(dirname(__FILE__) . str_repeat('/..', $relation_level) ) ); +require_once FULL_PATH.'/kernel/startup.php'; +// new startup: end -$application =& kApplication::Instance(); -$application->Init(); -$application->ProcessRequest(); - -//KERNEL4 END - define('REQUIRE_LAYER_HEADER', 1); $b_topmargin = "0"; //$b_header_addon = "

"; -require_once(FULL_PATH.'/kernel/startup.php'); - require_login(); $indexURL = $rootURL."index.php";