Index: trunk/admin/subitems.php =================================================================== diff -u -N -r3021 -r4065 --- trunk/admin/subitems.php (.../subitems.php) (revision 3021) +++ trunk/admin/subitems.php (.../subitems.php) (revision 4065) @@ -1,29 +1,11 @@ Init(); - // KERNEL4 INI: END - - // IN-PORTAL INIT: BEGIN - $g_TablePrefix = TABLE_PREFIX; - $pathtoroot = FULL_PATH.'/'; + // 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'; - // IN-PORTAL INIT: END - - $rootURL = $application->BaseURL(); - $admin = ADMIN_DIR; - - $localURL = $rootURL.'kernel/'; - $adminURL = $rootURL.$admin; - $imagesURL = $adminURL.'/images'; - - $cssURL = $adminURL.'/include'; - $jsURL = $adminURL.'/include/subitems'; + // new startup: end //admin only util $pathtolocal = $pathtoroot.'kernel/';