Eine Installation hatte ich garnicht ich hab alles über die einzelnen Dateien in Fillezilla bearbeitet könnte mir jemand vllt. die Config anpassen? (im Anhang) also z.b. wo was rein muss reinscheiben.
<?PHP
ERROR_REPORTING(E_ALL);
if(!file_exists('./inc/config.inc.php'))
{
header('Location: install.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_LOCALHOST, SQL_HP_ROOT, SQL_HP_123456);
$sqlServ = mysql_connect(SQL_LOCALHOST, SQL_ROOT, SQL_123456);
if(!is_resource($sqlServ) OR !is_resource($sqlHp)) {
exit("Verbindung zur Datenbank fehlgeschlagen: Abbruch");
}
require("./inc/head.inc.php");
echo '<?xml version="1.0"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Example-mt2 - Your Slogan</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="scripts/default.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.nivo.slider.js"></script>
</head>
<body>
<center>
<div id="navi"><ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php?s=rankings">Rangliste</a></li>
<li><a href="index.php?s=itemshop">Itemshop</a></li>
<li><a href="index.php?s=news">News</a></li>
<li><a href="index.php?s=downloads">Downloads</a></li>
<li><a href="index.php?s=team">Team</a></li>
<li><a href="./board" class="last">Forum</a></li>
</ul>
</div>
<img src="img/header.png" width="1000" height="200">
<div id="main">
<div id="sidebar-right" class="sidebar">
<a href="index.php?s=download"><div id="dl"></div></a>
<br>
<a href="./board"><div id="comm"></div></a>
<br>
<div class="sb-ui sb-title">
<span>Top10 Player</span>
</div>
<div class="sb-ui sb-cont">
<div class=" sb-middle">
<?php
include ("top5.php");
?>
<div class="sb-tren"></div>
<div class="info">
<center>
<a href="index.php?s=rankings">
>Komplette Rangliste <
</a>
</center>
</div>
</div></div>
<div class="sb-ui sb-bt"></div>
</div>
<div id="sidebar-left" class="sidebar">
<div class="sb-ui sb-title">
<span>Users Panel</span>
</div>
<div class="sb-ui sb-cont">
<div class=" sb-middle">
<center>
<?PHP
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
?>
<table width="125%">
<tr>
<th class="tdunkel">Username:</th>
<td class="thell"> <?PHP echo $_SESSION['user_name']; ?></td>
</tr>
<tr>
<th width="43%" class="tdunkel">Coins:</th>
<td width="57%" class="thell"> <?PHP echo $_SESSION['user_coins']; ?>
</td>
</tr>
</table>
<br />
<b>User Navigation:</b>
<a href="index.php?s=charaktere">
<input type="submit" value="Charaktere" name="submit" class="button2">
</a>
<a href="index.php?s=itemshop">
<input type="submit" value="Itemshop" name="submit" class="button2">
</a>
<a href="index.php?s=spenden">
<input type="submit" value="Spenden" name="submit" class="button2">
</a>
<a href="index.php?s=passwort">
<input type="submit" value="Daten ändern" name="submit" class="button2">
</a>
<a href="index.php?s=logout">
<input type="submit" value="Ausloggen" name="submit" class="button2">
</a>
<?PHP
if($_SESSION['user_admin']>0) { echo'<a href="index.php?s=admin">
<input type="submit" value="Admin Panel" name="submit" class="button2"></a>'; }
?>
<?PHP
}
else {
?>
<center>
<form id="userInfo" action="index.php?s=login" method="POST">
<input class="txt" type="text" maxlength="16" size="16" name="userid" onFocus="if(this.value=='Username') this.value='';" onBlur="if(this.value=='') this.value='Username';" value="Username"><br />
<br />
<input class="txt" type="password" maxlength="16" size="16" name="userpass" onFocus="if(this.value=='Username') this.value='';" onBlur="if(this.value=='') this.value='Username';" value="Username"><br /><br>
<input type="submit" value="LOGIN" name="submit" class="button1"> <a href="index.php?s=register">
<input type="submit" value="REGISTER" name="submit" class="button1">
</a>
</form>
<?php
}
?>
</center>
<br>
</div></div>
<div class="sb-ui sb-bt"></div>
<br>
<div class="sb-ui sb-title">
<span>Server Status</span>
</div>
<div class="sb-ui sb-cont">
<div class=" sb-middle">
<?php
include ("status.php");
?>
<div class="info">
<center>
<?php
include('player_online.php');
?>
</center>
</div>
<div class="sb-tren"></div>
<center>
<a style="text-decoration:none;border-style:none;color:#ae1212;" target="_blank" href="http://www.schnelle-online.info/Atomuhr-Uhrzeit.html" id="soitime27535367848">Atomuhr</a>
<script type="text/javascript">
SOI = (typeof(SOI) != 'undefined') ? SOI : {};(SOI.ac21fs = SOI.ac21fs || []).push(function() {
(new SOI.DateTimeService("27535367848", "DE")).setHour2digits(false).appendTime(" Uhr").setWithWeekday(false).start();});
(function() {if (typeof(SOI.scrAc21) == "undefined") { SOI.scrAc21=document.createElement('script');SOI.s crAc21.type='text/javascript'; SOI.scrAc21.async=true;SOI.scrAc21.src=((document. location.protocol == 'https:') ? 'https://' : 'http://') + 'homepage-tools.schnelle-online.info/Homepage/atomicclock2_1.js';(document.getElementsByTagName( 'head')[0] || document.getElementsByTagName('body')[0]).appendChild(SOI.scrAc21);}})();
</script>
</center>
</div></div>
<div class="sb-ui sb-bt"></div>
<br>
<div class="sb-ui sb-title">
<span>Vote 4 Us</span>
</div>
<div class="sb-ui sb-cont">
<div class=" sb-middle">
<center><a href="http://www.topliste.****************/"><img src="./img/vote.png" alt="Metin2 Server Topliste" border="0" /></a></center>
</div></div>
<div class="sb-ui sb-bt"></div>
</div>
<div class="lbox_m">
<div id="wrapper">
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="http://www.elitepvpers.com/forum/images/1.jpg" alt="" title="Werde ein Teil der Communit!"/>
<img src="http://www.elitepvpers.com/forum/images/2.jpg" alt="" title="Gib alles!"/>
<img src="http://www.elitepvpers.com/forum/images/3.jpg" alt="" title="Nehm es selbst in die Hand!" />
</div>
<div id="htmlcaption" class="nivo-html-caption">CAPTATION</div>
</div>
</div>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>
</div><br><br>
<center>
<?PHP
if(isset($_GET['s']) && !empty($_GET['s']))
{
if(file_exists("./pages/".$_GET['s'].".php"))
{
include("./pages/".$_GET['s'].".php");
}
else {
include("./pages/home.php");
}
} else
{
include("./pages/home.php");
}
?>
</center>
</div></center>
<center><br>
<div id="bg_bt">
</div>
<div id="footer">
<center>
Copyright by <a href="index.php">CurrantMt2</a> 2011. All rights reserved.
Designed by <a href="http://www.elitepvpers.com/forum/members/2731930-yakuzo-.html">YaKuZo'</a>& <a href="http://www.elitepvpers.com/forum/members/2274070-terrortom.html">TerrorTom</a>.<a> </a><a href="index.php">Home</a> | <a href="./board">Forum</a> |
<font color="#009900"> <a href="http://www.topliste.****************/">Vote 4 Us</a></font>
</center>
</div>
</center></body>
</html>
<?PHP
mysql_close();
?>
MFG