Quote:
<?PHP
session_name("m2hp");
session_start();
require("./inc/config.inc.php");
require("./inc/rights.inc.php");
require("./inc/functions.inc.php");
$sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
$sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
if(!is_resource($sqlServ) OR !is_resource($sqlHp)) {
exit("Verbindung zur Datenbank fehlgeschlagen: Abbruch");
}
require("./inc/head.inc.php");
if (!isset($_SESSION['user_admin'])) {
$_SESSION['user_admin'] = -1;
}
?>
<!--Homepage by DasKuchen-->
<!DOCTYPE html>
<html>
<head>
<title>Deliciouse2 - Homepage</title>
<link rel="stylesheet" href="main.css" type="text/css" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="javascript/hover.js"></script>
<script src="javascript/check.js"></script>
<script src="javascript/tooltip.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<nav>
<ul>
<a href="index.php?s=home">Startseite</a>
<a href="index.php?s=register">Registration</a>
<a href="index.php?s=download">Download</a>
<a href="index.php?s=rankings_char">Rangliste</a>
<a href="./itemshop">Itemshop</a>
<a href="index.php?s=team">Team</a>
</ul>
</nav>
<div id="logo"></div>
<div id="main">
<div class="left">
<div id="sidebar_top">Loginbereich</div>
<div id="sidebar_main">
<?PHP include 'inc/loginbar.inc.php'; ?>
</div>
<div id="sidebar_footer"></div>
<div id="sidebar_top">
<div class="ranktext">Spieler-Rangliste</div>
</div>
<div id="sidebar_main">
<div id="top5guild">
<?PHP include 'pages/top5_guild.php';?>
</div>
<div id="top5rank">
<?PHP include 'pages/top5.php';?>
</div>
<input type="button" onclick="changetop5()" value="Wechseln"><br><br>
<a href="index.php?s=rankings">>> Komplette Rangliste</a>
</div>
<div id="sidebar_footer"></div>
</div>
<div class="right">
<a href="index.php?s=download"><div id="downloadbtn"></div></a>
<div class="placeholder"></div>
<a href="http://deliciouse2.bplaced.net/"><div id="communitybtn"></div></a>
<div class="placeholder"></div>
<div id="sidebar_top">Serverstatus</div>
<div id="sidebar_main">
<img class="reloadimg" src="img/ajax-loader.gif"/>
<?PHP include 'inc/statusbar.inc.php';?>
<div class="placeholder"></div>
<input type="button" value="Aktualisieren" onclick="reloadstatus()"/>
</div>
<div id="sidebar_footer"></div>
<div id="sidebar_top">Sonstiges</div>
<div id="sidebar_main">
<center><div id="container"><a href="http://www.macromedia.com/go/getflashplayer"></a></div>
<script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script><script type="text/javascript" src="http://www.shoutcheap.com/flashplayer/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://www.shoutcheap.com/flashplayer/player.swf","ply","200","20","1","#FFFFFF");
s1.addParam("allowfullscreen","false");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=http://212.83.56.146:6054/;stream.nsv&type=mp3&volume=8&autostart=true");
s1.write("container");
</script> </center>
<center><a href="www.gibs-nicht.de"><img src="images/twitter.png" width="60" height="50" title="Follow us on Twitter!"></a> <a href="http://www.youtube.com/channel/UCIpLYwlnic4coT3Ok7dCnVg?feature=mhee"><img src="images/youtube.png" width="60" height="50" title="Subscribe to our YouTube!"></a> <a href="https://www.facebook.com/Deliciouse2MT2"><img src="images/facebook.png" width="60" height="50" title="Like us on Facebook!"></a></center>
</div>
<div id="sidebar_footer"></div>
</div>
<?PHP
$includeDir = ".".DIRECTORY_SEPARATOR."pages".DIRECTORY_SEPARATO R;
$includeDefault = $includeDir."home.php";
if(isset($_GET['s']) && !empty($_GET['s']))
{
$_GET['s'] = str_replace("\0", '', $_GET['s']);
$includeFile = basename(realpath($includeDir.$_GET['s'].".php"));
$includePath = $includeDir.$includeFile;
if(!empty($includeFile) && file_exists($includePath))
{
include($includePath);
}
else
{
include('pages/404.php');
}
}
else
{
include($includeDefault);
}
?>
</div>
<div class="clear"></div>
<br>
<div id="footer">
<p>Copyright by <?PHP echo $serverSettings['titel']?>. All rights reserved. Website by DasKuchen</p>
</div>
<div id="flags">
<a href="?lang=de"><img src="./img/flags/de.png" alt="Deutsch"/></a>
<a href="?lang=en"><img src="./img/flags/us.png" alt="English"/></a>
</div>
<br />
</div>
<a href="http://www.topliste.****************/in/1001-deliciouse2-com.html" name="modal" style="position: fixed; bottom: 0; left: 0;"><img src="img/vote.png" border="0"></a>
<a href="./itemshop" name="modal" style="position: fixed; bottom: 0; right: 0;"><img src="img/itemshop.png" border="0"></a>
</body>
</html>








