View file admin/welcome.php

File size: 672B
<? include("head.html") ?>


<div class=title> Управление рекламой </div>
<div class=menu> 
<a href=?s=1> Очистить приветствие </a>


<form method="GET">
<input type="text" name="all"><BR>
<input type="submit" value="Сохранить">
<?
//------------------
$all = $_GET['all'];

{
if($all == $all)
{

$fp = fopen ( "../data/welcome.txt" , "r+" );
fputs ( $fp , "$all " );
fclose ( $fp ); 

}
}

//------------------
?>

<?
{
if($s == 1)
{

$fp = fopen("../data/welcome.txt", 'a'); 
ftruncate($fp, 0);

}
}


?>

<?
echo "<BR><BR>Блок приветствия:";
include("../data/welcome.txt")
?>


</div>

<? include("copy.html") ?>