Просмотр файла www/adm/index/index.php

Размер файла: 0.98Kb
<?php
 if ($_POST['pg_pr_p'] != '')
 {
  $fp = fopen ($cms.'cgf/pr_pr_p.txt', "w+");
  fwrite ($fp, filt($_POST['pg_pr_p']));
  fclose ($fp);
  echo '<div class="mess2" id="save_ok">
  Главная страница сохранена.
  </div>
  <script type="text/javascript">
   function mess_head()
   {
    document.getElementById("save_ok").style.display = "none";
   }
  setTimeout("mess_head();", 2000);
  </script>';
 }

echo '
<form name="" action="" method="post">
';

            include($cms.'flud/js/bb.php');
            include($cms.'flud/js/smyle.php');
            $ms_pol = 'pg_pr_p';
			include($cms.'flud/js/smyler.php');
			$ms_pol = 'pg_pr_p';
			include($cms.'flud/js/bber.php');
 $mess1 = file_get_contents($cms.'cgf/pr_pr_p.txt');
 include($cms.'flud/anti_y.php');
 $pg_pr_p_red = $mess1;
echo '
<textarea style="width: 100%;" name="pg_pr_p" rows=25 cols=20>'.$pg_pr_p_red.'</textarea>
<br />
<input type="submit" class="knopka" value="Сохранить">
</form>';

?>