-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadminaccchars.php
95 lines (79 loc) · 3.23 KB
/
adminaccchars.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/*
Ceres Control Panel
This is a control pannel program for Athena and Freya
Copyright (C) 2005 by Beowulf and Nightroad
This program 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; either version 2
of the License, or (at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
To contact any of the authors about special permissions send
an e-mail to [email protected]
*/
session_start();
include_once 'config.php'; // loads config variables
include_once 'query.php'; // imports queries
include_once 'adminquery.php';
include_once 'functions.php';
if (!isset($_SESSION[$CONFIG_name.'level']) || $_SESSION[$CONFIG_name.'level'] < $CONFIG['cp_admin'])
die ("Not Authorized");
if (isset($GET_id)) {
opentable("Account - $GET_id");
if (isset($GET_back)) {
$back = base64_decode($GET_back);
echo "<span title=\"View Chars\" style=\"cursor:pointer\" onMouseOver=\"this.style.color='#FF3300'\" onMouseOut=\"this.style.color='#000000'\" onClick=\"return LINK_ajax('adminaccounts.php?$back','accounts_div');\"><-back</span>";
}
$jobs = $_SESSION[$CONFIG_name.'jobs'];
$query = sprintf(ACCCHARS_ID, trim($GET_id));
$result = execute_query($query, 'adminaccchars.php');
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" width=\"500\">
<tr>
<td align=\"right\" class=\"head\">Slot</td>
<td> </td>
<td align=\"left\" class=\"head\">Name</td>
<td align=\"left\" class=\"head\">Class</td>
<td align=\"center\" class=\"head\">blvl/jlvl</td>
<td align=\"center\" class=\"head\">online</td>
<td align=\"center\" class=\"head\">map</td>
<td align=\"center\" class=\"head\">coords</td>
</tr>
";
while ($line = $result->fetch_row()) {
echo "
<tr>
<td align=\"right\">$line[1]</td>
<td> </td>
<td align=\"left\">$line[2]</td>
<td align=\"left\">
";
if (isset($jobs[$line[3]]))
echo $jobs[$line[3]];
else
echo "unknown";
echo "
</td>
<td align=\"center\">$line[4]/$line[5]</td>
<td align=\"center\">$line[6]</td>
<td align=\"center\">$line[7]</td>
<td align=\"center\">$line[8],$line[9]</td>
<td align=\"left\">
<span title=\"Detailed Info\" style=\"cursor:pointer\" onMouseOver=\"this.style.color='#FF3300'\" onMouseOut=\"this.style.color='#000000'\" onClick=\"window.open('admincharinfo.php?id=$line[0]', '_blank', 'height = 600, width = 800, menubar = no, status = no, titlebar = no, scrollbars = yes');\">Detail</span>
</td>
</tr>
";
}
echo "</table>";
} else opentable("Account - Not Found");
// return LINK_ajax('admincharinfo.php?id=$line[0]','chars_div');
echo "<div id=\"chars_div\" style=\"color:#000000\"></div>";
closetable();
fim();
?>