summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-13 10:00:42 +0400
committerAndrew Dolgov <[email protected]>2011-12-13 10:51:50 +0400
commit1395083e9471ef5cd39314479790552a569d37d0 (patch)
treecf19e4348af690a066f8ac60ce33ccd037e936d5 /backend.php
parentafcfe6cad5606370c2e8ba3737bf96ae4f045bf9 (diff)
add pref_prefs class
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/backend.php b/backend.php
index 1c7b3ffb0..8220337ac 100644
--- a/backend.php
+++ b/backend.php
@@ -50,14 +50,7 @@
init_connection($link);
- $method = strtolower($_REQUEST["method"]);
- $mode = $_REQUEST["mode"];
-
- /* if ((!$op || $op == "rss" || $op == "dlg") && !$_REQUEST["noxml"]) {
- header("Content-Type: application/xml; charset=utf-8");
- } else {
- header("Content-Type: text/plain; charset=utf-8");
- } */
+ $method = $_REQUEST['subop'] ? $_REQUEST['subop'] : $_REQUEST["method"];
header("Content-Type: text/plain; charset=utf-8");
@@ -78,7 +71,7 @@
return;
} else if (!($_SESSION["uid"] && validate_session($link))) {
- if ($op == 'pref-feeds' && $_REQUEST['method'] == 'add') {
+ if ($op == 'pref-feeds' && $method == 'add') {
header("Content-Type: text/html");
login_sequence($link);
render_login_form($link);
@@ -173,11 +166,6 @@
module_pref_labels($link);
break; // pref-labels
- case "pref-prefs":
- require_once "modules/pref-prefs.php";
- module_pref_prefs($link);
- break; // pref-prefs
-
case "pref-users":
require_once "modules/pref-users.php";
module_pref_users($link);