bräuchte diesmal eure Hilfe.
Da wir Morgen starten möchten brauchen wir so schnell es geht eure Hilfe.
Denn immer bei der Registration kommt die Fehlermeldung:
Index.php
HTML Code:
<?PHP ERROR_REPORTING(E_ALL); 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"); echo '<?xml version="1.0"?>'; if (!isset($_SESSION['user_admin'])) { $_SESSION['user_admin'] = -1; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- HOMEPAGE CREATED BY MUFKEKSY & DASKUCHEN --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <link href="style.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script> <script src="status.js" type="text/javascript"></script> <title>Vices2 Homepage</title> </head> <body> <!-- LOGO --> <div id="logo"></div> <!-- NAVIGATION--> <div id="navigation"> <ul> <li><a href="index.php">Startseite</a></li> <li><a href="index.php?s=register">Registrierung</a></li> <li><a href="index.php?s=downloads">Downloads</a></li> <li><a href="index.php?s=rankings">Rangliste</a></li> <li><a href="index.php?s=login">User Panel</a></li> <li><a href="index.php?s=vote">Vote 4 Coins</a></li> <li><a href="./Board">Community</a></li> </ul> </div> <!-- MAIN --> <div id="main"> <div id="main_main"> <!-- CONTENT --> <div id="content"> <?PHP $includeDir = ".".DIRECTORY_SEPARATOR."pages".DIRECTORY_SEPARATOR; $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($includeDefault); } } else { include($includeDefault); } ?> </div> <!-- SIDEBAR --> <div id="sidebar"> <div id="sb_top">Loginbereich</div> <div id="sb_main"><?PHP include 'inc/loginbar.inc.php';?></div> <div id="sb_foot"></div> <div id="sb_top">Top Spieler</div> <div id="sb_main"><?PHP include 'pages/top5.php';?></div> <div id="sb_foot"></div> <div id="sb_top">Serverstatistik</div> <div id="sb_main"><?PHP include 'pages/status.php';?></div> <div id="sb_foot"></div> </div> </div> <!-- FOOTER --> <div id="footer">Copyright © by <a href="#">Servername2</a>. Coded and Designed by <a href="http://www.elitepvpers.com/forum/members/979044-mufkeksy.html">mufkeksy</a> & <a href="http://www.elitepvpers.com/forum/members/2852213-daskuchen.html">DasKuchen</a>.</div> </div> </body> </html> <!-- HOMEPAGE CREATED BY MUFKEKSY & DASKUCHEN -->
HTML Code:
<div id="con_top">Registration</div> <div id="con_main"> <?PHP $regCoins = 0; // Startcoins $laufZeit = 365; //Tage autoloot,safebox $calcLZ = (60*60*24)*365; $expireStamp = time()+$calcLZ; $expireDate = date("Y-m-d H:i:s",$expireStamp); if($serverSettings['register_on'] && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0) { if(isset($_POST['submit']) && $_POST['submit']=="registrieren") { if((checkAnum($_POST['account']) && strlen($_POST['account'])>=8 && strlen($_POST['account'])<=16) && checkAnum($_POST['pass']) && strlen($_POST['pass'])>=8 && strlen($_POST['pass2'])<=16 && !empty($_POST['pass2']) && (checkName($_POST['uname']) && strlen($_POST['uname'])>=3 && strlen($_POST['uname'])<=20) && $_POST['pass']==$_POST['pass2'] && checkMail($_POST['email']) && strlen($_POST['email'])<=40 && $_POST['captcha']==$_SESSION['captcha_id'] && $_POST['email']==$_POST['email2'] && (checkAnum($_POST['sicherheitsa']) && strlen($_POST['sicherheitsa'])>=3 && strlen($_POST['sicherheitsa'])<=16) && checkInt($_POST['sicherheitsf']) && (checkAnum($_POST['loeschcode']) && strlen($_POST['loeschcode'])==7)) { $hashSF = md5($_POST['sicherheitsa']); $sfNum = mysql_real_escape_string($_POST['sicherheitsf']); $lcode = mysql_real_escape_string($_POST['loeschcode']); $zuFall = rand(99999,999999999); $userpass=mysql_real_escape_string($_POST['pass']); $aktivHash = ($serverSettings['mail_activation']) ? md5($zuFall):''; $accountStatus = ($serverSettings['mail_activation']) ? 'BLOCK':'OK'; $sqlCmd = "INSERT INTO account.account (login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert) VALUES ('".$_POST['account']."',PASSWORD('".$userpass."'),'".mysql_real_escape_string($_POST['uname'])."','".mysql_real_escape_string($_POST['email'])."','".$lcode."','".$sfNum."','".$hashSF."','".$sqlZeit."','".$accountStatus."','".$regCoins."','".$expireDate."','".$expireDate."','".$aktivHash."')"; $sqlQry = mysql_query($sqlCmd,$sqlServ); if($sqlQry) { $absender = $serverSettings['titel']." Registration"; $email = $serverSettings['reg_mail']; $empfaenger = $_POST['email']; $mail_body = "Hallo ".$_POST['uname'].", deine Registration auf ".$serverSettings['titel']." war erfolgreich! Um auch auf dem Server spielen zu können, musst du deinen Account aktivieren. Das kannst du über den folgenden Link tun: ".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash." Deine Daten sind: Account: ".$_POST['account']." Passwort: ".$userpass." Löschcode: ".$lcode." Sicherheitsfrage: ".$sFrage[$sfNum]." Antwort: ".$_POST['sicherheitsa']." Viel Spaß beim Spielen, Dein ".$serverSettings['titel']."-Team Diese E-Mail wurde automatisch generiert. Bitte keine Antworten an diese Adresse schicken."; $titel = "Registrierung auf ".$serverSettings['titel']; $header = "X-Priority: 3\n"; $header .= "X-Mailer: ".$serverSettings['titel']." Homepage Mailer\n"; $header .= "MIME-Version: 1.0\n"; $header .= "From: ".$absender." <".$serverSettings['reg_mail'].">\n"; $header .= "Reply-To: ".$serverSettings['reg_mail']."\n"; $header .= "Content-Type: text/plain; charset=iso-8859-1\n"; if($serverSettings['mail_activation']) { mail($empfaenger, $titel, $mail_body, $header); echo'<p class="erfolg">Account erfolgreich angelegt. Bitte überprüfen Sie Ihr Postfach, um die Registrierung zu bestätigen.</p><br>'; } else { echo'<p class="erfolg">Account erfolgreich angelegt. Sie können sich nun anmelden.</p><br>'; } } else { echo'<p class="fehler">Registrierung fehlgeschlagen: Der Account existiert bereits.</p><br>'; } } else { echo'<p class="fehler">Registrierung fehlgeschlagen: bitte alle Felder richtig angeben</p><br>'; } } ?> <p>Alle Felder sind Pflichtfelder und müssen ausgefüllt werden.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>Der Account wird per E-Mail aktiviert, also eine richtige E-Mail eingeben!</b>'; } ?></p> <form action="index.php?s=register" method="POST"> <table> <tr> <th class="topLine">Account:</th> <td class="tdunkel"><input type="text" class="bar" name="account" maxlength="16" size="16"/></td> </tr> <tr> <th class="topLine">Name:</th> <td class="thell"><input type="text" name="uname" class="bar" maxlength="16" size="16"/></td> </tr> <tr> <th class="topLine">Password:</th> <td class="tdunkel"><input type="password" name="pass" class="bar" maxlength="16" size="16"/></td> </tr> <tr> <th class="topLine">Password wiederholen:</th> <td class="thell"><input type="password" name="pass2" class="bar" maxlength="16" size="16"/></td> </tr> <tr> <th class="topLine">E-Mail:</th> <td class="tdunkel"><input type="text" name="email" class="bar" maxlength="50" size="25"/></td> </tr> <tr> <th class="topLine">E-Mail wiederholen:</th> <td class="thell"><input type="text" name="email2" class="bar" maxlength="50" size="25"/></td> </tr> <tr> <th class="topLine">Löschcode:</th> <td class="tdunkel"><input type="text" name="loeschcode" class="bar" maxlength="7" size="7"/></td> </tr> <tr> <th class="topLine">Sicherheitsfrage:</th> <td class="thell"> <select name="sicherheitsf"> <?PHP foreach($sFrage AS $fragew => $frage) { echo'<option value="'.$fragew.'">'.$frage.'</option>'; } ?> </select> <input type="text" name="sicherheitsa" class="bar" maxlength="16" size="16"/> </td> </tr> <tr> <th class="topLine">Captcha: </th> <td class="tdunkel"><input type="text" class="bar" name="captcha" maxlength="5" size="5"/><img src="./captcha/captcha.php" title="Captcha"/></td> </tr> <tr> <th class="topLine" style="text-align:center;" colspan="2"><input class="btn" type="submit" name="submit" value="registrieren"/> • <input type="reset" class="btn" value="zurücksetzen"/></th> </tr> </table> </form> <?PHP } else { echo'<p class="meldung">Die Registration ist deaktiviert oder Sie sind bereits angemeldet. Es kann kein weiterer Account erstellt werden.</p>'; } ?> </div><div id="con_foot"></div>
Datenbank & Homepag hat CHMOD 777 Rechte






