Example #1
0
         $notify = postAlbumSort($album->getID());
         if ($notify) {
             if ($notify === true) {
                 $notify = '&saved';
             } else {
                 $notify = '&saved' . $notify;
             }
             $album = newAlbum($folder);
             $album->setSortType('manual', 'album');
             $album->setSortDirection(false, 'album');
             $album->save();
         } else {
             $notify = '&noaction';
         }
     } else {
         $notify = processAlbumBulkActions();
         if (empty($notify)) {
             $notify = '&noaction';
         } else {
             $notify = '&bulkmessage=' . $notify;
         }
     }
     header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin-edit.php?page=edit&album=' . $folder . '&tab=subalbuminfo' . $notify);
     exitZP();
     break;
 case 'sorttags':
     if (isset($_GET['subpage'])) {
         $pg = '&subpage=' . $_GET['subpage'];
         $tab = '&tab=imageinfo';
     } else {
         $pg = '';
Example #2
0
         if (!empty($action)) {
             $action = '&bulkmessage=' . $action;
         }
     }
     header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin-edit.php?page=edit' . $action . '&saved' . $notify);
     exit;
     break;
 case 'savesubalbumorder':
     XSRFdefender('savealbumorder');
     $album = new Album($gallery, $folder);
     $album->setSubalbumSortType('manual');
     $album->setSortDirection('album', 0);
     $album->save();
     $notify = postAlbumSort($album->get('id'));
     if (isset($_POST['ids'])) {
         $action = processAlbumBulkActions();
         if (!empty($action)) {
             $action = '&bulkmessage=' . $action;
         }
     }
     header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin-edit.php?page=edit' . $action . '&album=' . $folder . '&tab=subalbuminfo&saved' . $notify);
     exit;
     break;
 case 'sorttags':
     if (isset($_GET['subpage'])) {
         $pg = '&subpage=' . $_GET['subpage'];
         $tab = '&tab=imageinfo';
     } else {
         $pg = '';
         $tab = '';
     }