Размер файла: 707B
<?
include "../head.php";
?>
<link rel="stylesheet" href="../style.css" type="text/css"/>
<div class="cont">
<div class="title"><div class="tleft">Админка</div></div>
<div class="ct">
<form method="GET">
HTML код:<BR>
<textarea cols=35 rows=12 name="rates">
<?
$sod = file_get_contents("../data/news.txt");
echo $sod;
?>
</textarea><BR>
<input type="submit">
</form>
<?php
$rates = $_GET['rates'];
if(isset($rates))
{
$fp = fopen("../data/news.txt","w");
fputs($fp,"$rates");
fclose($fp);
}
?>
<BR><a href="index.php">Админка</a><BR>
<a href="../index.php">На главную</a>
</div>
</div>
<?
include "../foot_admin.php";
?>