<?php
$hostname = "localhost";
$db_user = "root";
$db_password = "your password";
$database = "flyff";
$db_table = "user";
$db_table2 = "usergameinfo";
$db = mysql_connect($hostname, $db_user, $db_password);
mysql_select_db($database,$db);
?>
__________________________________________________ _______________
<!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>FlyForJoke :: Register</title>
<link rel="stylesheet" type="text/css" href="default.css" />
<center>
<div class="laufschrift"><font size="4px"><marquee><font color="white">Willkommen auf der Homepage von ...</font color></marquee></font size>
<img src="img/lauftex" ></center>
<center>
<img src="img/Header/header.png" >
</center>
</head>
<body>
<div class="main">
<br clear="all" />
<!-- Navigation -->
<div class="navigation">
<a href="index.php"><img src="img/Buttons/Home.png" alt="News" /></a>
<a href="forum.php" target="_blank"><img src="img/Buttons/Forum.png" alt="Forum" /></a>
<a href="register.php"><img src="img/Buttons/Register.png" alt="Register" /></a>
<a href="ranking.php"><img src="img/Buttons/Ranking.png" alt="Ranking" /></a>
<a href="team.php"><img src="img/Buttons/Team.png" alt="Team" /></a>
<a href="chat.php"><img src="img/Buttons/Chat.png" alt="Chat" /></a>
<a href="download.php"><img src="img/Buttons/Downloads.png" alt="Downloads" /></a>
</div>
<!-- Navigation Ende --> <br><!-- Left Side -->
<br>
<br>
<div class="" >
<img src="img/" >
<br>
<br>
<div class="linke_seite">
<!-- Serverrates -->
<img src="img/Serverrates.png" alt="Serverrates" />
<div class="panel_box01" >
<center>
<legend> <font color="green"></font> </legend>
<table border="0" width="179">
<tbody><tr>
<th scope="row"><div align="left">Exp:</div></th>
<td><div align="right"> x50</div></td>
</tr>
<tr>
<th scope="row"><div align="left">Drop:</div></th>
<td><div align="right"> x120</div></td>
</tr>
<tr>
<th scope="row"><div align="left">Penya:</div></th>
<td><div align="right"> x180</div></td></center>
</tr>
<tr>
<th scope="row"><div align="left">Regen Event:</div></th>
<td><div align="right"> x2 EXP</div></td>
</tr>
</tbody></table>
______________________
<center>
<legend> <font color="green"></font> </legend>
<table border="0" width="179">
<tbody><tr>
<th scope="row"><div align="left">User Online:</div></th>
<td><div align="right"><src="configs/online.php"></div></td>
</tr>
<tr>
<th scope="row"><div align="left">Accounts:</div></th>
<td><div align="right"><src="configs/acc.php"></div></td>
</tr>
<tr>
<th scope="row"><div align="left">Character:</div></th>
<td><div align="right"><src="configs/char.php"></div></td></center>
</tr>
</tbody></table>
______________________<br>
<h1>Vote</h1>
<!-- topofgames.com -->
<a href="http://topofgames.com/index.php?do=votes&id=21834"><img border="0" src="http://pics.livejournal.com/samaritanyn/pic/0006xbhs.gif" alt="topofgames.com" /></a>
<!-- /topofgames.com -->
<br>
<br>
<br>
<center>
</div>
<div class="panel_box01_1" >
<img src="img/panel_box01_1.png" />
</div>
<!-- Serverrates Ende --> <!-- Support -->
<center>
<img src="img/support.png" alt="Support" />
<div class="panel_box02">
<center>
<legend> <font color="green"></font> </legend>
<table border="0" width="179">
<tbody><tr>
<th scope="row"><div align="left">Skype:</div></th>
<td><div align="right">.......</div></div></td>
</tr>
<tr>
<th scope="row"><div align="left">E-Mail:</div></th>
<td><div align="right">
[email protected]</div></td>
</tr>
</tbody></table>
<br>
<br>
<br>
</div>
<div class="panel_box02_2" >
<img src="img/panel_box02_2.png" />
</div>
<!-- Support Ende -->
</div>
<!-- Linke Seite Ende --> <!-- Rechte Seite -->
<div class="rechte_seite" >
<!-- Server Status -->
<img src="img/Serverstatus.png" alt="Serverstatus" />
<div class="panel_box03" >
<center>
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<b><br>- Account Server -<br></b>
<?php
$online = @fsockopen("5.188.154.101", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<img src="img/Buttons/Online.png">';
}
else {
echo '<img src="img/Buttons/Offline.png">';
}
?> <br />
<b><br>- Login Server -<br></b>
<?php
$online = @fsockopen("5.188.154.101", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<img src="img/Buttons/online.png">';
}
else {
echo '<img src="img/Buttons/offline.png">';
}
?><br>
<b><br>- PopCrank 1-1 -<br><b>
<?php
$online = @fsockopen("5.188.154.101", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<img src="img/Buttons/online.png">';
}
else {
echo '<img src="img/Buttons/offline.png">';
}
?><br>
<b><br>- World Server -<br></b>
<?php
$online = @fsockopen("5.188.154.101", 2101, $errno, $errstr, 1);
if($online >= 1) {
echo '<img src="img/Buttons/online.png">';
}
else {
echo '<img src="img/Buttons/offline.png">';
}
?>
<br>
<br>
</div>
<div class="panel_box03_3" >
<img src="img/panel_box03_3" />
</div>
<br>
<br>
<!-- Server Status Ende -->
<center>
<?php
$ip=GetEnv("REMOTE_ADDR");
echo "Deine Ip: $ip"
?><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a href="http://www.****************/" ><img src="img/Buttons/sponsor.png" alt="Mmorpg-Core" /></a>
<br>
<a href="http://www.elitepvpers.com/forum/" ><img src="img/Buttons/sponsor01.png" alt="Elite PVP" /></a>
<br>
<a href="http://www.************/" ><img src="img/Buttons/sponsor02.png" alt="********" /></a>
<br>
</div>
<br>
<br>
<br>
<!-- Rechte Seite Ende --> <!-- Mitte -->
<div class="mittelfeld" >
<div class="content">
<div class="panel_main">
<h1><u>Register:</u></h1>
<center>
<center>
<?php
require('./configs/reg_conf.php');
function doesUsernameExist($name){
$exit = FALSE;
$result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'");
if (mssql_num_rows($result) != 0){
$exit = TRUE;
}
return $exit;
}
if(isset($_POST['submit'])){
$user = preg_replace ("[^A-Za-z0-9]", "", $_POST['username']);
$pass = preg_replace ("[^A-Za-z0-9]", "", $_POST['password']);
if($_POST['username'] == ""){
echo '<font color="red">Enter a user.</font><br /><br />';
}
else if($_POST['password'] == ""){
echo '<font color="red">Enter a password.</font><br /><br />';
}
else if ((strlen($_POST['username']) > 16) || (strlen($_POST['username']) < 3)){
echo '<font color="red">The user should be 3 to 16 characters.</font><br /><br />';
}
else if ((strlen($_POST['password']) > 16) || (strlen($_POST['password']) < 3)){
echo '<font color="red">The password should be 3 to 16 characters.</font><br /><br />';
}
else if($_POST['username'] != $user){
echo '<font color="red">User with invalid characters.</font><br /><br />';
}
else if($_POST['password'] != $pass){
echo '<font color="red">Password with invalid characters.</font><br /><br />';
}
else {
$pass = md5('kikugalanet' . $pass);
if(!doesUsernameExist($user)){
$stmt = mssql_init('webCreateAcc', $link);
mssql_bind($stmt, '@account', $user, SQLVARCHAR, false, false, 15);
mssql_bind($stmt, '@password', $pass, SQLVARCHAR, false, false, 36);
mssql_bind($stmt, '@email', $mail, SQLVARCHAR, false, false, 120);
mssql_execute($stmt) or die ("Something is wrong on the execution");
mssql_free_statement($stmt);
echo '<font color="Green">Register Successfull.</font><br /><br />';
}
else {
echo '<font color="red">User already Exist.</font><br /><br />';
}
}
mssql_close();
}
echo '<form action="#" method="post">';
echo 'Username: <input type="text" name="username" /><br />';
echo 'Password: <input type="password" name="password" /><br />';
echo '<input type="submit" name="submit" value="Register" />';
echo '</form>';
?>
</center>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<div class="panel_main_1" >
<img src="img/" />
</div>
</div>
</div>
</div>
<!-- Mitte Ende -->
<!-- Footer -->
<br>
<div class="footer">
<center>
<h1><font size="3px"></font>Copyright © <a href="http://DarkNetwork.000a.de">DarkNetwork</a></font size></h1> <br>
</div>
<!-- Footer Ende -->
</div>
</body>
</html>
Ich hoffe das hilft euch mein problem zu finden :S
mfg Dpuzik