From 6198d8ac0ce0623ebb56dba2fed19e4e759682c0 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Fri, 15 Aug 2008 13:19:23 +0200 Subject: support for F-Spot photo versioning, refs #67 Signed-off-by: Andreas Unterkircher --- rpc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rpc.php') 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': -- cgit v1.2.3-18-g5258