summaryrefslogtreecommitdiffstats
path: root/rpc.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-08-15 13:19:23 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-08-18 06:14:49 +0200
commit6198d8ac0ce0623ebb56dba2fed19e4e759682c0 (patch)
tree0145aa8cb373333cad496dec1da86c8275ccc819 /rpc.php
parent936c19d107653fdc77943782e54aafe07c6585b5 (diff)
support for F-Spot photo versioning, refs #67
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'rpc.php')
-rw-r--r--rpc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/rpc.php b/rpc.php
index ada2857..17af073 100644
--- a/rpc.php
+++ b/rpc.php
@@ -135,13 +135,20 @@ class PHPFSPOT_RPC {
}
break;
+ case 'update_photo_version':
+ if(isset($_POST['photo_version']) && is_numeric($_POST['photo_version']) &&
+ isset($_POST['photo_idx']) && is_numeric($_POST['photo_idx'])) {
+ print $phpfspot->update_photo_version($_POST['photo_idx'], $_POST['photo_version']);
+ }
+ break;
+
case 'get_export':
/* $_GET['mode'] will be validated by getExport() */
$phpfspot->getExport($_GET['mode']);
break;
case 'get_photo_to_show':
- $phpfspot->getCurrentPhoto();
+ print $phpfspot->get_current_photo();
break;
case 'get_calendar_matrix':