예제 #1
0
 /**
  * ISC_ADMIN_DESIGNMODE::SaveFile()
  *
  * @return
  */
 protected function SaveFile()
 {
     // set the filename and content to the class variables
     $this->Set('FileContent', $_REQUEST['FileContent']);
     $this->Set('FileName', $_REQUEST['File']);
     if (parent::SaveFile()) {
         // file saved!
         // Log this action
         $GLOBALS['ISC_CLASS_LOG']->LogAdminAction($_REQUEST['File']);
         $GLOBALS['SavedOK'] = true;
         $this->EditFile();
     } else {
         // file didn't save =(
         $GLOBALS['SavedOK'] = false;
         $this->EditFile();
     }
 }