Beispiel #1
0
 function ocd_restore()
 {
     $file = $this->GetGP("file");
     $appRoot = $this->sitePath;
     $dumper = new Dumper(DbName, $appRoot . "data/backups/");
     $file_name = $dumper->restore($file);
     if ($file_name != "") {
         $this->Redirect($this->pageUrl . "?ec=restore_ok&fn={$file_name}");
     } else {
         $this->Redirect($this->pageUrl . "?ec=restore_error");
     }
 }