-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathusers.php
More file actions
59 lines (50 loc) · 2.05 KB
/
users.php
File metadata and controls
59 lines (50 loc) · 2.05 KB
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
<?php
require('checkallowed.php'); // Check logged-in
?>
<div class="page_title">
<div class="page_title_icon"><img src="../images/icons/medium/accounts.png" border="0" /></div>
<div class="page_title_text"><?php echo $lang['accounts']; ?></div>
</div>
<?php $Plugins->do_action('users_top'); // Plugins ?>
<div class="box">
<div class="box_title" id="box_servers_title"><?php echo $lang['accounts']; ?></div>
<div class="box_content" id="box_servers_content">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="700" class="box_table" style="text-align:left;">
<tr>
<td width="120"><b><?php echo $lang['username']; ?></b></td>
<td width="150"><b><?php echo $lang['name']; ?></b></td>
<td width="140"><b><?php echo $lang['email_address']; ?></b></td>
<td width="120"> </td>
</tr>
<?php
// List users
$result_usr = $GLOBALS['mysqli']->query("SELECT
id,
first_name,
last_name,
username,
email_address
FROM users
WHERE
deleted = '0'
ORDER BY
id DESC") or die('Failed to query for users: '.$GLOBALS['mysqli']->error);
while($row_usr = $result_usr->fetch_array())
{
$usr_id = $row_usr['id'];
$usr_fullname = $row_usr['first_name'] . ' ' . $row_usr['last_name'];
$usr_usrname = $row_usr['username'];
$usr_email = $row_usr['email_address'];
echo '<tr id="usr_' . $usr_id. '" style="cursor:pointer;" onClick="javascript:mainpage(\'viewuser\',' . $usr_id . ');">
<td>' . $usr_usrname . '</td>
<td>' . $usr_fullname . '</td>
<td>' . $usr_email . '</td>
<td class="links">'.$lang['manage'].'</td>
</tr>';
}
?>
<?php $Plugins->do_action('users_table'); // Plugins ?>
</table>
</div>
</div>
<?php $Plugins->do_action('users_bottom'); // Plugins ?>