1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:25:54 +00:00

add pref_prefs class

This commit is contained in:
Andrew Dolgov
2011-12-13 10:00:42 +04:00
parent afcfe6cad5
commit 1395083e94
4 changed files with 496 additions and 527 deletions

View File

@@ -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);