$user = pg_fetch_object($user, 0);
$id = $user->id;
-if ($admin == 0 && $edit && $id != $user_id && !acl(XAT_CAN_EDIT)) {
+if ($admin == 0 && isset($edit) && $id != $user_id && !acl(XAT_CAN_EDIT)) {
std_theme_styles(1);
std_theme_body();
echo "<h1>Not allowed !!!</h1><br>\n";
}
}
}
-if ($edit && $isAdmin && $isAdminLvl >= $admin && $user->id != $user_id && $admin < 1000) {
+if (isset($edit) && $isAdmin && $isAdminLvl >= $admin && $user->id != $user_id && $admin < 1000) {
unset($edit);
}
-if ($edit && $admin >= $min_lvl && $user->id != $user_id && $delBtn) {
+if (isset($edit) && $admin >= $min_lvl && $user->id != $user_id && $delBtn) {
echo "<input type=button onClick=\"del_this_user();\" value=\"Delete this username\"> (no undo)";
/*
echo "<br><b><i>user is ";
echo("<tr><td colspan=2 bgcolor=#" . $cTheme->table_sepcolor . "><font size=-1 color=#" . $cTheme->table_septextcolor . "><em><b>User Information</b></em></td></tr>");
-if (!$edit) {
+if (!isset($edit)) {
if ($admin > 0) {
local_seclog("View '" . $user->user_name . "' (" . $user->id . ")");
}
else
echo($user->public_key . "<br></td></tr>");
}
-if (!$edit && ($admin > 0 || has_acl($user_id)) && (
+if (!isset($edit) && ($admin > 0 || has_acl($user_id)) && (
$admin >= 800 ||
(acl(XIPR_MOD_OWN) && $user_id == $user->id) ||
(acl(XIPR_VIEW_OWN) && $user_id == $user->id) ||
} else {
echo "<tr><td><b>User's Timezone</b></td><td><b>** NOT SET **</b></td></tr>\n";
}
- if ($edit) {
+ if (isset($edit)) {
if ($admin >= MOD_MAXLOGINS_LEVEL) {
echo "<tr><td><b>User's Max Logins</b></td><td>";
echo "<select name=maxlogins>";
if ($isAdmin) {
echo "<tr><td><b>User's DISABLEAUTH setting</b></td><td>";
- if ($edit) {
+ if (isset($edit)) {
if ((int) $user->flags & 64) {
echo "<font color=#" . $cTheme->main_yes . "><b>ON";
} else {
}
if ($admin >= 800) { // new
echo "<tr><td><b>User's ALUMNI setting</b></td><td>";
- if ($edit && $user_id != $user->id) {
+ if (isset($edit) && $user_id != $user->id) {
if ((int) $user->flags & 128) {
$ps1 = "selected ";
$ps2 = "";
}
if ($admin >= 800) { // new
echo "<tr><td><b>User's OPER setting</b></td><td>";
- if ($edit) {
+ if (isset($edit)) {
if ((int) $user->flags & 256) {
$ps1 = "selected ";
$ps2 = "";
echo "</b></font></td></tr>\n";
}
}
-if (!$edit) {
+if (!isset($edit)) {
if ($admin > 0 || acl(XAT_CAN_EDIT)) {
echo "<tr><td><b>Can post next form on</b></td><td>";
if ($user->post_forms > 0 && $user->post_forms > time()) {
}
echo "</td></tr>\n";
}
-if (!$edit) {
+if (!isset($edit)) {
if ($user->question_id == "" || $user->question_id == 0) {
echo "<tr><td><b>Verification question</b></td><td>** NOT SET **</td></tr>";
} else {
// 2) or you have XAT_CAN_EDIT flags set in an ACL for you UNLESS
// 3) user has higher admin access than you.
// TODO: Allow editing and saving changes.. fair bit of stuff to do
- if (!$edit) {
+ if (!isset($edit)) {
} else {
echo "<input type=submit value=\" SAVE CHANGES \">\n";
echo "<input type=hidden name=id value=\"" . (int) $id . "\">\n";
if ($admin > 0)
echo "</form>\n";
- if (!$edit) {
+ if (!isset($edit)) {
echo "<form method=GET>";
echo "<input type=\"hidden\" name=\"id\" value=\"" . (int) $id . "\">";
echo "<input type=\"hidden\" name=\"edit\" value=\"true\">";
}
-if (!$edit && $user_id == $id && ENABLE_NOTES && ((NOTES_ADMIN_ONLY && $admin > 0) || (NOTES_ADMIN_ONLY == 0))) {
+if (!isset($edit) && $user_id == $id && ENABLE_NOTES && ((NOTES_ADMIN_ONLY && $admin > 0) || (NOTES_ADMIN_ONLY == 0))) {
echo "<form>";
$codenotes = " ";
}
-if (!$edit && $user_id == $id && ENABLE_NOTES && ((NOTES_ADMIN_ONLY && $admin > 0) || (NOTES_ADMIN_ONLY == 0))) {
+if (!isset($edit) && $user_id == $id && ENABLE_NOTES && ((NOTES_ADMIN_ONLY && $admin > 0) || (NOTES_ADMIN_ONLY == 0))) {
echo "</form>\n";
}
if ($admin > 0 || acl(XLOGGING_VIEW)) {
- if ($admin >= 600 && !$edit) {
+ if ($admin >= 600 && !isset($edit)) {
echo "<form name=admcmt method=post action=admin_user_comment.php>\n";
echo "<input type=hidden name=uid value=$id>";
echo "Add an admin comment to that user : <b>requires level 600+</b><br><input type=text name=admcmt size=50 maxlength=255> <input type=submit value=\" Add \"></form>\n";
echo "There are no admin comments for this user\n<br><br>";
}
}
-if ($edit && $delBtn) { // deletion secured form
+if (isset($edit) && $delBtn) { // deletion secured form
echo "<form name=deleteusername action=wipeuser.php method=post>\n";
make_secure_form("deleteuser!!!" . CRC_SALT_0008 . $user->user_name);
echo "<input type=hidden name=username value=\"" . $user->user_name . "\">\n";