summaryrefslogtreecommitdiffstats
path: root/rpc.php
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.php')
-rw-r--r--rpc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc.php b/rpc.php
index b2d258c..4bb2973 100644
--- a/rpc.php
+++ b/rpc.php
@@ -67,14 +67,14 @@ class PHPFSPOT_RPC {
break;
case 'addtag':
- if(isset($_GET['id']) && is_numeric($_GET['id'])) {
- $fspot->addTag($_GET['id']);
+ if(isset($_POST['id']) && is_numeric($_POST['id'])) {
+ print $fspot->addTag($_POST['id']);
}
break;
case 'deltag':
- if(isset($_GET['id']) && is_numeric($_GET['id'])) {
- $fspot->delTag($_GET['id']);
+ if(isset($_POST['id']) && is_numeric($_POST['id'])) {
+ print $fspot->delTag($_POST['id']);
}
break;
@@ -87,8 +87,8 @@ class PHPFSPOT_RPC {
break;
case 'tagcondition':
- if(isset($_GET['mode']) && in_array($_GET['mode'], Array('or', 'and'))) {
- $fspot->setTagCondition($_GET['mode']);
+ if(isset($_POST['mode']) && in_array($_POST['mode'], Array('or', 'and'))) {
+ print $fspot->setTagCondition($_POST['mode']);
}
break;