avatar_Everybody

Баннер голосования с кнопкой Х, вверху страницы полоска для голосования.

Автор Everybody, 2008 Май 27, 10:32

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Ключевые слова [SEO] веб сайтыбаннерголосование

Everybody

Привет, сейчас будем делать баннер голосовния для своего сервера ии сайта.
Вообщем это не совсем баннер а верхняя лента в которой расположен всем заметный слоган
"Голосуй за нас каждые 12 часов и сделай сервер ещё лучше!"
Установка менее 2 минут, знания HTML, PHP необезательны =)

Расскажу как вам поставить такой же на ваш мувебсайт.
1. Открываем файл index.php через Notepad, ищем тег <html> и перед ним вставим это (в самом начале кода) :
<style type="text/css">#votemu {z-index:10;position:absolute;top:0;left:0;padding:1px 2px 2px 0px;}
.votex-mu-position {position:absolute;top:0px;left:0px;width:100%} div > div.votex-mu-position {position:fixed;}
#textx-mu {z-index:9;position:absolute;top:0;left:0;width:100%;line-height:22px;height:22px;background:#CAE1FF;border-bottom: 1px outset;text-align:center;}
#textx-mu a:hover {z-index:9;position:absolute;top:0;left:0;width:100%;line-height:21px;height:22px;background:#E0FFFF;border-bottom: 1px outset;text-align:center;}
#textx-mu a {font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:15px; color:#014E82;font-weight:normal;}
#golos-x-mu {position:absolute;top:0;right:0;z-index:10;background:#CAE1FF;line-height:22px;padding:3px 4px 3px 4px;border-bottom: 1px outset;}</style><!--[if gte IE 5.5]><![if lt IE 8]><style type="text/css">div#aBarVazJoPz {width:expression(((ignoreMe=(document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth))<200?200:ignoreMe)+'px');position:absolute;top:expression((ignoreMe2=document.documentElement.scrol
lTop?document.documentElement.scrollTop:document.body.scrollTop)+'px');left:expression((ignoreMe=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)+'px');}</style><![endif]><![endif]--><div id="adBarazJoPz"><div class="votex-mu-position" id="aBarVazJoPz"><div id="textx-mu">

<a href="https://adres-vote-bannera" target="_blank">Голосуй за нас каждые 12 часов и сделай сервер ещё лучше!</a>

</div>
<div id="golos-x-mu"><a href="java script://" onmouseover="document.getElementById('clobutazJoPz').src='https://s56.radikal.ru/i153/0812/d1/d0f50ec19250.gif'" onmouseout="document.getElementById('clobutazJoPz').src='https://s56.radikal.ru/i153/0812/d1/d0f50ec19250.gif'" onclick="document.getElementById('adBarazJoPz').style.display='none';return false;"><img id="clobutazJoPz" title="Закрыть" align="absmiddle" border="0" src="https://s56.radikal.ru/i153/0812/d1/d0f50ec19250.gif" width="16" height="16"></a></div></div></div>
А теперь смените адрес _https://adres-vote-bannera на вш адрес баннера!

Вот и все, за 2минуты вы смогли зделать ккуратное голосование для вашего сервера!
Подсказка: используйте _mu.mmotop.ru это самый популярный ТОП среди всех русских рейтинговых сйтов

bono85

mozet bit znae6 kak zdelat takovo ze tipa benera, katorij kakbe plavaet s onovo strona v druguju...

nadejus poneli menja  

Sexy

Цитата: Everybody от 2008 Нояб. 15, 03:30  Привет, ну вот на одном русском му сервере _rmos.ru увидел фишку такую.
Вверху страницы есть полоска на которой надпись типо "Голосуйте за нас, каждые 12 часов"
Расскажу как вам поставить такой же на ваш мувебсайт.
1. Открываем файл index.php через Notepad, ищем тег </head> и перед ним вставим это:
Код
<style type="text/css">
#votecool {
background-color: #ffe0e0;
color: #000000;
border-color: #000000;
border-style: none;
border-width: 1px;
border-bottom-color: #ff0000;
border-bottom-style: solid;
border-bottom-width: 1px;
text-align: center;
overflow: hidden;
font-size: 14px;
font-weight: bold;
}

#votecool .links {
padding: 3px;
}

.label { float:left; width:120px; }
.clear { clear:both; }

.false { margin: 10px; padding: 5px; background-color: #FF9999; font-family: Verdana, sans-serif; font-size: 14px; color: #663333; }
.true { margin: 10px; padding: 5px; background-color: #99FF99; font-family: Verdana, sans-serif; font-size: 14px; color: #336600; }</style>



2. ищем тег <body> и сразу после него вставим это:
Код
<div id="votecool">
<table  width="100%">
<tr>
<td class="links" align="center" width="80%"><a href="https://zdes_adres_na_topsayt" target="_blank">Голосуй за нас каждые 12 часов и сделай сервер ещё лучше!</a></td>
<td class="links" align="right" width="10%"><a href="java script:void(0);" onClick="document.getElementById('reminder').style.display='none';" class="close"><img src="no.gif" alt="X" title="Скрыть" border="0" /></a></td>
</tr>
</table>
</div>


Квадратную картинку с крестиком, положите в корень сайта тоесть в папку www и назовите еёт no.gif


Everybody а  можно скринчик? :wub:

Everybody

Да уже сменили они баннер, представь линию вверху экрана примерно 2-3 сантиметра шириной в которой написано Голосуте и.т.д. прикольно зато видно всем и не мешает. Типо как на указе сверху есть линия рекламная.

Sexy

Everybody спасибо за информацию надо будет поставить!!!! вот тебе спасибо!!! ^_^ но я боюсь чтото испортить у меня так всегда получалась! а на уucoze такие прекрасние работы делаю что мне уже надоело! надо переходить на php :wub:

и учить php и делать свои прикольные штучки! :rolleyes: :wub:

Давай я тебе пришлю файл и ты поставишь мне!!!! :wub: plzzzzz

<?PHP
session_start();
ob_start("ob_gzhandler");
header("Cache-control: private");
$pg=$_GET['pg'];
if ( !isset($pg) ) { $pg = 'news'; }
include"config.php";
include"inc/sql.inc";
include"inc/login_check.inc";
include "inc/darkstyle.inc";

print "<!--
Powered by DarkStyle Web 4.0
Coded by SkyLinE27
Contact: [email protected]
Build Date: 02.06.2008
-->
";

include"inc/lang-change.inc";

if ((isset($_GET['do'])) AND ($_GET['do'] == 'logout')){
setcookie("DS_UserName", NULL);
setcookie("DS_PassWord", NULL);
setcookie("DS_CharNumber", NULL);
$_COOKIE['DS_UserName']=NULL;
$_COOKIE['DS_PassWord']=NULL;
$_COOKIE['DS_CharNumber']=NULL;
}


if (isset($_POST['login_start'])){


$username = stripslashes($_POST['acc']);
$password = stripslashes($_POST['pass']);

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$password' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);
$sql_online_check = mssql_query("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id='$username'");
$online_check = mssql_fetch_row($sql_online_check);
$sql_block_check = mssql_query("SELECT bloc_code FROM MEMB_INFO WHERE memb___id='$username'");
$block_check = mssql_fetch_row($sql_block_check);

$gameidget = "select GameID1,GameIDC from AccountCharacter WHERE ID='$username'";
$gameidget = mssql_query( $gameidget );
$gameidget = mssql_fetch_row($gameidget);

$char_number=0;

$char_name_main=$gameidget[0];
$char_name_2=$gameidget[1];
$char_name_3=$gameidget[2];
$char_name_4=$gameidget[3];
$char_name_5=$gameidget[4];
$char_name_last=$gameidget[1];

if(empty($char_name_main)){
if(empty($char_name_last)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';
}
else{
$char_name_main=$char_name_last;
}
}

if (empty($username) || empty($password) || ($username_check <= 0) || ($pass_check <= 0))
{
if (empty($username) || empty($password)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
}
elseif (($username_check <= 0) || ($pass_check <= 0)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
} }
elseif($online_check[0]=='1'){$logerror= '<div class="msg-error"><ul><li>Сначало выйдите из игры!</li></ul></div>';
}

elseif(empty($char_name_main)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';

}


elseif($block_check[0]=='1'){
setcookie("DS_bUserName", $username);
echo "Loading...Please Wait...";
echo '<meta http-equiv="refresh" content="0; URL=../?pg=unban">';exit;
}

else
{
$password=md5($password);
setcookie("DS_UserName", $username);
setcookie("DS_PassWord", $password);
setcookie("DS_CharNumber", $char_number);
setcookie("WebShopUsername", $username);
setcookie("WebShopPassword", $password);
$_COOKIE['DS_UserName']=$username;
$_COOKIE['DS_PassWord']=$password;
$_COOKIE['DS_CharNumber']=$char_number;

}

}

//Admin Check
if (!in_array($_COOKIE['DS_UserName'], explode(',', $Admin['account_list'])))
$IsAdmin='false';
else
$IsAdmin='true';

//End Admin Check


if (isset($_POST['char_select'])){

$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];

$char_s_number = stripslashes($_POST['char_select']);

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_s_name=$char_names[$char_s_number];

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$pw' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);

$sql_acc_char_check = mssql_query("SELECT AccountID FROM Character WHERE Name='$char_s_name' and AccountID= '$username'");
$acc_char_check = mssql_num_rows($sql_acc_char_check);

$select_gameid = "select GameID1 from AccountCharacter WHERE ID='$username'";
$select_gameid = mssql_query( $select_gameid );
$select_gameid = mssql_fetch_row($select_gameid);

$char_s_name_main=$select_gameid[0];

if($acc_char_check <= 0 AND $char_s_name != $char_s_name_main)
{
die("Error #3 $char_s_name");
$char_s_name=$_COOKIE['DS_CharNumber'];
}

else{
setcookie("DS_CharNumber", $char_s_number);
$_COOKIE['DS_CharNumber']=$char_s_number;
}

}

$date=date("M d, Y H:i:s");

if(!isset($_COOKIE['DS_UserName'])){

}
else
{
$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];
$char_number=$_COOKIE['DS_CharNumber'];


$nick_name = "select memb_name from MEMB_INFO WHERE memb___id='$username'";
$nick_name = mssql_query( $nick_name );
$nick_name= mssql_fetch_row($nick_name);

$nick_name=$nick_name[0];

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_name=$char_names[$char_number];

$char_name1=$char_names[0];
$char_name2=$char_names[1];
$char_name3=$char_names[2];
$char_name4=$char_names[3];
$char_name5=$char_names[4];

$credits = "select credits from MEMB_CREDITS WHERE memb___id='$username'";
$credits = mssql_query($credits);
$credits = mssql_fetch_row($credits);
if($credits[0] == ''){
$insert_credits = mssql_query("
Exec XCredits '$username',0;");
}
// Purse Count

$purse = "select purse from MEMB_INFO WHERE memb___id='$username'";
$purse = mssql_query($purse);
$purse = mssql_fetch_row($purse);

$kkk_p='kkk';

$purse_kkk=$purse[0];

$purse_kkk_number=number_format($purse_kkk);

$purse_kkk=$purse_kkk / 1000000 / 1000;

$purse_kkk=number_format($purse_kkk);

if($purse[0] < 1000000000){
$kkk_p='kk';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000 / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000000){
$kkk_p='k';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000){
$kkk_p='';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk;

$purse_kkk=number_format($purse_kkk);
}

//End Purse Count

}

//status

$result = mssql_query("SELECT count(*) from MEMB_INFO");
$row = mssql_fetch_row($result);
$accs = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Character");
$row = mssql_fetch_row($result);
$chars = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Guild");
$row = mssql_fetch_row($result);
$guilds = number_format($row[0]);



$current_time=time();
$day_ago = 1200 * 24;
$time_24_hours_ago=time() - $day_ago;
$sql = mssql_query("SELECT count(*) FROM [ds_market] where end_date > '$current_time'");
$Market['active_items']=mssql_result($sql, 0, 0);

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [start_date] > '$time_24_hours_ago'");
$sql_ = mssql_fetch_row($sql);
$Market['sell_last_24_hours'] = $sql_[0];

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND [sold_date] != '-'");
$sql_ = mssql_fetch_row($sql);
$Market['bought_last_24_hours'] = $sql_[0];


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'zen'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= 'k';
}
$Market['amount_last_24_hours'] .= " ".$replace;


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'kred'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_kred_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= '';
}
$Market['amount_kred_last_24_hours'] .= " ".$replace;







