diff --git a/html/index.php b/html/index.php index 73cba71b1..5be87144e 100755 --- a/html/index.php +++ b/html/index.php @@ -21,7 +21,8 @@ include('includes/plugins.inc.php'); Plugins::start(); // Check for install.inc.php -if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php') { +if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php') +{ // no config.php does so let's redirect to the install header('Location: /install.php'); exit; @@ -122,8 +123,6 @@ if ($config['page_title']) { $config['page_title_prefix'] = $config['page_title' <?php echo($config['page_title_suffix']); ?> - - ' . "\n"); } @@ -136,99 +135,20 @@ if ($config['page_refresh']) { echo(' - ' . "\n"); } ?> - -'); } -?> - - - - - - - - - - - - - - - @@ -238,24 +158,24 @@ function popUp(URL) if (!$vars['bare'] == "yes") { - if ($_SESSION['authenticated']) { + if ($_SESSION['authenticated']) + { include("includes/print-menubar.php"); } else { echo('
'); } - } ?>
-
-


+
+
+  

+
-
-
-
+
+
-
-
+
+
+
MySQL: Cell '.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_sec']+0,3).'s'. - ' Row '.($db_stats['fetchrow']+0). '/'.round($db_stats['fetchrow_sec']+0,3).'s'. - ' Rows '.($db_stats['fetchrows']+0).'/'.round($db_stats['fetchrows_sec']+0,3).'s'. - ' Column '.($db_stats['fetchcol']+0). '/'.round($db_stats['fetchcol_sec']+0,3).'s'); + echo('
MySQL: Cell '.($db_stats['fetchcell']+0).'/'.round($db_stats['fetchcell_sec']+0,3).'s'. + ' Row '.($db_stats['fetchrow']+0). '/'.round($db_stats['fetchrow_sec']+0,3).'s'. + ' Rows '.($db_stats['fetchrows']+0).'/'.round($db_stats['fetchrows_sec']+0,3).'s'. + ' Column '.($db_stats['fetchcol']+0). '/'.round($db_stats['fetchcol_sec']+0,3).'s'); - $fullsize = memory_get_usage(); - unset($cache); - $cachesize = $fullsize - memory_get_usage(); - if ($cachesize < 0) { $cachesize = 0; } // Silly PHP! + $fullsize = memory_get_usage(); + unset($cache); + $cachesize = $fullsize - memory_get_usage(); + if ($cachesize < 0) { $cachesize = 0; } // Silly PHP! - echo('
Cached data in memory is '.formatStorage($cachesize).'. Page memory usage is '.formatStorage($fullsize).', peaked at '. formatStorage(memory_get_peak_usage()) .'.'); - - echo('
Generated in ' . $gentime . ' seconds.'); + echo('
Cached data in memory is '.formatStorage($cachesize).'. Page memory usage is '.formatStorage($fullsize).', peaked at '. formatStorage(memory_get_peak_usage()) .'.'); + echo('
Generated in ' . $gentime . ' seconds.'); } ?> - + } + }); + \ndocument.title = '$title';\n"); } ?> - +