echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=0'>".$locale['417']."</a> ::\n";
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'102'");
$rows = dbrows($result);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $_GET['rowstart'] = 0;
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'102' ORDER BY user_status DESC, user_level DESC, user_name LIMIT ".$_GET['rowstart'].",20");
echo "<div style='text-align:center;margin-bottom:10px;'>\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=0'>".$locale['417']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=2'>".$locale['418']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=1'>".$locale['419']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&step=add'>".$locale['402']."</a>\n";
echo "</div>\n";
if ($rows) {
$i = 0;
echo "<table cellpadding='0' cellspacing='1' width='450' class='tbl-border center'>\n<tr>\n";
echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['403']."</strong></td>\n";
echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['404']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<tr>\n<td class='$cell_color'><a href='".FUSION_SELF.$aidlink."&step=view&user_id=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>";
if ($data['user_level'] < 102) echo "<a href='".FUSION_SELF.$aidlink."&step=edit&user_id=".$data['user_id']."'>".$locale['406']."</a>\n";
if ($data['user_status'] == "2") {
echo "- <a href='".FUSION_SELF.$aidlink."&step=activate&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['407']."</a>\n";
} elseif ($data['user_status'] == "1") {
echo "- <a href='".FUSION_SELF.$aidlink."&step=ban&act=off&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['408']."</a>\n";
} else {
if ($data['user_level'] < 102) echo "- <a href='".FUSION_SELF.$aidlink."&step=ban&act=on&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['409']."</a>\n";
}
if ($data['user_level'] < 102) echo "- <a href='".FUSION_SELF.$aidlink."&step=delete&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."' onclick='return DeleteMember();'>".$locale['410']."</a>";
echo "</td>\n</tr>\n"; $i++;
}
echo "</table>\n";
}
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'102' AND user_groups
LIKE '%.1%'");
$rows = dbrows($result);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $_GET['rowstart'] = 0;
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'102' AND user_groups
LIKE '%.1%' ORDER BY user_status DESC, user_level DESC, user_name LIMIT ".$_GET['rowstart'].",20");
echo "<div style='text-align:center;margin-bottom:10px;'>\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=0'>".$locale['417']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=2'>".$locale['418']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=1'>".$locale['419']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&step=add'>".$locale['402']."</a>\n";
echo "</div>\n";
if ($rows) {
$i = 0;
echo "<table cellpadding='0' cellspacing='1' width='450' class='tbl-border center'>\n<tr>\n";
echo "<td class='tbl2'><strong>".$locale['401']."</strong></td>\n";
echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['403']."</strong></td>\n";
echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'><strong>".$locale['404']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
$user_groups = explode(".", $data['user_groups']);
if (in_array("1", $user_groups, true)) {
$cell_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<tr>\n<td class='$cell_color'><a href='".FUSION_SELF.$aidlink."&step=view&user_id=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>".getuserlevel($data['user_level'])."</td>\n";
echo "<td align='center' width='1%' class='$cell_color' style='white-space:nowrap'>";
if ($data['user_level'] < 102) echo "<a href='".FUSION_SELF.$aidlink."&step=edit&user_id=".$data['user_id']."'>".$locale['406']."</a>\n";
if ($data['user_status'] == "2") {
echo "- <a href='".FUSION_SELF.$aidlink."&step=activate&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['407']."</a>\n";
} elseif ($data['user_status'] == "1") {
echo "- <a href='".FUSION_SELF.$aidlink."&step=ban&act=off&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['408']."</a>\n";
} else {
if ($data['user_level'] < 102) echo "- <a href='".FUSION_SELF.$aidlink."&step=ban&act=on&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."'>".$locale['409']."</a>\n";
}
if ($data['user_level'] < 102) echo "- <a href='".FUSION_SELF.$aidlink."&step=delete&".$list_link."&status=".$_GET['status']."&rowstart=".$_GET['rowstart']."&user_id=".$data['user_id']."' onclick='return DeleteMember();'>".$locale['410']."</a>";
echo "</td>\n</tr>\n"; $i++;
}
}
echo "</table>\n";
}
global $locale;
global $aidlink;
$a_pm = "&area=pm&step="; $a_PM = "&area=pm";
$a_pe = "&area=pe&step="; $a_PE = "&area=pe";
$a_db = "&area=db&step="; $a_DB = "&area=db";
$a_inv = "&area=inv&step=edit"; $a_INV = "&area=inv";
$attention = 0;
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'104'");
$rows = dbrows($result);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $_GET['rowstart'] = 0;
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE".$user_name." user_status='".$_GET['status']."'AND user_level<'104' ORDER BY user_status DESC, user_name");
echo "<div style='text-align:center;margin-bottom:10px;'>\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=0'>".$locale['417']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=2'>".$locale['418']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&".$list_link."&status=1'>".$locale['419']."</a> ::\n";
echo "<a href='".FUSION_SELF.$aidlink."&step=add'>".$locale['402']."</a>\n";
echo "</div>\n";
if ($rows) {
$i = 0;
Category Forum
User Administration - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions