-
Notifications
You must be signed in to change notification settings - Fork 80
/
debug.php
27 lines (23 loc) · 835 Bytes
/
debug.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
<?php
ob_start();
ob_implicit_flush(TRUE);
ignore_user_abort(0);
if (!ini_get('safe_mode')) set_time_limit(30);
define('vinaget', 'yes');
date_default_timezone_set('Asia/Jakarta');
require_once('class.php');
$obj = new stream_get();
// This debug code should be available only to admins.
if ($obj->Deny || !$obj->isadmin()) {
setcookie('msg', 'debug.php :: Access Violation');
header('Location: index.php');
ob_end_flush();
exit;
} elseif (!empty($_REQUEST['link'])) {
if (!empty($_REQUEST['proxy'])) $obj->proxy = $_REQUEST['proxy'];
echo '<pre>'.htmlspecialchars($obj->curl($_REQUEST['link'], (!empty($_REQUEST['cookie']) ? $_REQUEST['cookie'] : 0), (!empty($_REQUEST['post']) ? $_REQUEST['post'] : 0))) . '</pre>';
} else {
echo '<center><br /><br /><br /><br /><br /><h2>DEBUG RESULT</h2></center>';
}
ob_end_flush();
?>