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 | +