View file index.php

File size: 2.89Kb
<?
session_start();

include "file/db.php";
include "file/config.php";
$mod=$_GET['mod'];
if ($mod=="exit")
{
 unset($_SESSION['passw']);
 unset($_SESSION['login']);
 unset($_SESSION['pass']);
}
include "file/themindex.php";


print "<div class='menu'>Дата</div><div class='tab'>";
include "file/date.php";
print " - ";
include "file/time.php";

print "</div></center>";
print "<center><div class='menu'>Вход</div><div class='tab'>";
 echo "<form action=\"login.php?mod=enter&amp;".session_name()."=".session_id()."\" method=\"post\">\n";
 echo "Логин:<br/>\n";
 echo "<input name=\"login\" class='main' maxlength=\"12\" type=\"text\" title=\"Введите Ваш логин\"/><br/>\n";
 echo "Пароль (<a href=\"pass.php?".session_name()."=".session_id()."\">забыл</a>):<br/>\n";
 echo "<input name=\"pass\" class='main' maxlength=\"20\" type=\"password\" title=\"Введите Ваш пароль\"/><br/>\n";
 echo "<input class='main' type=\"submit\" value=\"Войти\"/>\n";
 echo "</form></div></center>";
print "<div class='menu'><center>Новости</center></div>";
$qi = mysql_query("select * from `news` order by id desc limit 1;");
$row=mysql_fetch_array($qi);
echo "<div class='tab'><center><img src=\"style/".$wap_skin."/news.png\" alt=\"*\"/>";echo "<a href=\"news.php?".session_name()."=".session_id()."\" sendreferer=\"true\">Новости</a>&nbsp;"; echo " <b>".$row['date']."</b></center></div>";
include "file/stroka.php";
print "<div class='menu'><center>Акции</center></div><div class='tab'><div class='hr'></div>";
print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/>";echo "<a href=\"action.php?\">Акции</a>&nbsp;(";include_once "file/actioncount.php"; print ")<br/>";
print "<div class='hr'></div></div>";
print "<div class='menu'><center>Меню</center></div><div class='tab'>";
echo "<div class='hr'>";print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"reg.php?".session_name()."=".session_id()."\">Регистрация</a><br /></div>";
echo "<div class='hr'>";print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"cena.php?".session_name()."=".session_id()."\">Расценки</a><br /></div>";
echo "<div class='hr'>";print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"kont.php?".session_name()."=".session_id()."\">Контакты</a><br /></div>";
echo "<div class='hr'>";print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"pravilo.php?".session_name()."=".session_id()."\">Правила</a><br /></div>";
echo "<div class='hr'>";print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"statistic.php\">Статистика</a><br/></div><div class='hr'></div>";
print "<img src=\"style/".$wap_skin."/icon.png\" alt=\"*\"/><a href=\"help.php\">Помощь</a><br/><div class='hr'></div></div>";
include "style/".$wap_skin."/foot.php";

?>