From d9ee4599c943bf674f180a5fab849ec256658a41 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 13 Jan 2008 18:35:00 +0100 Subject: issue100, add/remove tag and tag-condition use HTTP POST Signed-off-by: Andreas Unterkircher --- rpc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rpc.php') 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; -- cgit v1.2.3-18-g5258