<?php

//superprint($media_file);
//exit;
if (isset($post_vars["content_html_body"]) and is_file($media_file)) {
    $html_code = $post_vars["content_html_body"];
    fileWriteHtm($media_file, $html_code);
}
Пример #2
0
 function update_media_props($post_vars)
 {
     //parent::update_document_props($post_vars);
     //superprint($post_vars["content_html_body"]);
     if (isset($post_vars["content_html_body"])) {
         $html_code = $post_vars["content_html_body"];
         $htm_file = $this->getContentFile();
         fileWriteHtm($htm_file, $html_code);
     }
     if (isset($post_vars["document_header"])) {
         $document_header = $post_vars["document_header"];
         // setDocumentHeader from class "document";
         $this->setDocumentHeader($document_header);
     }
 }