1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 05:31:27 +00:00

implement ProtectedHandler

This commit is contained in:
Andrew Dolgov
2011-12-13 14:15:42 +04:00
parent 8e17d6636e
commit 46da73c255
10 changed files with 79 additions and 71 deletions

View File

@@ -1,9 +1,9 @@
<?php
class RPC extends Handler {
class RPC extends Protected_Handler {
function setprofile() {
$id = db_escape_string($_REQUEST["id"]);
$_SESSION["profile"] = $id;
$_SESSION["prefs_cache"] = array();
}
@@ -215,7 +215,7 @@ class RPC extends Handler {
if ($last_article_id != getLastArticleId($this->link)) {
$omode = $_REQUEST["omode"];
if ($omode != "T")
$reply['counters'] = getAllCounters($this->link, $omode);
else
@@ -403,11 +403,11 @@ class RPC extends Handler {
function assigntolabel() {
return labelops(true);
}
function removefromlabel() {
return labelops(false);
}
function labelops($assign) {
$reply = array();