mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
TEMP CODE removed
This commit is contained in:
14
index.php
14
index.php
@@ -21,16 +21,6 @@ define('ROOT', rtrim(dirname(__FILE__), '\\/'));
|
|||||||
define('BACKEND', false);
|
define('BACKEND', false);
|
||||||
define('MONSTRA_ACCESS', true);
|
define('MONSTRA_ACCESS', true);
|
||||||
|
|
||||||
/* TEMP CODE BEGIN */
|
|
||||||
function byteFormat($size)
|
|
||||||
{
|
|
||||||
$unit = array('b', 'kb', 'mb', 'gb', 'tb', 'pb');
|
|
||||||
|
|
||||||
return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[$i];
|
|
||||||
}
|
|
||||||
$_start = memory_get_usage();
|
|
||||||
/* TEMP CODE END */
|
|
||||||
|
|
||||||
// First check for installer then go
|
// First check for installer then go
|
||||||
if (file_exists('install.php')) {
|
if (file_exists('install.php')) {
|
||||||
if (isset($_GET['install'])) {
|
if (isset($_GET['install'])) {
|
||||||
@@ -71,7 +61,3 @@ if (file_exists('install.php')) {
|
|||||||
// Flush (send) the output buffer and turn off output buffering
|
// Flush (send) the output buffer and turn off output buffering
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TEMP CODE BEGIN */
|
|
||||||
echo byteFormat(memory_get_usage() - $_start);
|
|
||||||
/* TEMP CODE END */
|
|
||||||
|
Reference in New Issue
Block a user