Ejemplo n.º 1
0
 /**
  * Processate POST and FILES
  */
 private function processPosts()
 {
     if ($this->userType === 'admin') {
         if (isset($_POST['loadDefaultConfig'])) {
             FBAdmin::loadDefaultConfig();
         }
         if (isset($_POST['Cfg'])) {
             FBAdmin::updateGalleryConfig();
         }
     }
     if ($this->userType === 'editor' || $this->userType === 'admin') {
         if (isset($_POST['deleteImg']) && isset($_POST['gImg'])) {
             $this->deleteImage();
         }
         if (isset($_POST['newImgOrder'])) {
             $this->newSort();
         }
         if (isset($_POST['function']) && $_POST['function'] === 'renameItem') {
             $this->renameItem();
         }
         if (isset($_FILES['uploader'])) {
             Uploader::preUpload();
         }
     }
 }