fix start/end times using less generic variable names

git-svn-id: http://www.observium.org/svn/observer/trunk@2858 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-02-06 17:39:31 +00:00
parent 97125f7ae2
commit c3122ee94c

View File

@@ -1,5 +1,12 @@
<?php
include("../includes/defaults.inc.php");
include("../config.php");
include("../includes/functions.php");
include("includes/functions.inc.php");
$runtime_start = utime();
ob_start();
ini_set('allow_url_fopen', 0);
@@ -22,11 +29,6 @@ if (strpos($_SERVER['PATH_INFO'], "debug"))
ini_set('error_reporting', 0);
}
include("../includes/defaults.inc.php");
include("../config.php");
include("../includes/functions.php");
include("includes/functions.inc.php");
include("includes/authenticate.inc.php");
foreach ($_GET as $key=>$get_var)
@@ -98,8 +100,6 @@ foreach ($_POST as $name => $value)
if (strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; }
if (strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); }
$start = utime();
$now = time();
$fourhour = time() - (4 * 60 * 60);
$day = time() - (24 * 60 * 60);
@@ -284,8 +284,8 @@ if ($_SESSION['authenticated'])
<div class="clearer"></div>
</div>
<?php
$end = utime(); $run = $end - $start;
$gentime = substr($run, 0, 5);
$runtime_end = utime(); $runtime = $runtime_end - $runtime_start;
$gentime = substr($runtime, 0, 5);
echo('<br /> <br /> <br /> <br /> <div id="footer">' . (isset($config['footer']) ? $config['footer'] : ''));
echo('<br />Powered by <a href="http://www.observium.org" target="_blank">Observium ' . $config['version']);