+
+ case 'showcredits':
+ $fspot->showCredits();
+ break;
+
+ case 'search':
+ $fspot->startSearch($_GET['for'], $_GET['sort_order'], $_GET['from'], $_GET['to']);
+
+ if((isset($_GET['from']) && $fspot->isValidDate($_GET['from'])) &&
+ (isset($_GET['to']) && $fspot->isValidDate($_GET['to']))) {
+ }
+ else {
+ $fspot->startSearch($_GET['for'], $_GET['sort_order']);
+ }
+ break;
+
+ case 'get_export':
+ /* $_GET['mode'] will be validated by getExport() */
+ $fspot->getExport($_GET['mode']);
+ break;
+
+ case 'get_photo_to_show':
+ $fspot->getCurrentPhoto();
+ break;
+
+ case 'get_calendar_matrix':
+ if((is_numeric($_GET['year']) || !isset($_GET['year'])) &&
+ (is_numeric($_GET['month']) || !isset($_GET['month'])) &&
+ (is_numeric($_GET['day']) || !isset($_GET['day']))) {
+ $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']);
+ }
+ break;
+
+ case 'what_to_do':
+ print $fspot->whatToDo();
+ break;
+
+ case 'reset_slideshow':
+ print $fspot->resetSlideShow();
+ break;
+
+ case 'get_next_slideshow_img':
+ print $fspot->getNextSlideShowImage();
+ break;
+
+ case 'get_prev_slideshow_img':
+ print $fspot->getPrevSlideShowImage();
+ break;