<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- Powered by UNNAMED Acc. Maker ©2009 - 2010 by Gesior. -->
<!-- Rewrote and rebuild for Altara.pl purposes (c)2009 - 2010. -->
<!-- Designed by DeGhost -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta name="description" content=Tibia is a free massive multiplayer online role playing game (MMORPG)." />
<meta name="author" content="DeGhost,Loleslav" />
<meta http-equiv="content-language" content="pl" />
<meta http-equiv="content-type" content="text/html; charset=windows-1250" />
<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server" />
<link rel="shortcut icon" href="<?PHP echo $layout_name; ?>/images/others/favicon.ico" type="image/x-icon">
<link rel="icon" href="<?PHP echo $layout_name; ?>/images/others/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/default.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/basic.css" media="screen"/>
<title><?PHP echo $title; ?></title>
<?PHP echo $layout_header; ?>
<style type="text/css">
@import "layout.css";
</style>
</head>
<body class="home">
<div id="bg1">
<div id="bg2">
<div id="header" class="container">
<div id="logo">
</div>
<div id="topmenu">
<ul>
</ul>
</div>
</div>
</div>
<div id="menu">
<ul class="container">
<li class="first"><a href="?subtopic=latestnews">News</a></li>
<li><a href="index.php?subtopic=createaccount">Załóż Konto</a></li>
<li><a href="index.php?subtopic=downloads">Pobieralnia</a></li>
<li><a href="index.php?subtopic=eventy">Eventy</a></li>
<li><a href="index.php?subtopic=forum">Forum</a></li>
<li>Poradniki</li>
</ul>
</div>
<div id="bar">
<div class="container">
<div id="login">
<?php
if ($logged) {
echo'<form method="post" action="?subtopic=accountmanagement&action=logout">
<fieldset><p>Witaj, <a href="?subtopic=accountmanagement">Zarządzaj kontem</a> </p>
<input value="Wyloguj" class="input-submit" type="submit" />
</fieldset>
</form>';
}else{
echo'<form method="post" action="?subtopic=accountmanagement">
<fieldset> <span class="input-text"> <input name="account_login" value="" type="text" /> </span><span class="input-text"> <input name="password_login" value="" type="password" /> </span> <input value="Zaloguj" class="input-submit" type="submit" />
<p><a href="?subtopic=lostaccount">Odzyskiwanie konta.</a> </p>
</fieldset>
</form>';
}
?>
</div>
<div id="search">
<form method="post" action="index.php?subtopic=characters">
<fieldset> <span class="input-text"> <input name="name" value="Player name" type="text" /> </span><input value="Search" class="input-submit" type="submit" /></fieldset>
</form>
</div>
</div>
</div>
<div id="bg3">
<div id="bg4">
<div id="page" class="container">
<div id="content">
<div id="sidebar2">
<?php
if ($subtopic == "latestnews"){
echo '<div id="box2" class="box-style3">
<h2 class="title"></h2>
<div class="entry">
<center><a href="index.php?subtopic=eventy">
<img src="http://www.playbackups.com/photos/Elite.jpg" width="500" height="300" />
</center></a>
<div style="clear: both;"><!-- # --> </div>
</div>
</div>';
}
?>
<center> </center>
<div id="box3" class="box-style3">
<h2 class="title"><?PHP echo $topic; ?></h2>
<div class="main_content">
<?PHP echo $main_content; ?>
</div>
</div>
</div>
<div id="sidebar3">
<div id="box4" class="box-style4">
<h2 class="title"><center>Status</center></h2>
<div class="entry">
<ul class="list1">
</ul>
<center>
<?php
if($config['status']['serverStatus_online'] == 1){
echo 'Players On-Line:
<a href="index.php?subtopic=whoisonline&world=0" title="Graczy ON-line"><b>'.$config['status']['serverStatus_players'].'/'.$config['status']['serverStatus_playersMax'].'</b></a>
<br>UpTime:
<b>'.$config['status']['serverStatus_uptime'].'</b><br>';
$plik = "online.txt";
$czas = 60;
$t = time();
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
$u = explode("\n", str_replace("\r", "", @join("", @file($plik))));
foreach($u as $i => $v) {
$e = explode("|", $v);
if($e[0] == $ip || $e[1] < $t) unset($u[$i]);
}
$u[] = $ip . "|" . ($t + $czas);
$fp = fopen($plik, "w");
flock($fp, 2);
fputs($fp, join("\n", $u));
flock($fp, 3);
fclose($fp);
echo 'Graczy na stronie: '.count($u);
}else{
echo '<font color="red">Server jest wyłączony.</font>';
}
?>
</center>
</div>
</div>
<div id="box5" class="box-style4">
<div class="entry"> <ul class="list1">
</ul>
<h2 class="title"><center>Najlepsi gracze:</center></h2>
<center> <?php
$limitt = 5;
$skills = $SQL->query('SELECT name,level,experience FROM players WHERE group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT '.$limitt)->fetchAll();
$number_of_rows = 0;
foreach($skills as $skillss)
{
$number_of_rows++;
echo '<li class="bg6"><a href="index.php?subtopic=characters&name='.urlencode($skillss['name']).'" class="link2">'.$skillss['name'].'</a><br>';
echo '<em class="style2">Level: <b>'.urlencode($skillss['level']).'</b></em></li>';
}
?></center>
</div>
<ul class="list1">
</ul>
<br/>
<!-- (C) GG Network SA - Gadu-Gadu Widget -->
<center><script type="text/javascript" src="http://widget.gadu-gadu.pl/getCode.php?id=e87a9c3aaaf17d48ed67473328390533add2aca0"></script></center>
</center>
</div>
</div>
</div>
<div id="sidebar">
<div id="box6" class="box-style2">
<h2 class="title">Informacje</h2>
<div class="entry">
<ul class="list1">
<li><a href="?subtopic=latestnews">News</a></li>
<li><a href="index.php?subtopic=characters">Szukaj gracza</a></li>
<li><a href="index.php?subtopic=serverinfo">Server Info</a></li>
<li><a href="index.php?subtopic=tibiarules">Zasady</a></li>
<li><a href="index.php?subtopic=team">Pomoc w grze</a></li>
<li><a href="index.php?subtopic=bans">Lista zbanowanych</a></li>
<?php
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
echo '<li><a href="?subtopic=adminpanel"><b><font color="red">Admin Panel</font></b></a></li>';
if($group_id_of_acc_logged > 0)
echo '<li><a href="?subtopic=namelock"><b><font color="red">Namelocks</font></b></a></li>';
if($group_id_of_acc_logged > 0)
echo '<li><a href="?subtopic=changelog"><b><font color="red">Changelog</font></b></a></li>';
?>
</ul>
</div>
</div>
<div id="box7" class="box-style2">
<h2 class="title">Społeczność</h2>
<ul class="list1">
<li><a href="index.php?subtopic=guilds">Gildie</a></li>
<li><a href="index.php?subtopic=houses">Domki</a></li>
<li><a href="index.php?subtopic=killstatistics">Ostatnio zgineli</a></li>
<li><a href="index.php?subtopic=spells">Czary</a></li>
<li><a href="index.php?subtopic=creatures">Potwory</a></li>
</ul>
<div id="box8" class="box-style2">
<h2 class="title">Rekordy</h2>
<div class="entry">
<ul class="list1">
</ul>
<div class="entry">
<ul class="list1">
<li><a href="index.php?subtopic=highscores&list=experience&world=0">Poziom</a></li>
<li><a href="index.php?subtopic=highscores&list=magic&world=0">Poziom magiczny</a></li>
<li><a href="index.php?subtopic=highscores&list=fist&world=0">Fist </a></li>
<li><a href="index.php?subtopic=highscores&list=clubt&world=0">Club</a></li>
<li><a href="index.php?subtopic=highscores&list=fist&world=0">Sword</a></li>
<li><a href="index.php?subtopic=highscores&list=axe&world=0">Axe</a></li>
<li><a href="index.php?subtopic=highscores&list=distance&world=0">Distance</a></li>
<li><a href="index.php?subtopic=highscores&list=shieldning&world=0">Shielding</a></li>
<li><a href="index.php?subtopic=highscores&list=fisting&world=0">Fishing</a></li>
</ul>
</div>
<ul class="list1">
</ul>
</div>
</div>
</div>
<div id="box8" class="box-style2">
<div id="box8" class="box-style2">
<h2 class="title">Sklepik</h2>
<div class="entry">
<ul class="list1">
</ul>
<div class="entry">
<ul class="list1">
<li><a href='?subtopic=buypoints&system=dotpay'>Kup punkty premium!</a></li>
<li><a href='?subtopic=shopsystem'>Wymien Punkty</a></li>
<li><a href='?subtopic=shopsystem&action=show_history'>Historia</li>
</ul>
</div>
<ul class="list1">
</ul>
</div>
</div>
</div>
<div id="box8" class="box-style2">
</div>
</div>
<div style="clear: both;"> </div>
</div>
</div>
</div>
<div id="footer">
<p class="container">
</div>
</div>
</div>
</body>
</html>