public function handleGet($get, $post, $files, $cookies)
 {
     if (Models\User::currentUser($cookies)->authorizationLevel < 5) {
         throw new \Exception('You are not authorized to view this page');
     }
     /* Set up the page view */
     $view = new Views\AdminPreferencesView();
     $view->moduleName = 'File Store';
     $preferences = array();
     $preferences[] = ['module' => 'LocalFileStore', 'key' => 'photo_dir', 'type' => 'directory', 'name' => 'Photo directory'];
     $preferences[] = ['module' => 'LocalFileStore', 'key' => 'cache_dir', 'type' => 'directoryrw', 'name' => 'Cache directory'];
     $view->preferences = $preferences;
     $this->htmlHeader($cookies);
     $view->render();
     $this->htmlFooter();
 }
 public function handleGet($get, $post, $files, $cookies)
 {
     if (Models\User::currentUser($cookies)->authorizationLevel < 5) {
         throw new \Exception('You are not authorized to view this page');
     }
     /* Set up the page view */
     $view = new Views\AdminPreferencesView();
     $view->moduleName = 'Site Appearance';
     $preferences = array();
     $preferences[] = ['module' => 'CameraLife', 'key' => 'sitename', 'type' => 'string', 'name' => 'Site name'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'owner_email', 'type' => 'string', 'name' => 'Owner email address'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'rewrite', 'type' => 'yesno', 'name' => 'Use pretty URLs'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'autorotate', 'type' => 'yesno', 'name' => 'Autorotate photos'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'thumbsize', 'type' => 'number', 'name' => 'Size for thumbnails'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'scaledsize', 'type' => 'number', 'name' => 'Size for preview images'];
     $preferences[] = ['module' => 'CameraLife', 'key' => 'optionsizes', 'type' => 'string', 'name' => 'Other available sizes', 'help' => 'comma separated (you can also leave this blank)'];
     $view->preferences = $preferences;
     $this->htmlHeader($cookies);
     $view->render();
     $this->htmlFooter();
 }