X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=modules%2Fpref-users.php;h=8f6ba10a2627cb377594653f561176954af69231;hb=f30ef1fa1bd76b497b5c0a64a92e2e0ef7116515;hp=7be4eb437b952ce331658bf3e51931297fcc3d47;hpb=c9c4f6b7e3519accdae403346f79a5a03926c9f4;p=tt-rss.git diff --git a/modules/pref-users.php b/modules/pref-users.php index 7be4eb43..8f6ba10a 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -8,12 +8,12 @@ return; } - $subop = $_REQUEST["subop"]; + $method = $_REQUEST["method"]; - if ($subop == "user-details") { + if ($method == "user-details") { header("Content-Type: text/xml"); - print ""; + print ""; $uid = sprintf("%d", $_REQUEST["id"]); @@ -104,13 +104,13 @@ return; } - if ($subop == "edit") { + if ($method == "edit") { header("Content-Type: text/xml"); $id = db_escape_string($_REQUEST["id"]); - print ""; + print ""; print "".__('User Editor').""; print ""; print ""; - print ""; + print ""; $result = db_query($link, "SELECT * FROM ttrss_users WHERE id = '$id'"); @@ -190,7 +190,7 @@ return; } - if ($subop == "editSave") { + if ($method == "editSave") { if ($_SESSION["access_level"] >= 10) { @@ -212,7 +212,7 @@ access_level = '$access_level', email = '$email' WHERE id = '$uid'"); } - } else if ($subop == "remove") { + } else if ($method == "remove") { if ($_SESSION["access_level"] >= 10) { @@ -226,7 +226,7 @@ } } } - } else if ($subop == "add") { + } else if ($method == "add") { if ($_SESSION["access_level"] >= 10) { @@ -265,7 +265,7 @@ $status_msg = format_warning(T_sprintf("User %s already exists.", $login)); } } - } else if ($subop == "resetPass") { + } else if ($method == "resetPass") { if ($_SESSION["access_level"] >= 10) { @@ -449,7 +449,7 @@ $uid = $line["id"]; $edit_uid = $_REQUEST["id"]; - if ($subop == "edit" && $uid != $edit_uid) { + if ($method == "edit" && $uid != $edit_uid) { $class .= " Grayed"; $this_row_id = ""; } else {