-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (26 loc) · 887 Bytes
/
index.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
<?php
### XHProf
if(isset($_GET['xhprof']))
{
xhprof_enable();
class LastSay {
function __construct() {
}
function __destruct() {
$xhprof_data = xhprof_disable();
$XHPROF_ROOT = ROOT.'../../xhprof';
include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_lib.php";
include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_runs.php";
$xhprof_runs = new XHProfRuns_Default();
$run_id = $xhprof_runs->save_run($xhprof_data, "lf");
echo '<div style="clear: both">'.
'<a href="/xhprof/xhprof_html/index.php?run='.$run_id.'&source=lf">Profile Result</a>'.
"</div>";
### End XHProf
}
}
$lolhax = new LastSay();
}
define('ROOT', dirname(__FILE__).'/lf/'); // The absolute path to the lf/ directory is the ROOT of the application
if(!chdir(ROOT)) die('Access Denied to '.ROOT); // if unable to cd there, kill script
include 'system/init.php';