View file modile/adm/cgf_set.php

File size: 1.59Kb
<?php
echo
'<span class="ramka">
Параметры оптимизации.
</span><br>';
if ($_POST['save'] != '1')
{
include('cgf/optim.php');
 echo
 '
<form name="" action="" method="post">
Приветствие на главной странице:<br>
';
 $mess1 = $pg_pr_p;
 include('flud/anti_y.php');
 $pg_pr_p_red = $mess1;
echo '
<textarea style="width: 100%;" name="pg_pr_p" rows=5 cols=20>'.$pg_pr_p_red.'</textarea>
<br>
Название сайта:<br>
<input name="site_title" type="text" value="'.$site_title.'"><br>
Ключевые слова<br>
<input name="pg_pr_k" type="text" value="'.$pg_pr_k.'"><br>
Описание сайта<br>
<input name="pg_pr_d" type="text" value="'.$pg_pr_d.'"><br>
<br>
<input name="save" type="hidden" value="1">
<input type="submit" value="Сохранить">
</form>
 ';

}
else
{

 $mess1 = $_POST['pg_pr_k'];
 include('flud/anti_x.php');
 $pg_pr_k = $mess1;

 $mess1 = $_POST['pg_pr_d'];
 include('flud/anti_x.php');
 $pg_pr_d = $mess1;

 $mess1 = $_POST['pg_pr_p'];
 include('flud/anti_x.php');
 $pg_pr_p = $mess1;

 $mess1 = $_POST['site_title'];
 include('flud/anti_x.php');
 $site_title = $mess1;

 $fp = fopen ('cgf/optim.php', "w+");
 fwrite ($fp,
 '
 <?php
 $pg_pr_k = \''.$pg_pr_k.'\';
 $pg_pr_d = \''.$pg_pr_d.'\';
 $pg_pr_p = \''.stripslashes($pg_pr_p).'\';
 $site_title = \''.$site_title.'\';

 ?>
 '
 );
 fclose ($fp);
 echo
 '
  <span class="ramka">
   Успешно сохранено!
   </span>
    <a href="/adminf.php?m='.$_GET['m'].'&id='.$_GET['id'].'">Далее</a>
 ';
}
?>