-
Notifications
You must be signed in to change notification settings - Fork 0
/
performance.php
67 lines (56 loc) · 2.11 KB
/
performance.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* Karambit Killboard System
*
* Builds and checks the path constants.
*
* PHP version 5
*
* LICENSE: This file is part of EVE MultiPurpose Application also know as KarambitKS.
* KarambitKS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* KarambitKS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KarambitKS. If not, see <http://www.gnu.org/licenses/>.
*
* @author Michael Cummings <[email protected]>
* @author Stephen Gulickk <[email protected]>
* @author Andy Snowden <[email protected]>
* @copyright 2009 (C) Michael Cummings, Stephen Gulick, and Andy Snowden
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0
* @package KarambitKS
* @version SVN: $Id$
* @link http://code.google.com/p/karambitks/
* @link http://www.eve-online.com/
*/
//Define KB Version
define('KKS_VERSION', '1.0');
//Turn off some possible annoances
@set_magic_quotes_runtime(0);
//LOAD AND SET PATH CONSTANTS
require_once'inc/common_paths.inc';
//LOAD CONFIGURATION AND SET CONSTANTS
require_once KKS_CONFIG.'config.php';
//LOAD ADODB CONNECTION FACTORY
require_once KKS_CLASS . 'ADOdbFactory.class.php';
//LOAD ODD/END FUNCTIONS
require_once KKS_INC . 'functions.inc';
//UNSET GLOBAL VARIBLES IF HOST HAS register_globals ON (SECURITY RISK)
unregister_globals('_POST', '_GET', '_REQUEST');
echo "<h3>ADODB Performance Monitor</h3>\n";
if(KKS_ADODB_LOG==FALSE) {
echo "Performance monitoring is turned off. Edit your config.php file to turn on.<br>\n<hr>\n";
}
//Get ADODB Factory INSTANCE
$instance = ADOdbFactory::getInstance();
//Get DB Connection
$con = $instance->factory(KKS_DSN);
$perf = NewPerfMonitor($con);
$perf->ui();
?>