Index: trunk/admin/index.php =================================================================== diff -u -r4463 -r4490 --- trunk/admin/index.php (.../index.php) (revision 4463) +++ trunk/admin/index.php (.../index.php) (revision 4490) @@ -1,92 +1,55 @@ Set('AdminDirectory', $admin, 0, true); - $objConfig->Save(); +/* + kApplication $application +*/ +$application =& kApplication::Instance(); +$application->Init(); +$application->Run(); +$application->Done(); - if (!admin_login() || GetVar('logout') || GetVar('expired') ) { - if (!headers_sent()) { - set_cookie(SESSION_COOKIE_NAME, '', adodb_mktime() - 3600); - } - $objSession->Logout(); - require_once FULL_PATH.'/admin/login.php'; - } +$end = getmicrotime(); - $envar = 'env='.BuildEnv(); +if ($application->isDebugMode() && !dbg_ConstOn('DBG_SKIP_REPORTING')) { + echo '

+ + + + + + + + + + +
Memory used:'.round(memory_get_usage()/1024/1024, 1).' MB ('.memory_get_usage().')
Time used:'.round(($end - $start), 5).' sec
'; +} - require_once FULL_PATH.'/admin/include/elements.php'; - require_once FULL_PATH.'/kernel/admin/include/navmenu.php'; +function getmicrotime() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} - $charset = GetRegionalOption('Charset'); - - $tree_link = $application->HREF('tree', '', Array('pass' => 'm'), 'index4.php'); -// $tree_link = $adminURL.'/tree/tree.php?'.$envar; - -?> +//update_memory_check_script(); - - - - - - - In-portal Administration - - - - - - " name="main" marginwidth="0" marginheight="0" frameborder="no" noresize scrolling="auto"> - - - - <body bgcolor="#ffffff"> - <p></p> - </body> - - \ No newline at end of file +?> \ No newline at end of file