Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Wed, Feb 12, 10:01 AM

in-portal

Index: branches/RC/admin/index.php
===================================================================
--- branches/RC/admin/index.php (revision 11873)
+++ branches/RC/admin/index.php (revision 11874)
@@ -1,46 +1,45 @@
<?php
- // testing mantis auto checkin
$start = getmicrotime();
define('ADMIN', 1);
define('FULL_PATH', realpath(dirname(__FILE__).'/..') );
if (!file_exists(FULL_PATH.'/core/kernel/application.php')) {
die('Please re-checkout _inportal_kernel4 cvs module into the root directory ('.FULL_PATH.') and remove kernel/kernel4 folder. Make sure to checkout correct branch (RC or HEAD).');
}
include_once(FULL_PATH.'/core/kernel/startup.php');
if (DIRECTORY_SEPARATOR != '\\') {
// force user to remove write permissions for important files (Linux only)
if (check_write_permissions(FULL_PATH.'/config.php') || check_write_permissions(FULL_PATH)) {
die('Please remove write permissions from "config.php" file and root website folder.');
}
}
$application =& kApplication::Instance();
$application->Init();
$application->Run();
$application->Done();
$end = getmicrotime();
function getmicrotime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
//update_memory_check_script();
function update_memory_check_script() {
$files = get_included_files();
$script = '$files = Array('."\n";
foreach ($files as $file_name) {
$script .= "\t\t'".str_replace(FULL_PATH, '', $file_name)."',\n";
}
$script .= ");\n";
echo "<pre>";
echo $script;
echo "</pre>";
}
?>
\ No newline at end of file

Event Timeline