View file admin/index.php

File size: 1.3Kb
<?php
####################
# Автор: [Svig]    #
# ICQ: 563000172   #
####################

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 "<div class='nav'>";

$d = date("y.m.d");
echo <<<sss
<form name="" action="news.php?mode=add&user=$user&pass=$pass" method="post">
<input name="text" type="text" value=""><br />
sss;
echo "<input name='date' type='hidden' value='".$d."'>";
echo <<<sss
<input type="submit" value="Добавить новость"></form></div>
sss;
echo "<div class='nav'>• <a href=news.php?mode=del&user=$user&pass=$pass>Удалить новость</a><br />";
echo "• <a href=user.php?mode=add&user=$user&pass=$pass>Управление юзером</a><br />";
echo "• <a href=forum.php?mode=forum&user=$user&pass=$pass>Форум</a></div>";
echo "<div class='nav'>• <a href=../menu.php?user=$user&pass=$pass>В меню</a></div>";
include ("../foot.php");
exit();
}
}
else
{
include ("../head.php");
echo "Ошибка! <br />Неверный <b>Ник</b> или <b>Пароль</b>!<br />";
echo <<<sss
<a href="../index.php">На главную</a>
sss;
}
?>