Размер файла: 1.05Kb
<?php
include ("../conf.php");
include ("../lock.php");
if ($user == $myrow["user"] && $pass == $myrow["pass"])
{
if($user == $adname){
include ("../head.php");
echo "<link rel='stylesheet' type='text/css' href='../style.css'/>";
echo <<<sss
<form name="" action="drop_news.php?user=$user&pass=$pass" method="post">
sss;
$result = mysql_query("SELECT text,id FROM news");
$myrow = mysql_fetch_array($result);
do
{
echo "<link rel='stylesheet' type='text/css' href='../style.css'/>";
echo "<div class='nav'>";
echo " <input name='id' type='radio' value='".$myrow['id']." '>";
echo " ".$myrow['text']." <br /></div>";
}
while ($myrow = mysql_fetch_array($result));
echo <<< sss
<div class='nav'>
<input type="submit" value="Удалить новость"></form></div>
<div class='nav'>
• <a href=../menu.php?user=$user&pass=$pass>В меню</a>
</div>
sss;
include ("../foot.php");
}
}
else
{
include ("../head.php");
echo "Ошибка! <br />Неверный <b>Ник</b> или <b>Пароль</b>!<br />";
echo <<<sss
<a href="../index.php">На главную</a>
sss;
}
?>