Esempio n. 1
0
 private function checkFilePermissions()
 {
     $category = new SettingCategory('File permissions');
     $rootDir = __DIR__ . '/../../../../../../../../';
     $writableElements = array('app/cache' => 'directory', 'app/sessions' => 'directory', 'app/config' => 'directory', 'app/config/bundles.ini' => 'file', 'app/config/parameters.yml' => 'file', 'app/config/platform_options.yml' => 'file', 'app/config/white_list_ip_range.yml' => 'file', 'app/config/ip_white_list.yml' => 'file', 'app/logs' => 'directory', 'files' => 'directory', 'files/templates' => 'directory', 'web' => 'directory', 'web/uploads' => 'directory', 'web/js' => 'directory');
     foreach ($writableElements as $element => $type) {
         $category->addRequirement("The {$type} %{$type}% must be writable", array($type => $element), is_writable($rootDir . '/' . $element));
     }
     $this->categories[] = $category;
 }
Esempio n. 2
0
 protected function showSettings()
 {
     switch ($this->mode) {
         case 'bewerken':
             $oSetting = new Setting($this->editId);
             //$this->assign('backUrl', '/beheer/instellingen/');
             $this->editObject($oSetting);
             break;
         default:
             $aSettingCategories = SettingCategory::getAll(null, 'id');
             $aSettings = Setting::getAll(array('setting_category_id' => 0));
             $this->assign('aSettingCategories', $aSettingCategories);
             $this->assign('aSettings', $aSettings);
             $this->template = '/instellingen.tpl';
             $this->showOutput();
     }
 }