Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F773681
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 2, 7:13 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Tue, Feb 4, 7:13 PM (2 h, 31 m)
Engine
blob
Format
Raw Data
Handle
555028
Attached To
rINP In-Portal
in-portal
View Options
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
Log In to Comment