-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.php
50 lines (37 loc) · 778 Bytes
/
log.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
<?php
require 'init.inc.php';
if ($_GET['ajax'] != '1')
{
include 'header.inc.php';
echo '<div id="phprcon">';
}
if ($_SESSION['sess_rcon_rights'] != 1)
{
die($lang['rights_error']);
} else {
if ($_GET['ajax'] != '1')
{echo '<h1>'.(($home_admin_link)?'<a href="'.$home_admin_link.'">Admin</a> / ':'').'PHP RCon log</h1>';}
$begin = true;
$data = @fopen('log.data.php','r');
if ($data)
{
echo '<pre>';
while ($s = fread($data, 1024))
{
if ($begin)
{
$s = str_replace('<?php exit; ?'.">\n",'',$s);
$begin = false;
}
echo htmlspecialchars($s);
}
echo '</pre>';
fclose($data);
}
}
if ($_GET['ajax'] != '1')
{
echo '</div>';
include 'footer.inc.php';
}
?>