- Автор темы
- #11
Код:
<?php
session_start();
include("config/config.php");
if ($action=="logout")
{
include("config/config.php");
$now=time();
@SetCookie("user", "$user");
@SetCookie("pass", "$pass");
$stat = mysql_fetch_array(mysql_query("SELECT id, user, room FROM players WHERE user='$user' AND pass='$pass' LIMIT 1"));
mysql_query("DELETE FROM online where id='".$stat['id']."'");
if($stat['user']){require_once("inc/rooms.php");
require_once("inc/chat/functions.php");
insert_msg("Персонаж <b>".$stat['user']."</b> покинул нас!","","",3,"","",$stat['room']);}
$host=GetEnv("HTTP_HOST");
unset($user, $pass);
@SetCookie("user", "");
@SetCookie("pass", "");
@Header("Location: http://$host");
exit;
}
if(empty($type)){$type = "news"; $title="Главная Страница";}
else if($type=="news"){$title="Новости";}
else if($type=="about"){$title="О игре";}
else if($type=="agreement"){$title="Пользовательское Соглашение";}
else if($type=="law"){$title="Законы";}
else if($type=="forum"){$title="Форум";}
else if($type=="reminder"){$title="Забыли пароль?";}
else if($type=="faq"){$title="FAQ";}
else if($type=="termin"){$title="Термины";}
else if($type=="lawmoney"){$title="Закон о Товарно-Денежных Отношениях";}
else if($type=="lawbyk"){$title="Закон о Букмекерских конторах";}
else if($type=="exp"){$title="Таблица опыта";}
else if($type=="lawchat"){$title="Законы поведения в чате";}
else if($type=="vip"){$title="Платные услуги";}
else if($type=="top_krut"){$title="Топ игроков";}
else if($type=="top_user"){$title="Топ крутизны";}
else if($type=="top_klans"){$title="Топ кланов";}
else if($type=="top_ref"){$title="Топ реф. ссылок";}
else if($type=="start"){$title="Быстрый старт";}
else if($type=="lib"){$title="Библиотека";}
else if($type=="constitution"){$title="Конституция";}
else if($type=="comments"){$title="Обсуждение";}
else if($type=="reg"){$title="Регистрация";}
else if($type=="anikdot"){$title="Анекдоты";}
else if($type=="encicl"){$title="Энциклопедия";}
else if($type=="istoria"){$title="История Гильдии Отваги";}
else if($type=="pred"){$title="Предсказания";}
else if($type=="vault"){$title="<a href='http://guildhonor.ru/vault.jpg' target=_blank>Карта подземелья";}
else if($type=="111"){$title="<a href='http://guildhonor.ru/contact.php' target=_blank>Контакты";}
else {die();}
?>
<h1><script language="JavaScript"><!--
// begin script
function display_title() {
var hours = date.getHours();
var message = '';
if (hours >= 6) { time_of_day = 'вы уже проснулись?'; message='Morning Message';}
if ((hours >= 12) && (hours < 17)) { time_of_day = 'Добрый день'; message='Afternoon Message'}
if (hours >= 17) { time_of_day = 'Добрый вечер'; message='Evening Message';}
if ((hours >= 0) && (hours < 6)){ time_of_day = 'Почему не спим?'; message='Night Message';}
document.write('<CENTER><H1>Здравствуйте, ' + time_of_day + '!</H1></CENTER><P>');
}
// document.write('<CENTER>' + message + '<CENTER>');
//end display title
function display_date() {
date = new Date();
var day_of_week_number = date.getDay();
var day_of_month = date.getDate();
var month_number = date.getMonth();
var year = date.getYear();
var day_of_week = '';
var month = ''
var date_to_show = day_of_week;
document.write('<CENTER><H4>' + date_to_show.fontcolor("#000000") + '</H4></CENTER>');
} //end display date
// --></script></h1>
<h1><font color="#FF0000"><script language="javascript"><!-- begin script
display_date();
display_title();
//--></script></font></h1>
</body>
</html>
<SCRIPT language=Javascript1.2>
<!--
var message='Нельзя:)';
function click(e)
{if (document.all) {if (event.button == 2) {alert(message);return false;}}
if (document.layers) {if (e.which == 3) {alert(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}
{if (document.all) {if (event.button == 2) {alert(message);return false;}}
if (document.layers) {if (e.which == 3) {alert(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
// -->
</SCRIPT>
<html>
<head>
<title>Guild of Honor - [<?=$title?>]</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="Keywords" content="Игра, играть, игрушки, онлайн, гильдия отваги, online, демон, эльф, гном, интернет, internet, RPG, fantasy, фэнтези, меч, топор, магия, атака, защита, бой, битва, отдых, развлечение, виртуальная реальность, рыцарь, маг, знакомства, чат, лучший, форум, стихия, разум, свет, тьма, games, клан, подземелье, лабиринт, головоломки, загадки, стратегия, тактика, локация, инквизиция, экспа, квест, наемник, боты, DEST">
<meta name="Description" content="Гильдия Отваги - Браузерная онлайн игра. Отличная RPG онлайн игра посвященная боям и магии. Тысячи жизней, миллионы смертей... выбери свой путь между Светом и Тьмой.">
<link type="text/css" rel="StyleSheet" href="../img/gamedw/index/glav_str.css" />
</head>
<body style="background:#362D29 url('../img/gamedw/index/fon.jpg'); margin:0px; padding-left:5%; padding-right:5%; padding-top:0; padding-bottom:0">
<link rel=stylesheet type='text/css' href='../img/gamedw/css/mainsity.css'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr height='22'>
<td width='20' align='right' valign='bottom'><img src='../img/gamedw/main/tbl-shp_sml-corner-top-left.gif' width='20' height='22' /></td>
<td class='tbl-shp_sml-top' valign='top' align='center'>
<table border='0' cellspacing='0' cellpadding='0' >
<tr height='22'>
<td width='27'><img src='../img/gamedw/main/tbl-usi_label-left.gif' width='27' height='22'/></td>
<td align='center' class='tbl-usi_label-center'>Guild of Honor - Гильдия Отваги</td>
<td width='27'><img src='../img/gamedw/main/tbl-usi_label-right.gif' width='27' height='22'/></td>
</tr>
</table>
</td>
<td width='20' align='left' valign='bottom'><img src='../img/gamedw/main/tbl-shp_sml-corner-top-right.gif' width='20' height='22'/></td>
</tr>
<tr>
<td class='tbl-usi_left'> </td>
<td class='bgg2' valign='top' align='center' style='padding: 6 4 6 4'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign=top align=center colspan=3 width=95%>
<center><img src='../img/gamedw/index/logo.gif' border='0' width='98%'></center>
<tr><td style="background:url('../img/gamedw/index/9.gif');"></td><td style="background:url('../img/gamedw/index/10.jpg') #E9D8AD;padding:10px;">
<!-- Header -->
<table border="0" cellpadding="0" cellspacing="0" height="32" width="100%" style="background:url('../img/gamedw/index/11.jpg') 996633;">
<tr><td width="53"><img src="../img/gamedw/index/12.jpg" border="0"></td>
<td class="topLink" style="color:#6B8E23;">Для коректного режима Игры, пользуйтесь браузером <b>Internet Explorer 6.0+</b><br>
<script language="JavaScript">
if (!window.ActiveXObject)
{
document.write("<font color='#FFEE6C'><b>Ваш браузер не подходит для игры!</b></font><br>");
document.getElementById('sbtEnter').disabled=true;
}
</script>
</td>
<td align="right" class="topLink" style="color:#FFFFFF;"> </td>
<td width="53"><img src="../img/gamedw/index/13.jpg" border="0"></td></tr>
</table><div style="height:10px;"></div>
<!-- /Header -->
<!-- begin of Top100 code -->
<script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?1777354"></script><noscript><img src="http://counter.rambler.ru/top100.cnt?1777354" alt="" width="1" height="1" border="0"></noscript>
<!-- end of Top100 code -->
<!-- Body -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" style="width:178px;">
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #A62A2A;color:#A52A2A;padding-right:10px;"><b>Меню сайта</b></td></tr>
<tr><td style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<ul class="uz">
<li class="m"><a class="m" href="index.php?type=news">Главная страница</a></li>
<li class="m"><a class="m" href="index.php?type=about">Об Игре</a></li>
<li class="m"><a class="m" href="index.php?type=law">Законы</a></li>
<li class="m"><a class="m" href="http://guildhonor.ru" target=_blank>Форум</a></li>
<li class="m"><a class="m" href="index.php?type=reminder">Забыли пароль?</a></li>
<li class="m"><a class="m" href="index.php?type=istoria">История Гильдии Отваги</a></li>
<li class="m"><a class="m" href="index.php?type=constitution">Конституция</a></li>
<li class="m"><a class="m" href="index.php?type=pred">Предсказания</a></li>
<li class="m"><a class="m" href="index.php?type=anikdot">Анегдоты</a></td></tr></a></li>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #A52A2A;color:#A52A2A;padding-right:10px;"><b>Помощь</b></td></tr>
<tr><td style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<ul class="uz">
<li class="m"><a class="m" href="index.php?type=faq">FAQ</a></li>
<li class="m"><a class="m" href="index.php?type=termin">Термины</a></li>
<li class="m"><a class="m" href="index.php?type=encicl">Энциклопедия</a></li>
<li class="m"><a class="m" href="index.php?type=lawmoney">Закон о Товарно-Денежных Отношениях</a><b></li>
<li class="m"><a class="m" href="index.php?type=lawbyk">Закон о Букмекерских конторах</a></li>
<li class="m"><a class="m" href="index.php?type=lawchat">Законы поведения в чате</a></li>
<li class="m"><a class="m" href="index.php?type=exp">Таблица Опыта</a></li>
<li class="m"><a class="m" href="index.php?type=vip">Платные Услуги</a></li>
<li class="m"><a class="m" href="index.php?type=vault"><a href='http://guildhonor.ru/vault.jpg' target=_blank>Карта подземелья</a></li>
<li class="m"><a class="m" href="index.php?type=encicl"><a href='http://guildhonor.ru/encicl.php' target=_blank>Энциклопедия</a></li>
<li class="m"><a class="m" href="index.php?type=111"><a href='http://guildhonor.ru/contact.php' target=_blank>Контакты</a></li>
</ul></td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #A52A2A;color:#A52A2A;padding-right:10px;"><b>Статистика</b></td></tr>
<tr><td align="center" style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<?
include "config/site/statist.php";
?>
</td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #B8860B;color:#B8860B;padding-right:10px;"><b>SMS Чат</b></td></tr>
<tr><td align="center" style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<?
include "config/site/sms.php";
?>
</td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #B8860B;color:#B8860B;padding-right:10px;"><b>Клан Сайт</b></td></tr>
<tr><td align="center" style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<a href="http://fod-gh.clan.su/" target=_blank><img src="../img/gamedw/index/inetmap.gif" border=0 alt="FriendsOfDarkness"></a></center></td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
</td>
<td valign="top" style="padding:0px 10px 0px 10px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td width="15" height="15"><img src="../img/gamedw/index/17.gif" border="0"></td><td style="background:url('../img/gamedw/index/18.gif');"></td><td width="10" height="10"><img src="../img/gamedw/index/19.gif" border="0"></td></tr>
<tr><td style="background:url('../img/gamedw/index/20.gif');"></td><td style="background:../img/gamedw/main/bgg2.gif;padding:10px;">
<?
include "config/site/$type.php";
?>
</td><td style="background:url('../img/gamedw/index/21.gif');"></td></tr>
<tr><td width="15" height="15"><img src="../img/gamedw/index/22.gif" border="0"></td><td style="background:url('../img/gamedw/index/23.gif');"></td><td width="10" height="10"><img src="../img/gamedw/index/24.gif" border="0"></td></tr>
</table>
</td>
<td valign="top" style="width:178px;">
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #DC143C;color:#DC143C;padding-right:10px;"><b>Авторизация</b></td></tr>
<tr><td style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<FORM action="enter.php" method="POST">
<table><tr><td><b style='COLOR: darkred'>Имя:</b></td><td><INPUT type=text name=user onBlur="if (value == '') {value='Логин'}" onFocus="if (value == 'Логин') {value =''}" value="Логин" class="commFl1" size="15"></td></tr>
<tr><td><b style='COLOR: darkred'>Пароль:</b></td><td><INPUT type=password name=pass onBlur="if (value == '') {value='Пароль'}" onFocus="if (value == 'Пароль') {value =''}" value="Пароль" class="commFl1" size="15"></td></tr>
<tr><td colspan="2" align="center">
<input type="submit" class="commFl" id="addcBut" name="submit" value="Вход"><br>
<input type="button" class="commFl" id="addcBut" onclick='window.location.href="index.php?type=reg"' value="Регистрация">
</td></tr>
</table></FORM></td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #A52A2A;color:#A52A2A;padding-right:10px;"><b>Рейтинги</b></td></tr>
<tr><td align="left" style="background:#F3D895 url('../img/gamedw/index/15.jpg');padding-left:7px; padding-right:7px; padding-top:5px; padding-bottom:5px">
<ul class="uz">
<li class="m"><a class="m" href="index.php?type=top_krut">Игроков</a></li>
<li class="m"><a class="m" href="index.php?type=top_user">Крутизны</a></li>
<li class="m"><a class="m" href="index.php?type=top_klans">Кланов</a></li>
<li class="m"><a class="m" href="index.php?type=top_ref">Реф. ссылок</a></li>
</ul></td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #DC143C;color:#DC143C;padding-right:10px;"><b>Подсказки</b></td></tr>
<tr><td style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<?
$r = "1";
include("config/site/vivod/random.php");
?>
</td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
<!-- -->
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr><td height="33" align="right" style="background:url('../img/gamedw/index/14.jpg') #B8860B;color:#B8860B;padding-right:10px;"><b>Счётчики</b></td></tr>
<tr><td align="center" style="background:url('../img/gamedw/index/15.jpg') #F3D895;padding:5px 7px 5px 7px;">
<table>
<td>
<!--Rating@Mail.ru counter-->
<script language="javascript" type="text/javascript"><!--
d=document;var a='';a+=';r='+escape(top.document.referrer);js=10;//--></script>
<script language="javascript1.1" type="text/javascript"><!--
a+=';j='+navigator.javaEnabled();js=11;//--></script>
<script language="javascript1.2" type="text/javascript"><!--
s=screen;a+=';s='+s.width+'*'+s.height;
a+='='+(s.colorDepth?s.colorDepth:s.pixelDepth);js=12;//--></script>
<script language="javascript1.3" type="text/javascript"><!--
js=13;//--></script><script language="javascript" type="text/javascript"><!--
d.write('<img src="http://df.c2.b9.a1.top.mail.ru/counter'+'?id=1650530;js='+js+
a+';rand='+Math.random()+'" height="1" width="1" alt="top.mail.ru" border="0">');
if(11<js)d.write('<'+'!-- ')//--></script>
<noscript><img src="http://df.c2.b9.a1.top.mail.ru/counter?js=na;id=1650530"
height="1" width="1" alt="top.mail.ru" border="0"></noscript>
<script language="javascript" type="text/javascript"><!--
if(11<js)d.write('--'+'>');//--></script>
<!--// Rating@Mail.ru counter-->
<!--Rating@Mail.ru logo-->
<a target="_top" href="http://top.mail.ru/jump?from=1650530">
<img src="http://df.c2.b9.a1.top.mail.ru/counter?id=1650530;t=230;l=1"
border="0" height="31" width="88" alt="Рейтинг@Mail.ru"></a>
<!--// Rating@Mail.ru logo-->
</td>
</table>
<table>
<td>
<!-- /Header -->
<!-- begin of Top100 code -->
<script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?1777354"></script><noscript><img src="http://counter.rambler.ru/top100.cnt?1777354" alt="" width="1" height="1" border="0"></noscript>
<!-- end of Top100 code -->
<!-- begin of Top100 logo -->
<a href="http://top100.rambler.ru/home?id=1777354" target="_blank"><img src="http://top100-images.rambler.ru/top100/banner-88x31-rambler-black2.gif" alt="Rambler's Top100" width="88" height="31" border="0" /></a>
<!-- end of Top100 logo -->
</td>
</table>
</td></tr>
<tr><td><img src="../img/gamedw/index/16.jpg" border="0"></td></tr>
</table><br />
<!--/-->
</td>
</tr>
</table>
<!-- /Body -->
<!-- Footer -->
<br />
<table border="0" cellpadding="4" cellspacing="0" width="100%">
<tr><td align="center"><img src="../img/gamedw/index/mir.gif" width="120" height="50" alt="Игровой Мир"></td></tr>
<tr><td align="center">«Гильдия Отваги» © 2009</td></tr>
<tr><td align="center">Хостинг предоставлен компанией <a href='http://guildhonor.ru/' target=_blank>«Гильдии Отваги»</a></td></tr>
<tr><td align="center">
<font style="font-size:9pt" color='#db5100'><b>Игра работает только в браузере Microsoft Internet Explorer 6.0+ при включенных<br>
</b></font>
</table>
<!-- /Footer -->
</td>
</tr>
</table>
</td><td class='tbl-usi_right'> </td>
</tr>
<tr height='18'>
<td width='20' align='right' valign='top'><img src='../img/gamedw/main/tbl-shp_sml-corner-bottom-left.gif' width='20' height='18' /></td>
<td class='tbl-shp_sml-bottom' valign='top' align='center'> </td>
<td width='20' align='left' valign='top'><img src='../img/gamedw/main/tbl-shp_sml-corner-bottom-right.gif' width='20' height='18'/></td>
</tr>
</table>
</body>
</html>