Exemple #1
0
         $old_filesrc = $old_res["CONTENT"];
         $filesrc = CMain::ProcessLPA($filesrc, $old_filesrc);
     }
     if (!$bFullPHP) {
         $res = CFileman::ParseFileContent($filesrc_tmp, true);
         $prolog = CFileman::SetTitle($res["PROLOG"], $title);
         for ($i = 0; $i <= $maxind; $i++) {
             if (strlen(Trim($_POST["CODE_" . $i])) > 0) {
                 if ($_POST["CODE_" . $i] != $_POST["H_CODE_" . $i]) {
                     $prolog = CFileman::SetProperty($prolog, Trim($_POST["H_CODE_" . $i]), "");
                     $prolog = CFileman::SetProperty($prolog, Trim($_POST["CODE_" . $i]), Trim($_POST["VALUE_" . $i]));
                 } else {
                     $prolog = CFileman::SetProperty($prolog, Trim($_POST["CODE_" . $i]), Trim($_POST["VALUE_" . $i]));
                 }
             } else {
                 $prolog = CFileman::SetProperty($prolog, Trim($_POST["H_CODE_" . $i]), "");
             }
         }
         $epilog = $res["EPILOG"];
         $filesrc_for_save = $prolog . $filesrc . $epilog;
     } else {
         $filesrc_for_save = $filesrc;
     }
 }
 if (strlen($strWarning) <= 0) {
     if (!CFileMan::CheckOnAllowedComponents($filesrc_for_save)) {
         $str_err = $APPLICATION->GetException();
         if ($str_err && ($err = $str_err->GetString())) {
             $strWarning .= $err;
         }
         $bVarsFromForm = true;