Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sun, Feb 2, 7:13 PM

in-portal

Index: trunk/index.php
===================================================================
--- trunk/index.php (revision 1651)
+++ trunk/index.php (revision 1652)
@@ -1,31 +1,34 @@
-<?php
-
-$start = getmicrotime();
-
-define('FULL_PATH', realpath(dirname(__FILE__)));
-define('APPLICATION_CLASS', 'MyApplication');
-define('ADMINS_LIST','/in-portal/users/users.php');
-include_once(FULL_PATH.'/kernel/kernel4/startup.php');
-
-$application =& kApplication::Instance();
-$application->Init();
-$application->Run();
-$application->Done();
-
-$end = getmicrotime();
-
-if (defined('DEBUG_MODE')) {
- echo '<br><br><div style="font-family: arial,verdana; font-size: 8pt;">Memory used: '.round(memory_get_usage()/1024/1024, 1).' Mb <br>';
- echo 'Time used: '.round(($end - $start), 5).' Sec <br></div>';
-}
-
-//print_pre(get_included_files());
-
-function getmicrotime()
-{
- list($usec, $sec) = explode(" ", microtime());
- return ((float)$usec + (float)$sec);
-}
-
-
+<?php
+
+$start = getmicrotime();
+
+define('FULL_PATH', realpath(dirname(__FILE__)));
+define('APPLICATION_CLASS', 'MyApplication');
+define('ADMINS_LIST','/in-portal/users/users.php');
+include_once(FULL_PATH.'/kernel/kernel4/startup.php');
+
+
+if (!isset($_GET['admin'])) define('MOD_REWRITE', 1);
+
+$application =& kApplication::Instance();
+$application->Init();
+$application->Run();
+$application->Done();
+
+$end = getmicrotime();
+
+if (defined('DEBUG_MODE')) {
+ echo '<br><br><div style="font-family: arial,verdana; font-size: 8pt;">Memory used: '.round(memory_get_usage()/1024/1024, 1).' Mb <br>';
+ echo 'Time used: '.round(($end - $start), 5).' Sec <br></div>';
+}
+
+//print_pre(get_included_files());
+
+function getmicrotime()
+{
+ list($usec, $sec) = explode(" ", microtime());
+ return ((float)$usec + (float)$sec);
+}
+
+
?>
\ No newline at end of file
Property changes on: trunk/index.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.11
\ No newline at end of property
+1.12
\ No newline at end of property

Event Timeline