projects
/
phpfspot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue103, ensure showPhotoIndex() returns to the right page
[phpfspot.git]
/
rpc.php
diff --git
a/rpc.php
b/rpc.php
index b2d258c5c0748b1530bcc229d4ebfcafc6232c09..4bb297331abbad7bff7d38a9e2c66704f8788743 100644
(file)
--- a/
rpc.php
+++ b/
rpc.php
@@
-67,14
+67,14
@@
class PHPFSPOT_RPC {
break;
case 'addtag':
break;
case 'addtag':
- if(isset($_
GET['id']) && is_numeric($_GE
T['id'])) {
-
$fspot->addTag($_GE
T['id']);
+ if(isset($_
POST['id']) && is_numeric($_POS
T['id'])) {
+
print $fspot->addTag($_POS
T['id']);
}
break;
case 'deltag':
}
break;
case 'deltag':
- if(isset($_
GET['id']) && is_numeric($_GE
T['id'])) {
-
$fspot->delTag($_GE
T['id']);
+ if(isset($_
POST['id']) && is_numeric($_POS
T['id'])) {
+
print $fspot->delTag($_POS
T['id']);
}
break;
}
break;
@@
-87,8
+87,8
@@
class PHPFSPOT_RPC {
break;
case 'tagcondition':
break;
case 'tagcondition':
- if(isset($_
GET['mode']) && in_array($_GE
T['mode'], Array('or', 'and'))) {
-
$fspot->setTagCondition($_GE
T['mode']);
+ if(isset($_
POST['mode']) && in_array($_POS
T['mode'], Array('or', 'and'))) {
+
print $fspot->setTagCondition($_POS
T['mode']);
}
break;
}
break;