if ($fp=@fsockopen($ServerHost['connect'],$ServerPort['connect'],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$serv_status ="<font color="green"><b>ONLINE</b></font>";
}
else
{
$serv_status ="<font color="red"><b>OFFLINE</b></font>";
}
$s_online='';
for($iii=1;$iii <= $ServersCount;++$iii)
{
if (!empty($ServerHost[$iii]) AND !empty($ServerPort[$iii])){
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1' and ServerName= '".$ServerName[$iii]."'");
$server[$iii]['online']=mssql_result($sql, 0, 0);

if ($fp=@fsockopen($ServerHost[$iii],$ServerPort[$iii],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$s_online= "$s_online<a href="?pg=online&s=$iii">
Serv #$iii Players Online: ".$server[$iii]['online']."/".$ServerMaxPlayers[$iii]."</a><br>";
}
else
{
echo "";
}

}
}
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1'");
$total['online']=mssql_result($sql, 0, 0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Hazzard MuOnline</title>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="mu, muonline, dark, game, mmorpg, rpg, online, best, server, ">
<!-- base href="" -->
<link href="template/dark/css2.css" rel="StyleSheet">
<script type="text/javascript" src="template/dark/main.js"></script>
<script type="text/javascript" src="template/dark/overlib.js"></script>
<script type="text/javascript" src="template/dark/flash_content.js"></script><script charset="utf-8" id="<?php print $template_dir;?>injection_graph_func" src="template/dark/injection_graph_func.js"></script>
<script type="text/javascript" src="template/dark/js/jquery-1.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_002.js"></script>
<script type="text/javascript" src="template/dark/js/jquery.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_003.js"></script>
<script type="text/javascript" src="template/dark/js/m.js"></script></head>
<script type="text/javascript">
$(function() { $("*[title]").Tooltip({ track:true, delay:0, showURL:false }); });

/* Lang vars */
var lang_btclose = '<?php print phrase_lang_btclose;?>';
var lang_btoriginal = '<?php print phrase_lang_btoriginal;?>';
var lang_btresort = '<?php print phrase_lang_btresort;?>';
var lang_btclear = '<?php print phrase_lang_btclear;?>';
</script>
<table  align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>

<!-- /##########/ Logo /###########/ -->

<table align="center" border="0" cellpadding="0" cellspacing="0" height="210" width="930">
<tbody><tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="930" height="210">
<tr>
<td background="template/dark/img/main_logo.jpg" valign="top">
</td>
</tr>
</table>
</td>
</tr>
</tbody></table>

<!-- /##########/ Main /###########/ -->

<table class="main-table" align="center" border="0" cellpadding="0" cellspacing="0" width="930">
<tbody><tr>
<td style="background-image: "template/dark/img/bg1.gif" bgcolor="#ffffff" valign="top" width="180">
<div id="menu_box">
<div id="menu_links">
<img src=template/dark/img/menu/1.jpg>
<font class="boxt"><?php print phrase_menu_navigation;?></font>
<a href="./?pg=news"><?php print phrase_menu_news;?></a>
<a href="./?pg=rules"><?php print phrase_menu_rules;?></a>
<a href="./?pg=files"><?php print phrase_menu_files;?></a>
<a href="./?pg=u-signup"><?php print phrase_menu_reg;?></a>
<a href="./?pg=u-signup">Возврат пароля</a>
<a target=_blank href="./?pg=forum">Форум<img src="template/dark/new.gif"></a>
<img src=template/dark/img/menu/6.jpg>
<font class="boxt"><?php print phrase_menu_faq;?></font>
<a href="./?pg=serv-info"><?php print phrase_menu_info_about_s;?></a>
<a href="./?pg=serv-stats"><?php print phrase_menu_serv_stats;?></a>
<a href="./?pg=history">Легенда MuOnline</a>
<img src=template/dark/img/menu/2.jpg>
<font class="boxt"><?php print phrase_menu_ranking;?></font>
<a href="./?pg=tc"><?php print phrase_menu_tc;?></a>
<a href="./?pg=tg"><?php print phrase_menu_tg;?></a>
<a href="./?pg=tm">Топ 100 богатых</a>
<a href="./?pg=to">Топ 10 Онлайн</a>
<a href="./?pg=tkill">Топ 10 Маньяков</a>
<a href="./?pg=tb">Доска Позора</a>
<a href="./?pg=search"><?php print phrase_menu_search;?></a>
<a href="./?pg=tr">Топ Рефералов<img src="template/dark/new.gif"></a>
<?php if(!isset($_COOKIE['DS_UserName'])){
print
"
"
;
}
else{
?>

<img src=template/dark/img/menu/3.jpg>
<font class="boxt"><?php print phrase_menu_game_opt;?></font>
<a href="./?pg=s-reset"><?php print phrase_menu_reset;?></a>
<a href="./?pg=s-pkclear"><?php print phrase_menu_pkclear;?></a>
<a href="./?pg=s-stats"><?php print phrase_menu_stats;?></a>
<a href="./?pg=s-rescue"><?php print phrase_menu_rescue;?></a>
<a href="./?pg=ref">Реферальная Сылка</a>
<img src=template/dark/img/menu/5.jpg>
<font class="boxt"><?php print phrase_menu_market;?></font>
<a href="./?pg=m-list">
<?php print phrase_menu_m_list;?></a>
<a href="./?pg=m-history"><?php print phrase_menu_m_history;?></a>
<img src=template/dark/img/menu/4.jpg>
<font class="boxt"><?php print phrase_menu_options;?></font>
<a href="./?pg=warehouse"><?php print phrase_menu_game_bank;?></a>
<a href="./?pg=s-zenbuy"><?php print phrase_menu_buy_zen;?></a>
<a href="./?pg=s-zenkred"><?php print phrase_menu_move_zen_kred;?></a>
<a href="./?pg=s-profile"><?php print phrase_menu_profile;?></a>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">Купить Кредиты</a>
<a target=_blank href="/shop/login.php">Кузница</a>
<?php if ($IsAdmin == 'true'){echo "


<font class=boxt><img src=template/dark/img/menu/6.jpg>  Панель Gamemastera</font>
<br>
<a href=./?pg=ban>Забанить игрока</a>



"
;} ?>





<?php
}
?>

</div>
</div></td>
<td background="template/dark/img/dotline.gif" width="1"></td>
<td bgcolor="#ffffff" valign="top">
<table class="main_table" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td style="padding: 8px;" valign="top"><?php print "$logerror"?>

<?php if (file_exists($pg.".php")) {
include(
$pg.".php");
}
else{echo
"<h1>File not found</h1>";

?>

<br></td>
<td style="padding: 4px;" valign="top" width="180"><table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody><tr>
<td align=center><img src=template/dark/img/serverinfo.jpg></img></td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="14">
Статус: <?php print $serv_status;?> </td>
</tr>
<tr>
<td height="14">
Версия: <b><?php print $Info['version'];?></b> </td>
</tr>
<tr>
<td height="14">
Exp &amp; Drop: <b><?php print $Info['exp_and_drop'];?></b> </td>
</tr>
<tr>
<td height="14">
Bless Bug: <b><?php print $Info['bless_bug'];?></b> </td>
</tr>
<tr>
<td height="14">
Всего аккаунтов: <b><?php echo "$accs"?></b> </td>
</tr>
<tr>
<td height="14">
Всего игроков: <b><?php echo "$chars"?></b> </td>
</tr>
<tr>
<td height="14">
Всего кланов: <b><?php echo "$guilds"?></b> </td>
</tr>

<?php
if($s_online)
print 
"<tr>
<td height="
14">$s_online</td>
</tr>"
;
?>

<tr>
<td height="14">
<a href="?pg=online&s=t"><?php print phrase_total_online;?>:
<font color="green"><?php print $total['online'];?></font></a> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_online_record;?>: <?php print online_record($total['online']);?> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_on_web;?>: <?php include"count_online.php"?> </td>
</tr>
<tr>
<td>
<hr color="#000000" size="1" width="100%">

<?php include"events_time.php";?> </td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/userarea.jpg></img></td>
</tr>
<tr>
<td valign="top"><?php if(!isset($_COOKIE['DS_UserName'])){
?>

<form method="post" name="loginform" action="">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="23" width="67">
Аккаунт: </td>
<td height="23">
<INPUT class=txt-simple maxLength=10 size=15 name=acc> </td>
</tr>
<tr>
<td height="23" width="67">
Пароль: </td>
<td height="23">
<INPUT class=txt-simple type=password maxLength=10 size=15 name=pass> </td>
</tr>
<tr>
<td colspan="2" align="center" height="25">
<input value="Авторизация" class="bt1" type="submit" name=login_start> </td>
</tr>
<tr></tr>
</tbody></table>
</form>
<?php
}
else
{
?>


<?php

$curr_char_info 
"select * from Character WHERE Name='$char_name'";
$curr_char_info mssql_query($curr_char_info);
$curr_char_info mssql_fetch_array($curr_char_info);



if(
$curr_char_info['Class'] == 0){ $curr_char_info['Class'] ='Dark Wizard';
}
if(
$curr_char_info['Class'] == 1){ $curr_char_info['Class'] ='Soul Master';
}
if(
$curr_char_info['Class'] == 2){ $curr_char_info['Class'] ='Grand Master';
}
if(
$curr_char_info['Class'] == 16){ $curr_char_info['Class'] ='Dark Knight';
}
if(
$curr_char_info['Class'] == 17){ $curr_char_info['Class'] ='Blade Knight';
}
if(
$curr_char_info['Class'] == 18){ $curr_char_info['Class'] ='Blade Master';
}
if(
$curr_char_info['Class'] == 32){ $curr_char_info['Class'] ='Elf';
}
if(
$curr_char_info['Class'] == 33){ $curr_char_info['Class'] ='Muse Elf';
}
if(
$curr_char_info['Class'] == 34){ $curr_char_info['Class'] ='High Elf';
}
if(
$curr_char_info['Class'] == 48){ $curr_char_info['Class'] ='Magic Gladiator';
}
if(
$curr_char_info['Class'] == 49 OR $curr_char_info['Class'] == 50){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 64){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 65 OR $curr_char_info['Class'] == 66){ $curr_char_info['Class'] ='Lord Emperor';
}
if(
$curr_char_info['Class'] == 80){ $curr_char_info['Class'] ='Summoner';
}
if(
$curr_char_info['Class'] == 81){ $curr_char_info['Class'] ='Bloody Summoner';
}
if(
$curr_char_info['Class'] == 82){ $curr_char_info['Class'] ='Dim. Master';
}


if (
$curr_char_info['PkLevel'] == '4') {
$curr_char_info['PkCount'] = 'Murder';}
if (
$curr_char_info['PkLevel'] == '5') {
$curr_char_info['PkLevel'] = 'Warned';}
if (
$curr_char_info['PkLevel'] == '6') {
$curr_char_info['PkLevel'] = 'Phonoman';}

if (
$curr_char_info['PkLevel'] == '3') {
$curr_char_info['PkLevel'] = 'Default';}
if (
$curr_char_info['PkLevel'] == '2') {
$curr_char_info['PkLevel'] = 'Commoner';}
if (
$curr_char_info['PkLevel'] == '1') {
$curr_char_info['PkLevel'] = 'Hero';}

?>




<form name="schr" method="post" action="">
<TABLE cellPadding=0 width="95%" cellspacing="3" border=0 align="center">
<TBODY>
<TR class=colhead>
<TD colSpan=2 height="33">
<p align="center"><b>Приветствую <?php print $username?></b></TD></TR>
<TR class=colhead>
<TD colSpan=2>
<img src=template/dark/img/purse.gif width=15 height=13> <b>Кредиты:</b> <b><?php print $credits[0];?></b><br>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">(пополнить кредиты)</a> </TD></TR>
<TR class=colhead>
<TD colSpan=2 valign="top"> </TD></TR>
<TR class=colhead>
<TD colSpan=2 height="33" valign="top">
<img src=template/dark/img/zen.gif width=15 height=12> <b>Кошелек:</b> <a href="java script:;" title='<?php print $purse_kkk_number." ZEN";?>'><?php print"$purse_kkk $kkk_p"?></a>
<br /></TD></TR>
<TR>
<TD width="35%">Имя</TD>
<TD width="63%"><script language="javascript" style="border:1px solid #334247; height: 17px; background-color: #435255">
var sicharselect = new selectInput("sicharselect", "char_select", "<?php print $char_name?>", "0", "schr", "100");
<?php if($char_name1) print "sicharselect.add("$char_name1", "0");";?>
<?php if($char_name2) print "sicharselect.add("$char_name2", "1");";?>
<?php if($char_name3) print "sicharselect.add("$char_name3", "2");";?>
<?php if($char_name4) print "sicharselect.add("$char_name4", "3");";?>
<?php if($char_name5) print "sicharselect.add("$char_name5", "4");";?>
sicharselect.construct();
</script> </TD></TR>
<TR>
<TD width="35%">Расса</TD>
<TD width="63%"><b><?php print $curr_char_info['Class']; ?></b></TD></TR>
<TR>
<TD width="35%">Уровень</TD>
<TD width="63%"><b><?php print $curr_char_info['cLevel']; ?></b></TD></TR>
<TR>
<TD width="35%">Ресеты</TD>
<TD width="63%"><b><?php print $curr_char_info['Resets']."/".$curr_char_info['Reset_limit']; ?></b></TD></TR>
<TR>
<TD width="35%">PK Статус</TD>
<TD width="63%"><b><?php print $curr_char_info['PkLevel']; ?> (<?php print $curr_char_info['PkCount']; ?> Kills)</b></TD></TR>
<TR>
<TD width="35%">Денег</TD>
<TD width="63%"><b><?php print number_format($curr_char_info['Money']); ?></b></TD></TR>
</form>
<TR class=colhead>
<TD align="center" colSpan=2 height="39"><form name=form method=post action=?do=logout><input class=bt1 type=submit name=Submit value=Logout></TD></TR>
</TBODY></TABLE></form>

<?
}
?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/smsboom.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"sms_boom.php";?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/market.jpg></img></td>
</tr>
<tr>
<td valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
Активные предметы: <b><?php print $Market['active_items'];?></b> </td>
</tr>
<tr>
<td>
Выложено за сутки: <b><?php print $Market['sell_last_24_hours'];?></b> </td>
</tr>
<tr>
<td>
Куплено за сутки: <b><?php print $Market['bought_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="padding-bottom: 4px;">
Оборот за сутки: <b><?php print $Market['amount_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0);">
<b>Последние 5 предметов:</b> </td>
</tr>
<?php include "last_market_items.php";?>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0); padding-top: 4px; padding-bottom: 4px;" align="center">
<a href="?pg=m-list"><b>Полный каталог</b></a> </td>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/banners.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"banners.txt";?></td>
</tr>
</tbody></table>
</tbody></table>
</tbody></table>
<br>

<div align=center>
<font color=white>
This page is designed to be viewed best with <a target=_blank href=https://www.mozilla-europe.org/ru/firefox/><font color=white><b>FireFox</b></font></a><br>
All right reserved ©2008 <a href=mailto:[email protected]><font color=white><b>Hazzard.Lv Team<b></font></a>
</font>
</div>

<br>
</td>
<td style="background-image: template/dark/jpg width="7"></td>
</tr>
<tr>
</table>
</div>
</td>
</tr>
</tbody></table></body></table>

</html>

опа было написана DarkStyle-4.35 оказывается 4.0

Everybody

Разом исправил ошибки верстки хтмл код шаблона.
Принимай готовый код с баннером.

Найди строку https://zdes_adres_na_topsayt и замени на адрес голосования (тот что дают на топ сайтах при регистрации)

<?PHP
session_start();
ob_start("ob_gzhandler");
header("Cache-control: private");
$pg=$_GET['pg'];
if ( !isset($pg) ) { $pg = 'news'; }
include"config.php";
include"inc/sql.inc";
include"inc/login_check.inc";
include "inc/darkstyle.inc";

print "<!--
Powered by DarkStyle Web 4.0
Coded by SkyLinE27
Contact: [email protected]
Build Date: 02.06.2008
-->
";

include"inc/lang-change.inc";

if ((isset($_GET['do'])) AND ($_GET['do'] == 'logout')){
setcookie("DS_UserName", NULL);
setcookie("DS_PassWord", NULL);
setcookie("DS_CharNumber", NULL);
$_COOKIE['DS_UserName']=NULL;
$_COOKIE['DS_PassWord']=NULL;
$_COOKIE['DS_CharNumber']=NULL;
}


if (isset($_POST['login_start'])){


$username = stripslashes($_POST['acc']);
$password = stripslashes($_POST['pass']);

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$password' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);
$sql_online_check = mssql_query("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id='$username'");
$online_check = mssql_fetch_row($sql_online_check);
$sql_block_check = mssql_query("SELECT bloc_code FROM MEMB_INFO WHERE memb___id='$username'");
$block_check = mssql_fetch_row($sql_block_check);

$gameidget = "select GameID1,GameIDC from AccountCharacter WHERE ID='$username'";
$gameidget = mssql_query( $gameidget );
$gameidget = mssql_fetch_row($gameidget);

$char_number=0;

$char_name_main=$gameidget[0];
$char_name_2=$gameidget[1];
$char_name_3=$gameidget[2];
$char_name_4=$gameidget[3];
$char_name_5=$gameidget[4];
$char_name_last=$gameidget[1];

if(empty($char_name_main)){
if(empty($char_name_last)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';
}
else{
$char_name_main=$char_name_last;
}
}

if (empty($username) || empty($password) || ($username_check <= 0) || ($pass_check <= 0))
{
if (empty($username) || empty($password)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
}
elseif (($username_check <= 0) || ($pass_check <= 0)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
} }
elseif($online_check[0]=='1'){$logerror= '<div class="msg-error"><ul><li>Сначало выйдите из игры!</li></ul></div>';
}

elseif(empty($char_name_main)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';

}


elseif($block_check[0]=='1'){
setcookie("DS_bUserName", $username);
echo "Loading...Please Wait...";
echo '<meta http-equiv="refresh" content="0; URL=../?pg=unban">';exit;
}

else
{
$password=md5($password);
setcookie("DS_UserName", $username);
setcookie("DS_PassWord", $password);
setcookie("DS_CharNumber", $char_number);
setcookie("WebShopUsername", $username);
setcookie("WebShopPassword", $password);
$_COOKIE['DS_UserName']=$username;
$_COOKIE['DS_PassWord']=$password;
$_COOKIE['DS_CharNumber']=$char_number;

}

}

//Admin Check
if (!in_array($_COOKIE['DS_UserName'], explode(',', $Admin['account_list'])))
$IsAdmin='false';
else
$IsAdmin='true';

//End Admin Check


if (isset($_POST['char_select'])){

$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];

$char_s_number = stripslashes($_POST['char_select']);

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_s_name=$char_names[$char_s_number];

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$pw' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);

$sql_acc_char_check = mssql_query("SELECT AccountID FROM Character WHERE Name='$char_s_name' and AccountID= '$username'");
$acc_char_check = mssql_num_rows($sql_acc_char_check);

$select_gameid = "select GameID1 from AccountCharacter WHERE ID='$username'";
$select_gameid = mssql_query( $select_gameid );
$select_gameid = mssql_fetch_row($select_gameid);

$char_s_name_main=$select_gameid[0];

if($acc_char_check <= 0 AND $char_s_name != $char_s_name_main)
{
die("Error #3 $char_s_name");
$char_s_name=$_COOKIE['DS_CharNumber'];
}

else{
setcookie("DS_CharNumber", $char_s_number);
$_COOKIE['DS_CharNumber']=$char_s_number;
}

}

$date=date("M d, Y H:i:s");

if(!isset($_COOKIE['DS_UserName'])){

}
else
{
$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];
$char_number=$_COOKIE['DS_CharNumber'];


$nick_name = "select memb_name from MEMB_INFO WHERE memb___id='$username'";
$nick_name = mssql_query( $nick_name );
$nick_name= mssql_fetch_row($nick_name);

$nick_name=$nick_name[0];

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_name=$char_names[$char_number];

$char_name1=$char_names[0];
$char_name2=$char_names[1];
$char_name3=$char_names[2];
$char_name4=$char_names[3];
$char_name5=$char_names[4];

$credits = "select credits from MEMB_CREDITS WHERE memb___id='$username'";
$credits = mssql_query($credits);
$credits = mssql_fetch_row($credits);
if($credits[0] == ''){
$insert_credits = mssql_query("
Exec XCredits '$username',0;");
}
// Purse Count

$purse = "select purse from MEMB_INFO WHERE memb___id='$username'";
$purse = mssql_query($purse);
$purse = mssql_fetch_row($purse);

$kkk_p='kkk';

$purse_kkk=$purse[0];

$purse_kkk_number=number_format($purse_kkk);

$purse_kkk=$purse_kkk / 1000000 / 1000;

$purse_kkk=number_format($purse_kkk);

if($purse[0] < 1000000000){
$kkk_p='kk';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000 / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000000){
$kkk_p='k';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000){
$kkk_p='';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk;

$purse_kkk=number_format($purse_kkk);
}

//End Purse Count

}

//status

$result = mssql_query("SELECT count(*) from MEMB_INFO");
$row = mssql_fetch_row($result);
$accs = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Character");
$row = mssql_fetch_row($result);
$chars = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Guild");
$row = mssql_fetch_row($result);
$guilds = number_format($row[0]);



$current_time=time();
$day_ago = 1200 * 24;
$time_24_hours_ago=time() - $day_ago;
$sql = mssql_query("SELECT count(*) FROM [ds_market] where end_date > '$current_time'");
$Market['active_items']=mssql_result($sql, 0, 0);

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [start_date] > '$time_24_hours_ago'");
$sql_ = mssql_fetch_row($sql);
$Market['sell_last_24_hours'] = $sql_[0];

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND [sold_date] != '-'");
$sql_ = mssql_fetch_row($sql);
$Market['bought_last_24_hours'] = $sql_[0];


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'zen'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= 'k';
}
$Market['amount_last_24_hours'] .= " ".$replace;


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'kred'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_kred_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= '';
}
$Market['amount_kred_last_24_hours'] .= " ".$replace;







if ($fp=@fsockopen($ServerHost['connect'],$ServerPort['connect'],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$serv_status ="<font color="green"><b>ONLINE</b></font>";
}
else
{
$serv_status ="<font color="red"><b>OFFLINE</b></font>";
}
$s_online='';
for($iii=1;$iii <= $ServersCount;++$iii)
{
if (!empty($ServerHost[$iii]) AND !empty($ServerPort[$iii])){
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1' and ServerName= '".$ServerName[$iii]."'");
$server[$iii]['online']=mssql_result($sql, 0, 0);

if ($fp=@fsockopen($ServerHost[$iii],$ServerPort[$iii],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$s_online= "$s_online<a href="?pg=online&s=$iii">
Serv #$iii Players Online: ".$server[$iii]['online']."/".$ServerMaxPlayers[$iii]."</a><br>";
}
else
{
echo "";
}

}
}
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1'");
$total['online']=mssql_result($sql, 0, 0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Hazzard MuOnline</title>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="mu, muonline, dark, game, mmorpg, rpg, online, best, server, ">
<!-- base href="" -->
<link href="template/dark/css2.css" rel="StyleSheet">
<script type="text/javascript" src="template/dark/main.js"></script>
<script type="text/javascript" src="template/dark/overlib.js"></script>
<script type="text/javascript" src="template/dark/flash_content.js"></script><script charset="utf-8" id="<?php print $template_dir;?>injection_graph_func" src="template/dark/injection_graph_func.js"></script>
<script type="text/javascript" src="template/dark/js/jquery-1.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_002.js"></script>
<script type="text/javascript" src="template/dark/js/jquery.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_003.js"></script>
<script type="text/javascript" src="template/dark/js/m.js"></script></head>
<script type="text/javascript">
$(function() { $("*[title]").Tooltip({ track:true, delay:0, showURL:false }); });

/* Lang vars */
var lang_btclose = '<?php print phrase_lang_btclose;?>';
var lang_btoriginal = '<?php print phrase_lang_btoriginal;?>';
var lang_btresort = '<?php print phrase_lang_btresort;?>';
var lang_btclear = '<?php print phrase_lang_btclear;?>';
</script>
<style type="text/css">
#votecool {
background-color: #ffe0e0;
color: #000000;
border-color: #000000;
border-style: none;
border-width: 1px;
border-bottom-color: #ff0000;
border-bottom-style: solid;
border-bottom-width: 1px;
text-align: center;
overflow: hidden;
font-size: 14px;
font-weight: bold;
}

#votecool .links {
padding: 3px;
}

.label { float:left; width:120px; }
.clear { clear:both; }

.false { margin: 10px; padding: 5px; background-color: #FF9999; font-family: Verdana, sans-serif; font-size: 14px; color: #663333; }
.true { margin: 10px; padding: 5px; background-color: #99FF99; font-family: Verdana, sans-serif; font-size: 14px; color: #336600; }</style>

</head>
<body>

<div id="votecool">
<table  width="100%">
<tr>
<td class="links" align="center" width="80%"><a href="https://zdes_adres_na_topsayt" target="_blank">Голосуй за нас каждые 12 часов и сделай сервер ещё лучше!</a></td>
<td class="links" align="right" width="10%"><a href="java script:void(0);" onClick="document.getElementById('reminder').style.display='none';" class="close"><img src="no.gif" alt="X" title="Скрыть" border="0" /></a></td>
</tr>
</table>
</div>
<table  align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>

<!-- /##########/ Logo /###########/ -->

<table align="center" border="0" cellpadding="0" cellspacing="0" height="210" width="930">
<tbody><tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="930" height="210">
<tr>
<td background="template/dark/img/main_logo.jpg" valign="top">
</td>
</tr>
</table>
</td>
</tr>
</tbody></table>

<!-- /##########/ Main /###########/ -->

<table class="main-table" align="center" border="0" cellpadding="0" cellspacing="0" width="930">
<tbody><tr>
<td style="background-image: "template/dark/img/bg1.gif" bgcolor="#ffffff" valign="top" width="180">
<div id="menu_box">
<div id="menu_links">
<img src=template/dark/img/menu/1.jpg>
<font class="boxt"><?php print phrase_menu_navigation;?></font>
<a href="./?pg=news"><?php print phrase_menu_news;?></a>
<a href="./?pg=rules"><?php print phrase_menu_rules;?></a>
<a href="./?pg=files"><?php print phrase_menu_files;?></a>
<a href="./?pg=u-signup"><?php print phrase_menu_reg;?></a>
<a href="./?pg=u-signup">Возврат пароля</a>
<a target=_blank href="./?pg=forum">Форум<img src="template/dark/new.gif"></a>
<img src=template/dark/img/menu/6.jpg>
<font class="boxt"><?php print phrase_menu_faq;?></font>
<a href="./?pg=serv-info"><?php print phrase_menu_info_about_s;?></a>
<a href="./?pg=serv-stats"><?php print phrase_menu_serv_stats;?></a>
<a href="./?pg=history">Легенда MuOnline</a>
<img src=template/dark/img/menu/2.jpg>
<font class="boxt"><?php print phrase_menu_ranking;?></font>
<a href="./?pg=tc"><?php print phrase_menu_tc;?></a>
<a href="./?pg=tg"><?php print phrase_menu_tg;?></a>
<a href="./?pg=tm">Топ 100 богатых</a>
<a href="./?pg=to">Топ 10 Онлайн</a>
<a href="./?pg=tkill">Топ 10 Маньяков</a>
<a href="./?pg=tb">Доска Позора</a>
<a href="./?pg=search"><?php print phrase_menu_search;?></a>
<a href="./?pg=tr">Топ Рефералов<img src="template/dark/new.gif"></a>
<?php if(!isset($_COOKIE['DS_UserName'])){
print
"
"
;
}
else{
?>

<img src=template/dark/img/menu/3.jpg>
<font class="boxt"><?php print phrase_menu_game_opt;?></font>
<a href="./?pg=s-reset"><?php print phrase_menu_reset;?></a>
<a href="./?pg=s-pkclear"><?php print phrase_menu_pkclear;?></a>
<a href="./?pg=s-stats"><?php print phrase_menu_stats;?></a>
<a href="./?pg=s-rescue"><?php print phrase_menu_rescue;?></a>
<a href="./?pg=ref">Реферальная Сылка</a>
<img src=template/dark/img/menu/5.jpg>
<font class="boxt"><?php print phrase_menu_market;?></font>
<a href="./?pg=m-list">
<?php print phrase_menu_m_list;?></a>
<a href="./?pg=m-history"><?php print phrase_menu_m_history;?></a>
<img src=template/dark/img/menu/4.jpg>
<font class="boxt"><?php print phrase_menu_options;?></font>
<a href="./?pg=warehouse"><?php print phrase_menu_game_bank;?></a>
<a href="./?pg=s-zenbuy"><?php print phrase_menu_buy_zen;?></a>
<a href="./?pg=s-zenkred"><?php print phrase_menu_move_zen_kred;?></a>
<a href="./?pg=s-profile"><?php print phrase_menu_profile;?></a>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">Купить Кредиты</a>
<a target=_blank href="/shop/login.php">Кузница</a>
<?php if ($IsAdmin == 'true'){echo "


<font class=boxt><img src=template/dark/img/menu/6.jpg>  Панель Gamemastera</font>
<br>
<a href=./?pg=ban>Забанить игрока</a>



"
;} ?>





<?php
}
?>

</div>
</div></td>
<td background="template/dark/img/dotline.gif" width="1"></td>
<td bgcolor="#ffffff" valign="top">
<table class="main_table" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td style="padding: 8px;" valign="top"><?php print "$logerror"?>

<?php if (file_exists($pg.".php")) {
include(
$pg.".php");
}
else{echo
"<h1>File not found</h1>";

?>

<br></td>
<td style="padding: 4px;" valign="top" width="180"><table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody><tr>
<td align=center><img src=template/dark/img/serverinfo.jpg></img></td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="14">
Статус: <?php print $serv_status;?> </td>
</tr>
<tr>
<td height="14">
Версия: <b><?php print $Info['version'];?></b> </td>
</tr>
<tr>
<td height="14">
Exp & Drop: <b><?php print $Info['exp_and_drop'];?></b> </td>
</tr>
<tr>
<td height="14">
Bless Bug: <b><?php print $Info['bless_bug'];?></b> </td>
</tr>
<tr>
<td height="14">
Всего аккаунтов: <b><?php echo "$accs"?></b> </td>
</tr>
<tr>
<td height="14">
Всего игроков: <b><?php echo "$chars"?></b> </td>
</tr>
<tr>
<td height="14">
Всего кланов: <b><?php echo "$guilds"?></b> </td>
</tr>

<?php
if($s_online)
print 
"<tr>
<td height="
14">$s_online</td>
</tr>"
;
?>

<tr>
<td height="14">
<a href="?pg=online&s=t"><?php print phrase_total_online;?>:
<font color="green"><?php print $total['online'];?></font></a> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_online_record;?>: <?php print online_record($total['online']);?> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_on_web;?>: <?php include"count_online.php"?> </td>
</tr>
<tr>
<td>
<hr color="#000000" size="1" width="100%">

<?php include"events_time.php";?> </td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/userarea.jpg></img></td>
</tr>
<tr>
<td valign="top"><?php if(!isset($_COOKIE['DS_UserName'])){
?>

<form method="post" name="loginform" action="">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="23" width="67">
Аккаунт: </td>
<td height="23">
<INPUT class=txt-simple maxLength=10 size=15 name=acc> </td>
</tr>
<tr>
<td height="23" width="67">
Пароль: </td>
<td height="23">
<INPUT class=txt-simple type=password maxLength=10 size=15 name=pass> </td>
</tr>
<tr>
<td colspan="2" align="center" height="25">
<input value="Авторизация" class="bt1" type="submit" name=login_start> </td>
</tr>
<tr></tr>
</tbody></table>
</form>
<?php
}
else
{
?>


<?php

$curr_char_info 
"select * from Character WHERE Name='$char_name'";
$curr_char_info mssql_query($curr_char_info);
$curr_char_info mssql_fetch_array($curr_char_info);



if(
$curr_char_info['Class'] == 0){ $curr_char_info['Class'] ='Dark Wizard';
}
if(
$curr_char_info['Class'] == 1){ $curr_char_info['Class'] ='Soul Master';
}
if(
$curr_char_info['Class'] == 2){ $curr_char_info['Class'] ='Grand Master';
}
if(
$curr_char_info['Class'] == 16){ $curr_char_info['Class'] ='Dark Knight';
}
if(
$curr_char_info['Class'] == 17){ $curr_char_info['Class'] ='Blade Knight';
}
if(
$curr_char_info['Class'] == 18){ $curr_char_info['Class'] ='Blade Master';
}
if(
$curr_char_info['Class'] == 32){ $curr_char_info['Class'] ='Elf';
}
if(
$curr_char_info['Class'] == 33){ $curr_char_info['Class'] ='Muse Elf';
}
if(
$curr_char_info['Class'] == 34){ $curr_char_info['Class'] ='High Elf';
}
if(
$curr_char_info['Class'] == 48){ $curr_char_info['Class'] ='Magic Gladiator';
}
if(
$curr_char_info['Class'] == 49 OR $curr_char_info['Class'] == 50){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 64){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 65 OR $curr_char_info['Class'] == 66){ $curr_char_info['Class'] ='Lord Emperor';
}
if(
$curr_char_info['Class'] == 80){ $curr_char_info['Class'] ='Summoner';
}
if(
$curr_char_info['Class'] == 81){ $curr_char_info['Class'] ='Bloody Summoner';
}
if(
$curr_char_info['Class'] == 82){ $curr_char_info['Class'] ='Dim. Master';
}


if (
$curr_char_info['PkLevel'] == '4') {
$curr_char_info['PkCount'] = 'Murder';}
if (
$curr_char_info['PkLevel'] == '5') {
$curr_char_info['PkLevel'] = 'Warned';}
if (
$curr_char_info['PkLevel'] == '6') {
$curr_char_info['PkLevel'] = 'Phonoman';}

if (
$curr_char_info['PkLevel'] == '3') {
$curr_char_info['PkLevel'] = 'Default';}
if (
$curr_char_info['PkLevel'] == '2') {
$curr_char_info['PkLevel'] = 'Commoner';}
if (
$curr_char_info['PkLevel'] == '1') {
$curr_char_info['PkLevel'] = 'Hero';}

?>




<form name="schr" method="post" action="">
<TABLE cellPadding=0 width="95%" cellspacing="3" border=0 align="center">
<TBODY>
<TR class=colhead>
<TD colSpan=2 height="33">
<p align="center"><b>Приветствую <?php print $username?></b></TD></TR>
<TR class=colhead>
<TD colSpan=2>
<img src=template/dark/img/purse.gif width=15 height=13> <b>Кредиты:</b> <b><?php print $credits[0];?></b><br>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">(пополнить кредиты)</a> </TD></TR>
<TR class=colhead>
<TD colSpan=2 valign="top"> </TD></TR>
<TR class=colhead>
<TD colSpan=2 height="33" valign="top">
<img src=template/dark/img/zen.gif width=15 height=12> <b>Кошелек:</b> <a href="java script:;" title='<?php print $purse_kkk_number." ZEN";?>'><?php print"$purse_kkk $kkk_p"?></a>
<br /></TD></TR>
<TR>
<TD width="35%">Имя</TD>
<TD width="63%"><script language="javascript" style="border:1px solid #334247; height: 17px; background-color: #435255">
var sicharselect = new selectInput("sicharselect", "char_select", "<?php print $char_name?>", "0", "schr", "100");
<?php if($char_name1) print "sicharselect.add("$char_name1", "0");";?>
<?php if($char_name2) print "sicharselect.add("$char_name2", "1");";?>
<?php if($char_name3) print "sicharselect.add("$char_name3", "2");";?>
<?php if($char_name4) print "sicharselect.add("$char_name4", "3");";?>
<?php if($char_name5) print "sicharselect.add("$char_name5", "4");";?>
sicharselect.construct();
</script> </TD></TR>
<TR>
<TD width="35%">Расса</TD>
<TD width="63%"><b><?php print $curr_char_info['Class']; ?></b></TD></TR>
<TR>
<TD width="35%">Уровень</TD>
<TD width="63%"><b><?php print $curr_char_info['cLevel']; ?></b></TD></TR>
<TR>
<TD width="35%">Ресеты</TD>
<TD width="63%"><b><?php print $curr_char_info['Resets']."/".$curr_char_info['Reset_limit']; ?></b></TD></TR>
<TR>
<TD width="35%">PK Статус</TD>
<TD width="63%"><b><?php print $curr_char_info['PkLevel']; ?> (<?php print $curr_char_info['PkCount']; ?> Kills)</b></TD></TR>
<TR>
<TD width="35%">Денег</TD>
<TD width="63%"><b><?php print number_format($curr_char_info['Money']); ?></b></TD></TR>
</form>
<TR class=colhead>
<TD align="center" colSpan=2 height="39"><form name=form method=post action=?do=logout><input class=bt1 type=submit name=Submit value=Logout></TD></TR>
</TBODY></TABLE></form>

<?
}
?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/smsboom.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"sms_boom.php";?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/market.jpg></img></td>
</tr>
<tr>
<td valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
Активные предметы: <b><?php print $Market['active_items'];?></b> </td>
</tr>
<tr>
<td>
Выложено за сутки: <b><?php print $Market['sell_last_24_hours'];?></b> </td>
</tr>
<tr>
<td>
Куплено за сутки: <b><?php print $Market['bought_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="padding-bottom: 4px;">
Оборот за сутки: <b><?php print $Market['amount_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0);">
<b>Последние 5 предметов:</b> </td>
</tr>
<?php include "last_market_items.php";?>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0); padding-top: 4px; padding-bottom: 4px;" align="center">
<a href="?pg=m-list"><b>Полный каталог</b></a> </td>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/banners.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"banners.txt";?></td>
</tr>
</tbody></table>
</tbody></table>
</tbody></table>
<br>

<div align=center>
<font color=white>
This page is designed to be viewed best with <a target=_blank href=https://www.mozilla-europe.org/ru/firefox/><font color=white><b>FireFox</b></font></a><br>
All right reserved ©2008 <a href=mailto:[email protected]><font color=white><b>Hazzard.Lv Team<b></font></a>
</font>
</div>

<br>
</td>
<td style="background-image: template/dark/jpg width="7"></td>
</tr>
<tr>
</table>
</div>
</td>
</tr>
</tbody></table></table></body>

</html>

Sexy

Цитата: Everybody от 2008 Дек. 14, 00:23  Разом исправил ошибки верстки хтмл код шаблона.
Принимай готовый код с баннером.

Найди строку <noindex>https://zdes_adres_na_topsayt</noindex> и замени на адрес голосования (тот что дают на топ сайтах при регистрации)

<?PHP
session_start();
ob_start("ob_gzhandler");
header("Cache-control: private");
$pg=$_GET['pg'];
if ( !isset($pg) ) { $pg = 'news'; }
include"config.php";
include"inc/sql.inc";
include"inc/login_check.inc";
include "inc/darkstyle.inc";

print "<!--
Powered by DarkStyle Web 4.0
Coded by SkyLinE27
Contact: [email protected]
Build Date: 02.06.2008
-->
";

include"inc/lang-change.inc";

if ((isset($_GET['do'])) AND ($_GET['do'] == 'logout')){
setcookie("DS_UserName", NULL);
setcookie("DS_PassWord", NULL);
setcookie("DS_CharNumber", NULL);
$_COOKIE['DS_UserName']=NULL;
$_COOKIE['DS_PassWord']=NULL;
$_COOKIE['DS_CharNumber']=NULL;
}


if (isset($_POST['login_start'])){


$username = stripslashes($_POST['acc']);
$password = stripslashes($_POST['pass']);

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$password' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);
$sql_online_check = mssql_query("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id='$username'");
$online_check = mssql_fetch_row($sql_online_check);
$sql_block_check = mssql_query("SELECT bloc_code FROM MEMB_INFO WHERE memb___id='$username'");
$block_check = mssql_fetch_row($sql_block_check);

$gameidget = "select GameID1,GameIDC from AccountCharacter WHERE ID='$username'";
$gameidget = mssql_query( $gameidget );
$gameidget = mssql_fetch_row($gameidget);

$char_number=0;

$char_name_main=$gameidget[0];
$char_name_2=$gameidget[1];
$char_name_3=$gameidget[2];
$char_name_4=$gameidget[3];
$char_name_5=$gameidget[4];
$char_name_last=$gameidget[1];

if(empty($char_name_main)){
if(empty($char_name_last)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';
}
else{
$char_name_main=$char_name_last;
}
}

if (empty($username) || empty($password) || ($username_check <= 0) || ($pass_check <= 0))
{
if (empty($username) || empty($password)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
}
elseif (($username_check <= 0) || ($pass_check <= 0)){

$logerror= '<div class="msg-error"><ul><li>Неверный логин/пароль!</li></ul></div>';
$logerror2= 'Неверный логин/пароль!';
} }
elseif($online_check[0]=='1'){$logerror= '<div class="msg-error"><ul><li>Сначало выйдите из игры!</li></ul></div>';
}

elseif(empty($char_name_main)){
$logerror='<div class="msg-error"><ul><li>У вас на аккаунте нету не одного чара! Создать чара можно только из игры.</li></ul></div>';
$logerror2='У вас на аккаунте нету не одного чара! Создать чара можно только из игры.';

}


elseif($block_check[0]=='1'){
setcookie("DS_bUserName", $username);
echo "Loading...Please Wait...";
echo '<meta http-equiv="refresh" content="0; URL=../?pg=unban">';exit;
}

else
{
$password=md5($password);
setcookie("DS_UserName", $username);
setcookie("DS_PassWord", $password);
setcookie("DS_CharNumber", $char_number);
setcookie("WebShopUsername", $username);
setcookie("WebShopPassword", $password);
$_COOKIE['DS_UserName']=$username;
$_COOKIE['DS_PassWord']=$password;
$_COOKIE['DS_CharNumber']=$char_number;

}

}

//Admin Check
if (!in_array($_COOKIE['DS_UserName'], explode(',', $Admin['account_list'])))
$IsAdmin='false';
else
$IsAdmin='true';

//End Admin Check


if (isset($_POST['char_select'])){

$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];

$char_s_number = stripslashes($_POST['char_select']);

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_s_name=$char_names[$char_s_number];

$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'");
$username_check = mssql_num_rows($sql_username_check);
$sql_pass_check = mssql_query("SELECT memb__pwd FROM MEMB_INFO WHERE memb__pwd='$pw' AND memb___id = '$username'");
$pass_check = mssql_num_rows($sql_pass_check);

$sql_acc_char_check = mssql_query("SELECT AccountID FROM Character WHERE Name='$char_s_name' and AccountID= '$username'");
$acc_char_check = mssql_num_rows($sql_acc_char_check);

$select_gameid = "select GameID1 from AccountCharacter WHERE ID='$username'";
$select_gameid = mssql_query( $select_gameid );
$select_gameid = mssql_fetch_row($select_gameid);

$char_s_name_main=$select_gameid[0];

if($acc_char_check <= 0 AND $char_s_name != $char_s_name_main)
{
die("Error #3 $char_s_name");
$char_s_name=$_COOKIE['DS_CharNumber'];
}

else{
setcookie("DS_CharNumber", $char_s_number);
$_COOKIE['DS_CharNumber']=$char_s_number;
}

}

$date=date("M d, Y H:i:s");

if(!isset($_COOKIE['DS_UserName'])){

}
else
{
$username=$_COOKIE['DS_UserName'];
$pw=$_COOKIE['DS_PassWord'];
$char_number=$_COOKIE['DS_CharNumber'];


$nick_name = "select memb_name from MEMB_INFO WHERE memb___id='$username'";
$nick_name = mssql_query( $nick_name );
$nick_name= mssql_fetch_row($nick_name);

$nick_name=$nick_name[0];

$char_names = "select GameID1,GameID2,GameID3,GameID4,GameID5 from AccountCharacter WHERE ID='$username'";
$char_names = mssql_query( $char_names );
$char_names= mssql_fetch_row($char_names);

$char_name=$char_names[$char_number];

$char_name1=$char_names[0];
$char_name2=$char_names[1];
$char_name3=$char_names[2];
$char_name4=$char_names[3];
$char_name5=$char_names[4];

$credits = "select credits from MEMB_CREDITS WHERE memb___id='$username'";
$credits = mssql_query($credits);
$credits = mssql_fetch_row($credits);
if($credits[0] == ''){
$insert_credits = mssql_query("
Exec XCredits '$username',0;");
}
// Purse Count

$purse = "select purse from MEMB_INFO WHERE memb___id='$username'";
$purse = mssql_query($purse);
$purse = mssql_fetch_row($purse);

$kkk_p='kkk';

$purse_kkk=$purse[0];

$purse_kkk_number=number_format($purse_kkk);

$purse_kkk=$purse_kkk / 1000000 / 1000;

$purse_kkk=number_format($purse_kkk);

if($purse[0] < 1000000000){
$kkk_p='kk';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000 / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000000){
$kkk_p='k';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk / 1000;

$purse_kkk=number_format($purse_kkk);
}
if($purse[0] < 1000){
$kkk_p='';
$purse_kkk=$purse[0];

$purse_kkk=$purse_kkk;

$purse_kkk=number_format($purse_kkk);
}

//End Purse Count

}

//status

$result = mssql_query("SELECT count(*) from MEMB_INFO");
$row = mssql_fetch_row($result);
$accs = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Character");
$row = mssql_fetch_row($result);
$chars = number_format($row[0]);

$result = mssql_query("SELECT count(*) from Guild");
$row = mssql_fetch_row($result);
$guilds = number_format($row[0]);



$current_time=time();
$day_ago = 1200 * 24;
$time_24_hours_ago=time() - $day_ago;
$sql = mssql_query("SELECT count(*) FROM [ds_market] where end_date > '$current_time'");
$Market['active_items']=mssql_result($sql, 0, 0);

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [start_date] > '$time_24_hours_ago'");
$sql_ = mssql_fetch_row($sql);
$Market['sell_last_24_hours'] = $sql_[0];

$sql = mssql_query("SELECT COUNT([item]) FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND [sold_date] != '-'");
$sql_ = mssql_fetch_row($sql);
$Market['bought_last_24_hours'] = $sql_[0];


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'zen'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= 'k';
}
$Market['amount_last_24_hours'] .= " ".$replace;


$sql = mssql_query("SELECT [price] FROM [ds_market_history] WHERE [sold_date] > '$time_24_hours_ago' AND pay_type = 'kred'");

$h_result= 0;
for($i=0;$i < mssql_num_rows($sql);++$i)
{
$sql_ = mssql_fetch_row($sql);
$h_result = $h_result + $sql_[0];
}
$Market['amount_kred_last_24_hours'] = strval($h_result);

$replace = '';
while (strlen($Market['amount_last_24_hours']) > 3)
{
$Market['amount_last_24_hours'] = substr($Market['amount_last_24_hours'], 0, -3);
$replace .= '';
}
$Market['amount_kred_last_24_hours'] .= " ".$replace;







if ($fp=@fsockopen($ServerHost['connect'],$ServerPort['connect'],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$serv_status ="<font color="green"><b>ONLINE</b></font>";
}
else
{
$serv_status ="<font color="red"><b>OFFLINE</b></font>";
}
$s_online='';
for($iii=1;$iii <= $ServersCount;++$iii)
{
if (!empty($ServerHost[$iii]) AND !empty($ServerPort[$iii])){
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1' and ServerName= '".$ServerName[$iii]."'");
$server[$iii]['online']=mssql_result($sql, 0, 0);

if ($fp=@fsockopen($ServerHost[$iii],$ServerPort[$iii],$ERROR_NO,$ERROR_STR,(float)0.5))
{
fclose($fp);
$s_online= "$s_online<a href="?pg=online&s=$iii">
Serv #$iii Players Online: ".$server[$iii]['online']."/".$ServerMaxPlayers[$iii]."</a><br>";
}
else
{
echo "";
}

}
}
$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1'");
$total['online']=mssql_result($sql, 0, 0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Hazzard MuOnline</title>



<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="mu, muonline, dark, game, mmorpg, rpg, online, best, server, ">
<!-- base href="" -->
<link href="template/dark/css2.css" rel="StyleSheet">
<script type="text/javascript" src="template/dark/main.js"></script>
<script type="text/javascript" src="template/dark/overlib.js"></script>
<script type="text/javascript" src="template/dark/flash_content.js"></script><script charset="utf-8" id="<?php print $template_dir;?>injection_graph_func" src="template/dark/injection_graph_func.js"></script>
<script type="text/javascript" src="template/dark/js/jquery-1.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_002.js"></script>
<script type="text/javascript" src="template/dark/js/jquery.js"></script>
<script type="text/javascript" src="template/dark/js/jquery_003.js"></script>
<script type="text/javascript" src="template/dark/js/m.js"></script></head>
<script type="text/javascript">
$(function() { $("*[title]").Tooltip({ track:true, delay:0, showURL:false }); });

/* Lang vars */
var lang_btclose = '<?php print phrase_lang_btclose;?>';
var lang_btoriginal = '<?php print phrase_lang_btoriginal;?>';
var lang_btresort = '<?php print phrase_lang_btresort;?>';
var lang_btclear = '<?php print phrase_lang_btclear;?>';
</script>
<style type="text/css">
#votecool {
background-color: #ffe0e0;
color: #000000;
border-color: #000000;
border-style: none;
border-width: 1px;
border-bottom-color: #ff0000;
border-bottom-style: solid;
border-bottom-width: 1px;
text-align: center;
overflow: hidden;
font-size: 14px;
font-weight: bold;
}

#votecool .links {
padding: 3px;
}

.label { float:left; width:120px; }
.clear { clear:both; }

.false { margin: 10px; padding: 5px; background-color: #FF9999; font-family: Verdana, sans-serif; font-size: 14px; color: #663333; }
.true { margin: 10px; padding: 5px; background-color: #99FF99; font-family: Verdana, sans-serif; font-size: 14px; color: #336600; }</style>

</head>
<body>

<div id="votecool">
<table  width="100%">
<tr>
<td class="links" align="center" width="80%"><a href="https://zdes_adres_na_topsayt" target="_blank">Голосуй за нас каждые 12 часов и сделай сервер ещё лучше!</a></td>
<td class="links" align="right" width="10%"><a href="java script:void(0);" onClick="document.getElementById('reminder').style.display='none';" class="close"><img src="no.gif" alt="X" title="Скрыть" border="0" /></a></td>
</tr>
</table>
</div>
<table  align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>

<!-- /##########/ Logo /###########/ -->

<table align="center" border="0" cellpadding="0" cellspacing="0" height="210" width="930">
<tbody><tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="930" height="210">
<tr>
<td background="template/dark/img/main_logo.jpg" valign="top">
</td>
</tr>
</table>
</td>
</tr>
</tbody></table>

<!-- /##########/ Main /###########/ -->

<table class="main-table" align="center" border="0" cellpadding="0" cellspacing="0" width="930">
<tbody><tr>
<td style="background-image: "template/dark/img/bg1.gif" bgcolor="#ffffff" valign="top" width="180">
<div id="menu_box">
<div id="menu_links">
<img src=template/dark/img/menu/1.jpg>
<font class="boxt"><?php print phrase_menu_navigation;?></font>
<a href="./?pg=news"><?php print phrase_menu_news;?></a>
<a href="./?pg=rules"><?php print phrase_menu_rules;?></a>
<a href="./?pg=files"><?php print phrase_menu_files;?></a>
<a href="./?pg=u-signup"><?php print phrase_menu_reg;?></a>
<a href="./?pg=u-signup">Возврат пароля</a>
<a target=_blank href="./?pg=forum">Форум<img src="template/dark/new.gif"></a>
<img src=template/dark/img/menu/6.jpg>
<font class="boxt"><?php print phrase_menu_faq;?></font>
<a href="./?pg=serv-info"><?php print phrase_menu_info_about_s;?></a>
<a href="./?pg=serv-stats"><?php print phrase_menu_serv_stats;?></a>
<a href="./?pg=history">Легенда MuOnline</a>
<img src=template/dark/img/menu/2.jpg>
<font class="boxt"><?php print phrase_menu_ranking;?></font>
<a href="./?pg=tc"><?php print phrase_menu_tc;?></a>
<a href="./?pg=tg"><?php print phrase_menu_tg;?></a>
<a href="./?pg=tm">Топ 100 богатых</a>
<a href="./?pg=to">Топ 10 Онлайн</a>
<a href="./?pg=tkill">Топ 10 Маньяков</a>
<a href="./?pg=tb">Доска Позора</a>
<a href="./?pg=search"><?php print phrase_menu_search;?></a>
<a href="./?pg=tr">Топ Рефералов<img src="template/dark/new.gif"></a>
<?php if(!isset($_COOKIE['DS_UserName'])){
print
"
"
;
}
else{
?>

<img src=template/dark/img/menu/3.jpg>
<font class="boxt"><?php print phrase_menu_game_opt;?></font>
<a href="./?pg=s-reset"><?php print phrase_menu_reset;?></a>
<a href="./?pg=s-pkclear"><?php print phrase_menu_pkclear;?></a>
<a href="./?pg=s-stats"><?php print phrase_menu_stats;?></a>
<a href="./?pg=s-rescue"><?php print phrase_menu_rescue;?></a>
<a href="./?pg=ref">Реферальная Сылка</a>
<img src=template/dark/img/menu/5.jpg>
<font class="boxt"><?php print phrase_menu_market;?></font>
<a href="./?pg=m-list">
<?php print phrase_menu_m_list;?></a>
<a href="./?pg=m-history"><?php print phrase_menu_m_history;?></a>
<img src=template/dark/img/menu/4.jpg>
<font class="boxt"><?php print phrase_menu_options;?></font>
<a href="./?pg=warehouse"><?php print phrase_menu_game_bank;?></a>
<a href="./?pg=s-zenbuy"><?php print phrase_menu_buy_zen;?></a>
<a href="./?pg=s-zenkred"><?php print phrase_menu_move_zen_kred;?></a>
<a href="./?pg=s-profile"><?php print phrase_menu_profile;?></a>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">Купить Кредиты</a>
<a target=_blank href="/shop/login.php">Кузница</a>
<?php if ($IsAdmin == 'true'){echo "


<font class=boxt><img src=template/dark/img/menu/6.jpg>  Панель Gamemastera</font>
<br>
<a href=./?pg=ban>Забанить игрока</a>



"
;} ?>





<?php
}
?>

</div>
</div></td>
<td background="template/dark/img/dotline.gif" width="1"></td>
<td bgcolor="#ffffff" valign="top">
<table class="main_table" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td style="padding: 8px;" valign="top"><?php print "$logerror"?>

<?php if (file_exists($pg.".php")) {
include(
$pg.".php");
}
else{echo
"<h1>File not found</h1>";

?>

<br></td>
<td style="padding: 4px;" valign="top" width="180"><table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody><tr>
<td align=center><img src=template/dark/img/serverinfo.jpg></img></td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="14">
Статус: <?php print $serv_status;?> </td>
</tr>
<tr>
<td height="14">
Версия: <b><?php print $Info['version'];?></b> </td>
</tr>
<tr>
<td height="14">
Exp & Drop: <b><?php print $Info['exp_and_drop'];?></b> </td>
</tr>
<tr>
<td height="14">
Bless Bug: <b><?php print $Info['bless_bug'];?></b> </td>
</tr>
<tr>
<td height="14">
Всего аккаунтов: <b><?php echo "$accs"?></b> </td>
</tr>
<tr>
<td height="14">
Всего игроков: <b><?php echo "$chars"?></b> </td>
</tr>
<tr>
<td height="14">
Всего кланов: <b><?php echo "$guilds"?></b> </td>
</tr>

<?php
if($s_online)
print 
"<tr>
<td height="
14">$s_online</td>
</tr>"
;
?>

<tr>
<td height="14">
<a href="?pg=online&s=t"><?php print phrase_total_online;?>:
<font color="green"><?php print $total['online'];?></font></a> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_online_record;?>: <?php print online_record($total['online']);?> </td>
</tr>
<tr>
<td height="14">
<?php print phrase_on_web;?>: <?php include"count_online.php"?> </td>
</tr>
<tr>
<td>
<hr color="#000000" size="1" width="100%">

<?php include"events_time.php";?> </td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/userarea.jpg></img></td>
</tr>
<tr>
<td valign="top"><?php if(!isset($_COOKIE['DS_UserName'])){
?>

<form method="post" name="loginform" action="">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td height="23" width="67">
Аккаунт: </td>
<td height="23">
<INPUT class=txt-simple maxLength=10 size=15 name=acc> </td>
</tr>
<tr>
<td height="23" width="67">
Пароль: </td>
<td height="23">
<INPUT class=txt-simple type=password maxLength=10 size=15 name=pass> </td>
</tr>
<tr>
<td colspan="2" align="center" height="25">
<input value="Авторизация" class="bt1" type="submit" name=login_start> </td>
</tr>
<tr></tr>
</tbody></table>
</form>
<?php
}
else
{
?>


<?php

$curr_char_info 
"select * from Character WHERE Name='$char_name'";
$curr_char_info mssql_query($curr_char_info);
$curr_char_info mssql_fetch_array($curr_char_info);



if(
$curr_char_info['Class'] == 0){ $curr_char_info['Class'] ='Dark Wizard';
}
if(
$curr_char_info['Class'] == 1){ $curr_char_info['Class'] ='Soul Master';
}
if(
$curr_char_info['Class'] == 2){ $curr_char_info['Class'] ='Grand Master';
}
if(
$curr_char_info['Class'] == 16){ $curr_char_info['Class'] ='Dark Knight';
}
if(
$curr_char_info['Class'] == 17){ $curr_char_info['Class'] ='Blade Knight';
}
if(
$curr_char_info['Class'] == 18){ $curr_char_info['Class'] ='Blade Master';
}
if(
$curr_char_info['Class'] == 32){ $curr_char_info['Class'] ='Elf';
}
if(
$curr_char_info['Class'] == 33){ $curr_char_info['Class'] ='Muse Elf';
}
if(
$curr_char_info['Class'] == 34){ $curr_char_info['Class'] ='High Elf';
}
if(
$curr_char_info['Class'] == 48){ $curr_char_info['Class'] ='Magic Gladiator';
}
if(
$curr_char_info['Class'] == 49 OR $curr_char_info['Class'] == 50){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 64){ $curr_char_info['Class'] ='Duel Master';
}
if(
$curr_char_info['Class'] == 65 OR $curr_char_info['Class'] == 66){ $curr_char_info['Class'] ='Lord Emperor';
}
if(
$curr_char_info['Class'] == 80){ $curr_char_info['Class'] ='Summoner';
}
if(
$curr_char_info['Class'] == 81){ $curr_char_info['Class'] ='Bloody Summoner';
}
if(
$curr_char_info['Class'] == 82){ $curr_char_info['Class'] ='Dim. Master';
}


if (
$curr_char_info['PkLevel'] == '4') {
$curr_char_info['PkCount'] = 'Murder';}
if (
$curr_char_info['PkLevel'] == '5') {
$curr_char_info['PkLevel'] = 'Warned';}
if (
$curr_char_info['PkLevel'] == '6') {
$curr_char_info['PkLevel'] = 'Phonoman';}

if (
$curr_char_info['PkLevel'] == '3') {
$curr_char_info['PkLevel'] = 'Default';}
if (
$curr_char_info['PkLevel'] == '2') {
$curr_char_info['PkLevel'] = 'Commoner';}
if (
$curr_char_info['PkLevel'] == '1') {
$curr_char_info['PkLevel'] = 'Hero';}

?>




<form name="schr" method="post" action="">
<TABLE cellPadding=0 width="95%" cellspacing="3" border=0 align="center">
<TBODY>
<TR class=colhead>
<TD colSpan=2 height="33">
<p align="center"><b>Приветствую <?php print $username?></b></TD></TR>
<TR class=colhead>
<TD colSpan=2>
<img src=template/dark/img/purse.gif width=15 height=13> <b>Кредиты:</b> <b><?php print $credits[0];?></b><br>
<a onClick="tickBox('sendsms.php', '550', '450', 'article1', false); return false;" href="java script:;">(пополнить кредиты)</a> </TD></TR>
<TR class=colhead>
<TD colSpan=2 valign="top"> </TD></TR>
<TR class=colhead>
<TD colSpan=2 height="33" valign="top">
<img src=template/dark/img/zen.gif width=15 height=12> <b>Кошелек:</b> <a href="java script:;" title='<?php print $purse_kkk_number." ZEN";?>'><?php print"$purse_kkk $kkk_p"?></a>
<br /></TD></TR>
<TR>
<TD width="35%">Имя</TD>
<TD width="63%"><script language="javascript" style="border:1px solid #334247; height: 17px; background-color: #435255">
var sicharselect = new selectInput("sicharselect", "char_select", "<?php print $char_name?>", "0", "schr", "100");
<?php if($char_name1) print "sicharselect.add("$char_name1", "0");";?>
<?php if($char_name2) print "sicharselect.add("$char_name2", "1");";?>
<?php if($char_name3) print "sicharselect.add("$char_name3", "2");";?>
<?php if($char_name4) print "sicharselect.add("$char_name4", "3");";?>
<?php if($char_name5) print "sicharselect.add("$char_name5", "4");";?>
sicharselect.construct();
</script> </TD></TR>
<TR>
<TD width="35%">Расса</TD>
<TD width="63%"><b><?php print $curr_char_info['Class']; ?></b></TD></TR>
<TR>
<TD width="35%">Уровень</TD>
<TD width="63%"><b><?php print $curr_char_info['cLevel']; ?></b></TD></TR>
<TR>
<TD width="35%">Ресеты</TD>
<TD width="63%"><b><?php print $curr_char_info['Resets']."/".$curr_char_info['Reset_limit']; ?></b></TD></TR>
<TR>
<TD width="35%">PK Статус</TD>
<TD width="63%"><b><?php print $curr_char_info['PkLevel']; ?> (<?php print $curr_char_info['PkCount']; ?> Kills)</b></TD></TR>
<TR>
<TD width="35%">Денег</TD>
<TD width="63%"><b><?php print number_format($curr_char_info['Money']); ?></b></TD></TR>
</form>
<TR class=colhead>
<TD align="center" colSpan=2 height="39"><form name=form method=post action=?do=logout><input class=bt1 type=submit name=Submit value=Logout></TD></TR>
</TBODY></TABLE></form>

<?
}
?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/smsboom.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"sms_boom.php";?></td>
</tr>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td align=center><img src=template/dark/img/market.jpg></img></td>
</tr>
<tr>
<td valign="top">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
Активные предметы: <b><?php print $Market['active_items'];?></b> </td>
</tr>
<tr>
<td>
Выложено за сутки: <b><?php print $Market['sell_last_24_hours'];?></b> </td>
</tr>
<tr>
<td>
Куплено за сутки: <b><?php print $Market['bought_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="padding-bottom: 4px;">
Оборот за сутки: <b><?php print $Market['amount_last_24_hours'];?></b> </td>
</tr>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0);">
<b>Последние 5 предметов:</b> </td>
</tr>
<?php include "last_market_items.php";?>
<tr>
<td style="border-top: 1px solid rgb(0, 0, 0); padding-top: 4px; padding-bottom: 4px;" align="center">
<a href="?pg=m-list"><b>Полный каталог</b></a> </td>
</tbody></table>

<table class="rbox" border="0" cellpadding="0" cellspacing="3" width="100%">
<tbody>
<tr>
<td valign=top style="background-image: url(<?php print $template_dir;?>template/dark/img/banners.jpg);" height="21">
<p align="right"><b></b></td>
</tr>
<tr>
<td valign="top"><?php include"banners.txt";?></td>
</tr>
</tbody></table>
</tbody></table>
</tbody></table>
<br>

<div align=center>
<font color=white>
This page is designed to be viewed best with <a target=_blank href=https://www.mozilla-europe.org/ru/firefox/><font color=white><b>FireFox</b></font></a><br>
All right reserved ©2008 <a href=mailto:[email protected]><font color=white><b>Hazzard.Lv Team<b></font></a>
</font>
</div>

<br>
</td>
<td style="background-image: template/dark/jpg width="7"></td>
</tr>
<tr>
</table>
</div>
</td>
</tr>
</tbody></table></table></body>

</html>



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:xampphtdocsindex.php:1) in C:xampphtdocsindex.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsindex.php:1) in C:xampphtdocsindex.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsindex.php:1) in C:xampphtdocsindex.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsindex.php:1) in C:xampphtdocsindex.php on line 24

вот что на верху видаёт!

Everybody

Это не изза баннера точно,
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
Сессия уже имеется и не может перезаписаться, исправление просто ненадо несколько раз открывать веб во вкладках.
-
Нечего трогать кодировку фйлов! Неправиьная кодировка файлов вот и проблемы (если что в личку напишешь)

Насчет баннера, гланьте в первый пост - обновил на наиболее простой вариант и рабочий в Internet Explorer, Mozilla, Opera, Netskape, Google Chrome (на всех проверено и работает)

## здесь был скриншот ##

Похожие темы (5)