Small update. :o
[iDB.git] / inc / endpage.php
blobd2328ee49c7d161d191e5949f61551d604d6f09b
1 <?php
2 /*
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: endpage.php - Last Update: 07/18/2011 SVN 721 - Author: cooldude2k $
16 $File3Name = basename($_SERVER['SCRIPT_NAME']);
17 if ($File3Name=="endpage.php"||$File3Name=="/endpage.php") {
18 require('index.php');
19 exit(); }
20 if(!isset($_GET['time'])) { $_GET['time'] = true; }
21 if($_GET['time']=="show"||$_GET['time']==true) {
22 if($_SESSION['UserDST']=="on") { $MyDST = $checktimea['hour']+1; }
23 if($_SESSION['UserDST']=="off") { $MyDST = $checktimea['hour']; }
24 if($MyDST>=0) { $TimeSign = "+"; }
25 if($MyDST<0) { $TimeSign = "-"; $MyDST = abs($MyDST); }
26 $MyDST = $MyDST.":".$checktimea['minute'];
27 $MyTimeNow = GMTimeGet($Settings['idb_time_format'],$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
28 $MyFullTimeNow = GMTimeGet("F j Y, ".$Settings['idb_time_format'],$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
29 $endpagevar=$endpagevar."<br />The time now is <span class=\"ctimenow\" title=\"".$MyFullTimeNow."\">".$MyTimeNow."</span> ".$ThemeSet['LineDivider']." All times are UTC ".$TimeSign." ".$MyDST; }
30 function execution_time($starttime) {
31 list($uetime, $etime) = explode(" ", microtime());
32 $endtime = $uetime + $etime;
33 return bcsub($endtime, $starttime, 4); }
34 if($_GET['debug']=="true"||$_GET['debug']=="on") {
35 $endpagevar=$endpagevar."<br />\nNumber of Queries: ".$NumQueries." ".$ThemeSet['LineDivider']." Execution Time: ".execution_time($starttime).$ThemeSet['LineDivider']."<a href=\"http://validator.w3.org/check/referer?verbose=1\" title=\"Validate HTML\" onclick=\"window.open(this.href);return false;\">HTML</a>".$ThemeSet['LineDivider']."<a href=\"http://jigsaw.w3.org/css-validator/check/referer?profile=css3\" title=\"Validate CSS\" onclick=\"window.open(this.href);return false;\">CSS</a>"; }
36 $endpagevar=$endpagevar."</div>\n";
37 echo $endpagevar;
38 session_write_close();
39 //session_write_close();