summaryrefslogtreecommitdiff
path: root/classes/rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 14:27:15 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 14:27:15 +0400
commit76f2113b359d3c488cc3a149237908cb3bbb535f (patch)
tree565181428d240e7b44f521698b6658a267eb8728 /classes/rpc.php
parentc35b6d8e14fd930128cd70c7dc46bef9e1c39d9d (diff)
instances: fix a few wrong calls, move genHash method from rpc
Diffstat (limited to 'classes/rpc.php')
-rw-r--r--classes/rpc.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/classes/rpc.php b/classes/rpc.php
index 34f623b06..d7872477e 100644
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -640,32 +640,6 @@ class RPC extends Handler_Protected {
return;
}
- function verifyRegexp() {
- $reg_exp = $_REQUEST["reg_exp"];
-
- $status = @preg_match("/$reg_exp/i", "TEST") !== false;
-
- print json_encode(array("status" => $status));
- }
-
- /* function buttonPlugin() {
- $pclass = "button_" . basename($_REQUEST['plugin']);
- $method = $_REQUEST['plugin_method'];
-
- if (class_exists($pclass)) {
- $plugin = new $pclass($this->link);
- if (method_exists($plugin, $method)) {
- return $plugin->$method();
- }
- }
- } */
-
- function genHash() {
- $hash = sha1(uniqid(rand(), true));
-
- print json_encode(array("hash" => $hash));
- }
-
function batchAddFeeds() {
$cat_id = db_escape_string($this->link, $_REQUEST['cat']);
$feeds = explode("\n", db_escape_string($this->link, $_REQUEST['feeds']));