Habe 1 Fragen :
Hab bissle die index.php bearbeitet und jetzt siehts so aus :
wie beheb ich das?
inhalt :
klick:
Code:
<?PHP 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_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("Es tut uns leid, es konnt keine Verbindung zum Server hergestellt werden."); } 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 xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>x !</title> <link href="main.css" rel="stylesheet" type="text/css"> </head> <body> <br /> <div class="head header"> <div class="logo"> <img src="img/logo.png" width="280" height="92" /></div> </div> <div class="head navigation"> <ul> <li><a href="index.php" class="home">Home</a></li> <li><a href="index.php?s=rankings" class="ranking">Rangliste</a></li> <li><a href="index.php?s=register" class="register" >Registration</a></li> <li><a href="index.php?s=downloads" class="ranking">Downloads</a></li> <li><a href="http:/S/board.white-lotus.eu/" class="home">Forum</a></li> </ul> </div> <div class="head status"> <div class="statustext"> <div style="float:left;"> <?PHP if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) { ?> <a href="index.php?s=logout" class="sb-link"> Ausloggen</a> / <a href="index.php?s=charaktere" class="sb-link"> Charaktere</a> / <a href="index.php?s=itemshop"class="sb-link"> Itemshop</a> / <a href="index.php?s=spenden"class="sb-link"> Spenden</a> / <a href="index.php?s=passwort" class="sb-link"> Daten ändern</a> <?PHP if($_SESSION['user_admin']>0) { echo' / <a href="index.php?s=admin" class="sb-link"> Admin</a>'; } ?> <?PHP } else { ?> <form id="userInfo" action="index.php?s=login" method="POST"> <input type="text" name="userid" onFocus="if(this.value=='Account ID') this.value='';" onBlur="if(this.value=='') this.value='Account ID';" value="Account ID" class="txt"> <input type="password" name="userpass" onFocus="if(this.value=='Account ID') this.value='';" onBlur="if(this.value=='') this.value='Account ID';" value="Account ID" class="txt"> <input class="btn" type="submit" name="submit" value="LOGIN"> </form> </div> <div style="float:right; margin-left:100px; padding-top:5px;"> <?php include ("status.php"); ?> </div> <?PHP } ?> </div> <br /><br /> <div id="main"> <img src="img/main_top.png" width="800" height="16" /> <br /> <div class="middle"> <?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"); } ?> </div> <center><font color="CCC"> Copyright 2012 by x, Design & Code by iKyroja .</font></center> <img src="img/main_bt.png" width="800" height="16" /></div><br /> </body> </html> <?PHP mysql_close(); ?>
es ist verschoben.
push