='102'"); } redirect(FUSION_SELF.$aidlink); } if (isset($_POST['update_admin'])) { if (!isNum($user_id) || $user_id == "1") fallback(FUSION_SELF.$aidlink); if (isset($_POST['rights'])) { $user_rights = ""; for ($i = 0;$i < count($_POST['rights']);$i++) { $user_rights .= stripinput($_POST['rights'][$i]); if ($i != (count($_POST['rights'])-1)) $user_rights .= "."; } $result = dbquery("UPDATE ".$db_prefix."users SET user_rights='$user_rights' WHERE user_id='$user_id' AND user_level>='102'"); } else { $result = dbquery("UPDATE ".$db_prefix."users SET user_rights='' WHERE user_id='$user_id' AND user_level>='102'"); } redirect(FUSION_SELF.$aidlink); } $i = 0; opentable($locale['400']); $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level>='102' ORDER BY user_level DESC, user_name"); echo "\n"; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "\n\n"; $i++; } $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level<'102' ORDER BY user_name"); if (dbrows($result)) { echo "\n\n"; } echo "
".$locale['401']." ".$locale['402']." ".$locale['403']."
".$data['user_name']." ".getuserlevel($data['user_level'])." \n"; if ($data['user_level'] == "103" && $userdata['user_id'] == "1") { $can_edit = true; } elseif ($data['user_level'] != "103") { $can_edit = true; } else { $can_edit = false; } if ($can_edit == true && $data['user_id'] != "1") { echo "".$locale['406']." |\n"; echo "".$locale['407']."\n"; } echo "

".$locale['411']; if ($userdata['user_id'] == "1") echo "
\n ".$locale['412']; echo "\n
\n
\n"; closetable(); tablebreak(); if (isset($edit)) { if (!isNum($edit) || $edit == "1") fallback(FUSION_SELF.$aidlink); $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$edit' AND user_level>='102' ORDER BY user_id"); if (dbrows($result)) { $data = dbarray($result); $user_rights = explode(".", $data['user_rights']); $result2 = dbquery("SELECT * FROM ".$db_prefix."admin WHERE admin_page!='4' ORDER BY admin_page ASC,admin_title"); opentable($locale['420']); $columns = 2; $counter = 0; $page = 1; $admin_page = array($locale['421'],$locale['422'],$locale['423']); echo "
\n"; echo "\n"; echo "\n\n\n\n"; while ($data2 = dbarray($result2)) { if ($page != $data2['admin_page']) { echo ($counter % $columns == 0 ? "\n" : "\n\n"); echo "\n\n\n\n"; $page++; $counter = 0; } if ($counter != 0 && ($counter % $columns == 0)) echo "\n\n"; echo "\n"; $counter++; } echo "
".$admin_page['0']."
".$admin_page[$page]."
".$data2['admin_title']."
\n"; closetable(); } } echo "\n"; echo "\n"; require_once BASEDIR."footer.php"; ?>