+ if(isset($_GET['id']) && is_numeric($_GET['id'])) {
+ $fspot->showPhoto($_GET['id']);
+ }
+ break;
+
+ case 'show_available_tags':
+ print $fspot->getAvailableTags();
+ break;
+
+ case 'show_selected_tags':
+ print $fspot->getSelectedTags();
+ break;
+
+ case 'addtag':
+ if(isset($_POST['id']) && is_numeric($_POST['id'])) {
+ print $fspot->addTag($_POST['id']);
+ }
+ break;
+
+ case 'deltag':
+ if(isset($_POST['id']) && is_numeric($_POST['id'])) {
+ print $fspot->delTag($_POST['id']);
+ }
+ break;
+
+ case 'reset':
+ $fspot->resetTagSearch();
+ $fspot->resetNameSearch();
+ $fspot->resetTags();
+ $fspot->resetDateSearch();
+ $fspot->resetPhotoView();
+ break;
+
+ case 'tagcondition':
+ if(isset($_POST['mode']) && in_array($_POST['mode'], Array('or', 'and'))) {
+ print $fspot->setTagCondition($_POST['mode']);
+ }
+ break;
+
+ case 'show_photo_index':
+ if(isset($_GET['begin_with']) && is_numeric($_GET['begin_with'])) {
+ $_SESSION['begin_with'] = $_GET['begin_with'];
+ }
+ else {
+ unset($_SESSION['begin_with']);
+ }
+ $fspot->showPhotoIndex();
+ break;
+
+ case 'showcredits':
+ $fspot->showCredits();