diff options
author | Andrew Dolgov <[email protected]> | 2011-12-13 14:15:42 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-13 14:18:18 +0400 |
commit | 46da73c255353a3f874d9742d7b2f9c64e7607b5 (patch) | |
tree | 8cae462d2ce3067577ba13fe238c63a0c0b70075 /classes/rpc.php | |
parent | 8e17d6636ec4035ee7fa0fdec335112a7eb08a16 (diff) |
implement ProtectedHandler
Diffstat (limited to 'classes/rpc.php')
-rw-r--r-- | classes/rpc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 8f03381f8..c6fc8c263 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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(); |