Example #1
0
 function ProcessAction()
 {
     if ($this->GetAction() == 'changePermissions') {
         $uploadDir = new ImageUploadDirectory();
         $uploadDir->MakeWriteable();
     } else {
         $cacheDir = new TemplateCacheDirectory();
         $cacheDir->Flush();
     }
 }
Example #2
0
 /**
  * Load data for page then display
  */
 public function PageLoad()
 {
     $cacheDirectory = new TemplateCacheDirectory();
     $cacheDirectory->Flush();
     $this->Set('SuggestedInstallPassword', uniqid());
     $this->Set('ConfigSetting', '$conf[\'settings\'][\'install.password\']');
     $this->Set('ConfigPath', '/config/config.php');
     $this->presenter->PageLoad();
     $this->Display('Install/install.tpl');
 }