Index: trunk/admin/reviews.php =================================================================== diff -u -r3184 -r4243 --- trunk/admin/reviews.php (.../reviews.php) (revision 3184) +++ trunk/admin/reviews.php (.../reviews.php) (revision 4243) @@ -13,8 +13,6 @@ ## privileges along maximum prosecution allowed by law. ## ############################################################## -//KERNEL4 STARTUP - FOR ACTIONS HANDLING - function k4getmicrotime() { list($usec, $sec) = explode(" ", microtime()); @@ -23,22 +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";