-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.php
More file actions
66 lines (44 loc) · 962 Bytes
/
debug.php
File metadata and controls
66 lines (44 loc) · 962 Bytes
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
<?php
$dbac=new db_log();
$rs=$dbac->out_debug("select * from bmyuserlog");
while($row = mysql_fetch_array($rs))
{
if(substr($row['action'],0,5)=="debug")
{
echo $row[0];
echo "<br>";
echo $row['username'];
echo "<br>";
echo $row['userip'];
echo "<br>";
echo $row['action'];
echo "<br>";
echo $row['usertime'];
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";
}
}
class db_log
{
public $connect;
public $select;
function __construct() {
include('config_global.php');
$connect = mysql_connect($global_db_server,$global_db_username,$global_db_pwd);
if($connect)
{
$select = mysql_select_db($global_db_db, $connect);
mysql_query("SET NAMES 'utf8'");
}
}
function __destruct() {
}
function out_debug($sqlstr)
{
return mysql_query($sqlstr);
}
}
?>