Hey also hab mir mal versuch die Homepage zu machen nur bei Register
kommt das hier dann wie kann ich des ändern das da nicht mehr der ganze code
dran steht?

hier meine Configs
könnt ihr mir sagen was ich da ändern muss und ob ich die hamachi IP richtig eingetragen habe
MFG
DJTechno
kommt das hier dann wie kann ich des ändern das da nicht mehr der ganze code
dran steht?

hier meine Configs
<?php
$link = @mssql_connect("SEAN-PC\SQLEXPRESS", "sa", "") ;
$db = @mssql_select_db("CHARACTER_01_DBF");
?>
<?php
$link = @mssql_connect("SEAN-PC\SQLEXPRESS", "sa", "") or die ("Server is down!");
$db = @mssql_select_db('ACCOUNT_DBF') or die ("Accout table is missing!");
$b = '';
$mail = '';
?>
<?php
$link = @mssql_connect("SEAN-PC\SQLEXPRESS", "sa", "") or die ("Server is down!");
$db = @mssql_select_db('ACCOUNT_DBF') or die ("Account table is missing!");
$b = '';
$mail = '';
$query = mssql_query('SELECT * FROM [ACCOUNT_TBL_DETAIL]');
?>
<?php
$link = @mssql_connect("SEAN-PC\SQLEXPRESS", "sa", "") or die ("Server is down!");
$db = @mssql_select_db('CHARACTER_01_DBF') or die ("Character table is missing!");
$b = '';
$mail = '';
$query = mssql_query('SELECT * FROM [CHARACTER_TBL]');
?>
<?php
$link = @mssql_connect("SEAN-PC\SQLEXPRESS", "sa", "") or die ("Server is down!");
$db = @mssql_select_db('ACCOUNT_DBF') or die ("Account table is missing!");
$b = '';
$mail = '';
$query = mssql_query("SELECT * FROM [ACCOUNT_TBL_DETAIL] WHERE isuse = 'J' ");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Name : Hyper Flyff
Description: Welcome to Hyper Flyff.
Version : 1.0
Released : 20091004
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hyper Flyff</title>
<meta name="keywords" content="" />
<meta name="Gestured" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
<div id="menu">
<ul id="main">
<li class="current_page_item"><a href="index.php">Homepage</a></li>
<li><a href="Register.php">Register</a></li>
<li><a href="Downloads.php">Downloads</a></li>
<li><a href="Ranking.php">Ranking</a></li>
</ul>
</div>
<div id="logo">
<h1><a href="#"><span>Hyper Flyff</span></a></h1>
<p>Website done by Hyper Flyff</p>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li>
<h2>Server Stats</h2>
<ul>
<li>Exp: 30</li>
<li>Drop: 15</li>
<li>Penya: 100</li>
<li>Raining Event: X2 exp</li>
<li>Special Event: x2 Exp, Drop, Penya</li>
</ul>
</li>
<li>
<h2>Status</h2>
<ul>
<br><li>Account Server:
<?php
$online = @fsockopen("5.23.172.100", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>Login Server:
<?php
$online = @fsockopen("5.23.172.100", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>World Server:
<?php
$online = @fsockopen("5.23.172.100", 2101, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
</ul>
</li>
<li>
<h2>Server Specs</h2>
<ul>
<li>Cpu: AMD Dual Core 5000+</li>
<li>Ram: 4 GB DDR 800 Mhz</li>
<li>HDD: x2 750 Sata 2 Drives</li>
</ul>
</li>
</ul>
</div>
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title"><a href="#">Downloads are locate here!</a></h1>
<div class="entry">
<p>Client Files:
<li><a href="#">Here.</a></p>
<p>Patch Files:
<li><a href="#">Here.</a></p>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<div id="sidebar2" class="sidebar">
<ul>
<li>
<h2>Calendar</h2>
<div id="calendar_wrap">
<table summary="Calendar">
<caption>
October 2009
</caption>
<thead>
<tr>
<th abbr="Monday" scope="col" title="Monday">M</th>
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
<th abbr="Thursday" scope="col" title="Thursday">T</th>
<th abbr="Friday" scope="col" title="Friday">F</th>
<th abbr="Saturday" scope="col" title="Saturday">S</th>
<th abbr="Sunday" scope="col" title="Sunday">S</th>
</tr>
</thead>
<tfoot>
<tr>
<td abbr="September" colspan="3" id="prev"><a href="#" title="View posts for September 2009">« Sep</a></td>
<td class="pad"> </td>
<td colspan="3" id="next"> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>
<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>
<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td id="today">28</td>
</tr>
<tr>
<td>29</td>
<td>30</td>
<td>31</td>
<td class="pad" colspan="4"> </td>
</tr>
</tbody>
</table>
</div>
</li>
<li>
<h2>More Info</h2>
<ul><?php
require('./configs/t_account_conf.php');
echo 'Total Accounts: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_character_conf.php');
echo 'Total Characters: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_user_conf.php');
echo 'Users Online: ' . mssql_num_rows($query);
?>
</ul>
</li>
</ul>
</div>
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
<div id="footer">
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Name : Hyper Flyff
Description: Welcome to Hyper Flyff.
Version : 1.0
Released : 20091004
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>WorldofFlying</title>
<meta name="keywords" content="" />
<meta name="Gestured" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
<div id="menu">
<ul id="main">
<li class="current_page_item"><a href="index.php">Homepage</a></li>
<li><a href="Register.php">Register</a></li>
<li><a href="Downloads.php">Downloads</a></li>
<li><a href="Ranking.php">Ranking</a></li>
</ul>
</div>
<div id="logo">
<h1><a href="#"><span>Hyper Flyff</span></a></h1>
<p>Website done by Hyper Flyff</p>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li>
<h2>Server Stats</h2>
<ul>
<li>Exp: 30</li>
<li>Drop: 15</li>
<li>Penya: 100</li>
<li>Raining Event: X2 exp</li>
<li>Special Event: x2 Exp, Drop, Penya</li>
</ul>
</li>
<li>
<h2>Status</h2>
<ul>
<br><li>Account Server:
<?php
$online = @fsockopen("5.23.172.100", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>Login Server:
<?php
$online = @fsockopen("5.23.172.100", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>World Server:
<?php
$online = @fsockopen("5.23.172.100", 2101, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
</ul>
</li>
<li>
<h2>Server Specs</h2>
<ul>
<li>Cpu: AMD Dual Core 5000+</li>
<li>Ram: 4 GB DDR 800 Mhz</li>
<li>HDD: x2 750 Sata 2 Drives</li>
</ul>
</li>
</ul>
</div>
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title"><a href="#">Welcome to Our Website!</a></h1>
<p class="byline">Posted on October 28th, 2009 by PillPopper (Jason)</p>
<div class="entry">
<p><strong>Hyper Flyff</strong> Is a fun and enjoyable server. We try our hardest to make sure the you the players are satisfied with out service. We will be implenting a Donation Panel next week. Untill then please take screen shots of all transactions and we'll try our hardest to satisfy you.</p>
</div>
</div>
<div class="post">
<h2 class="title"><a href="#">Some Infomation About The Server</a></h2>
<p class="byline">Posted on October 28th, 2009 by PillPopper (Jason)</p>
<div class="entry">
<h3>Information</h3>
<blockquote>
<p>Here is some information regarding what server files, Admins, GM's, Dev's ect </p>
</blockquote>
<h3>Server Information</h3>
<ul>
<li>V11 Offical Server Files</li>
<li>PillPopper-Owner</li>
<li>Brendon-Admin</li>
<li>Adolf Hitler-Dev/Admin</li>
</ul>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<div id="sidebar2" class="sidebar">
<ul>
<li>
<h2>Calendar</h2>
<div id="calendar_wrap">
<table summary="Calendar">
<caption>
October 2009
</caption>
<thead>
<tr>
<th abbr="Monday" scope="col" title="Monday">M</th>
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
<th abbr="Thursday" scope="col" title="Thursday">T</th>
<th abbr="Friday" scope="col" title="Friday">F</th>
<th abbr="Saturday" scope="col" title="Saturday">S</th>
<th abbr="Sunday" scope="col" title="Sunday">S</th>
</tr>
</thead>
<tfoot>
<tr>
<td abbr="September" colspan="3" id="prev"><a href="#" title="View posts for September 2009">« Sep</a></td>
<td class="pad"> </td>
<td colspan="3" id="next"> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>
<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>
<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td id="today">28</td>
</tr>
<tr>
<td>29</td>
<td>30</td>
<td>31</td>
<td class="pad" colspan="4"> </td>
</tr>
</tbody>
</table>
</div>
</li>
<li>
<h2>More Info</h2>
<ul><?php
require('./configs/t_account_conf.php');
echo 'Total Accounts: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_character_conf.php');
echo 'Total Characters: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_user_conf.php');
echo 'Users Online: ' . mssql_num_rows($query);
?>
</ul>
</li>
</ul>
</div>
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
<div id="footer">
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Name : Hyper Flyff
Description: Welcome to Hyper Flyff.
Version : 1.0
Released : 20091004
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hyper Flyff</title>
<meta name="keywords" content="" />
<meta name="Gestured" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
<div id="menu">
<ul id="main">
<li class="current_page_item"><a href="index.php">Homepage</a></li>
<li><a href="Register.php">Register</a></li>
<li><a href="Downloads.php">Downloads</a></li>
<li><a href="Ranking.php">Ranking</a></li>
</ul>
</div>
<div id="logo">
<h1><a href="#"><span>Hyper Flyff</span></a></h1>
<p>Website done by Hyper Flyff</p>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li>
<h2>Server Stats</h2>
<ul>
<li>Exp: 30</li>
<li>Drop: 15</li>
<li>Penya: 100</li>
<li>Raining Event: X2 exp</li>
<li>Special Event: x2 Exp, Drop, Penya</li>
</ul>
</li>
<li>
<h2>Status</h2>
<ul>
<br><li>Account Server:
<?php
$online = @fsockopen("5.23.172.100", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>Login Server:
<?php
$online = @fsockopen("5.23.172.100", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>World Server:
<?php
$online = @fsockopen("5.23.172.100", 2101, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
</ul>
</li>
<li>
<h2>Server Specs</h2>
<ul>
<li>Cpu: AMD Dual Core 5000+</li>
<li>Ram: 4 GB DDR 800 Mhz</li>
<li>HDD: x2 750 Sata 2 Drives</li>
</ul>
</li>
</ul>
</div>
<!-- start content -->
<div id="content">
<div class="post">
<div class="entry">
<p><?php
function quetrabajo($job){
if ($job == '0'){
echo "Vagrant";
}
if ($job == '1'){
echo "Mercenary";
}
if ($job == '2'){
echo "Acrobat";
}
if ($job == '3'){
echo "Assist";
}
if ($job == '4'){
echo "Magician";
}
if ($job == '5'){
echo "Puppeter";
}
if ($job == '6'){
echo "Knight";
}
if ($job == '7'){
echo "Blade";
}
if ($job == '8'){
echo "Jester";
}
if ($job == '9'){
echo "Ranger";
}
if ($job == '10'){
echo "Ringmaster";
}
if ($job == '11'){
echo "billposter";
}
if ($job == '12'){
echo "Psykeeper";
}
if ($job == '13'){
echo "Elementor";
}
if ($job == '14'){
echo "Gatekeeper";
}
if ($job == '15'){
echo "Doppler";
}
if ($job == '16'){
echo "M-Knight";
}
if ($job == '17'){
echo "M-Blade";
}
if ($job == '18'){
echo "M-Jester";
}
if ($job == '19'){
echo "M-Ranger";
}
if ($job == '20'){
echo "M-Ringmaster";
}
if ($job == '21'){
echo "M-Billposter";
}
if ($job == '22'){
echo "M-Psykeeper";
}
if ($job == '23'){
echo "M-Elementor";
}
if ($job == '24'){
echo "H-Knight";
}
if ($job == '25'){
echo "H-Blade";
}
if ($job == '26'){
echo "H-Jester";
}
if ($job == '27'){
echo "H-Ranger";
}
if ($job == '28'){
echo "H-Ringmaster";
}
if ($job == '29'){
echo "H-Billposter";
}
if ($job == '30'){
echo "H-Psykeeper";
}
if ($job == '31'){
echo "H-Elementor";
}
}
$contadorn=1;
$contadorm=1;
$contadorh=1;
$normal = array();
$master = array();
$hero = array();
require('./configs/rank_conf.php');
if(!$link){
echo 'configuracion incorrecta';
}else{
if(!db){
echo ' la base de datos no existe';
}else{
$sql = "SELECT * FROM CHARACTER_TBL ORDER BY m_nLevel DESC";
$result = mssql_query($sql);
while($consulta = mssql_fetch_array($result)) {
if($consulta['m_nJob']<=15){
$normal[$contadorn]=$consulta['m_szName'];
$normal[$contadorn+1]=$consulta['m_nLevel'];
$normal[$contadorn+2]=$consulta['m_nJob'];
$contadorn= $contadorn+3;
}else{
if($consulta['m_nJob']<=15){
$master[$contadorm]=$consulta['m_szName'];
$master[$contadorm+1]= $consulta['m_nLevel'];
$master[$contadorm+2]=$consulta['m_nJob'];
$contadorm= $contadorm+3;
}else{
$hero[$contadorh]=$consulta['m_szName'];
$hero[$contadorh+1]=$consulta['m_nLevel'];
$hero[$contadorh+2]=$consulta['m_nJob'];
$contadorh= $contadorh+3;
}
}
}
//empezamos a contar los Masters
echo '<div align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0";"><tr>';
echo '<td width="37%" style="padding-left:12px;"><b><u>Username</td>';
echo '<td width="16%" style="padding-left:12px;"><b><u>Level</td>';
echo '<td width="47%" style="padding-left:12px;"><b><u>Job</u></b></td>';
echo'</tr>';
echo'<tr>';
for($i=1;$i<$contadorm;$i=$i+1){
echo '<td style="padding-left:12px;">';
if($i>1 and $i%3==0){
quetrabajo($master[$i]);
echo "</td></tr><tr>";
}else{
echo $master[$i]."</td>";
}
}
//acabamos
//empezamos a contar los heroes
for($i=1;$i<$contadorh;$i=$i+1){
echo '<td style="padding-left:12px;">';
if($i>1 and $i%3==0){
quetrabajo($hero[$i]);
echo "</td></tr><tr>";
}else{
echo $hero[$i]."</td>";
}
}
//acabamos
//empezamos a contar los Masters
for($i=1;$i<$contadorn;$i=$i+1){
echo '<td style="padding-left:12px;">';
if($i>1 and $i%3==0){
quetrabajo($normal[$i]);
echo "</td></tr><tr>";
}else{
echo $normal[$i]."</td>";
}
}
echo '</tr>';
//acabamos
}
}
mssql_close();
?>
<tr><td></td><td><br><br><div align="center" style="font-size:12;font-color:#666;"></div></td></tr></table></div></p>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<div id="sidebar2" class="sidebar">
<ul>
<li>
<h2>Calendar</h2>
<div id="calendar_wrap">
<table summary="Calendar">
<caption>
October 2009
</caption>
<thead>
<tr>
<th abbr="Monday" scope="col" title="Monday">M</th>
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
<th abbr="Thursday" scope="col" title="Thursday">T</th>
<th abbr="Friday" scope="col" title="Friday">F</th>
<th abbr="Saturday" scope="col" title="Saturday">S</th>
<th abbr="Sunday" scope="col" title="Sunday">S</th>
</tr>
</thead>
<tfoot>
<tr>
<td abbr="September" colspan="3" id="prev"><a href="#" title="View posts for September 2009">« Sep</a></td>
<td class="pad"> </td>
<td colspan="3" id="next"> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>
<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>
<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td id="today">28</td>
</tr>
<tr>
<td>29</td>
<td>30</td>
<td>31</td>
<td class="pad" colspan="4"> </td>
</tr>
</tbody>
</table>
</div>
</li>
<li>
<h2>More Info</h2>
<ul><?php
require('./configs/t_account_conf.php');
echo 'Total Accounts: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_character_conf.php');
echo 'Total Characters: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_user_conf.php');
echo 'Users Online: ' . mssql_num_rows($query);
?>
</ul>
</li>
</ul>
</div>
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
<div id="footer">
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Name : Hyper Flyff
Description: Welcome to Hyper Flyff.
Version : 1.0
Released : 20091004
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hyper Flyff</title>
<meta name="keywords" content="" />
<meta name="Gestured" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<!-- start header -->
<div id="header">
<div id="menu">
<ul id="main">
<li class="current_page_item"><a href="index.php">Homepage</a></li>
<li><a href="Register.php">Register</a></li>
<li><a href="Downloads.php">Downloads</a></li>
<li><a href="Ranking.php">Ranking</a></li>
</ul>
</div>
<div id="logo">
<h1><a href="#"><span>Hyper Flyff</span></a></h1>
<p>Website done by Hyper Flyff</p>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<div id="sidebar1" class="sidebar">
<ul>
<li>
<h2>Server Stats</h2>
<ul>
<li>Exp: 30</li>
<li>Drop: 15</li>
<li>Penya: 100</li>
<li>Raining Event: X2 exp</li>
<li>Special Event: x2 Exp, Drop, Penya</li>
</ul>
</li>
<li>
<h2>Status</h2>
<ul>
<br><li>Account Server:
<?php
$online = @fsockopen("5.23.172.100", 12001, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>Login Server:
<?php
$online = @fsockopen("5.23.172.100", 28000, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
<br><li>World Server:
<?php
$online = @fsockopen("5.23.172.100", 2101, $errno, $errstr, 1);
if($online >= 1) {
echo '<b><font color=#00FF00>Online</font></b>';
}
else {
echo '<b><font color=#FF0000>Offline</font></b>';
}
?></li>
</ul>
</li>
<li>
<h2>Server Specs</h2>
<ul>
<li>Cpu: AMD Dual Core 5000+</li>
<li>Ram: 4 GB DDR 800 Mhz</li>
<li>HDD: x2 750 Sata 2 Drives</li>
</ul>
</li>
</ul>
</div>
<!-- start content -->
<div id="content">
<div class="post">
<div class="entry">
<p><?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('nForceIsGay' . $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, '@birthday', $b, SQLVARCHAR, false, false, 120);
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="blue">Register Successfull.</font><br /><br />';
}
else {
echo '<font color="red">User already Exist.</font><br /><br />';
}
}
mssql_close();
}
echo '<form action="register.php" 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>';
?></p>
</div>
</div>
</div>
<!-- end content -->
<!-- start sidebars -->
<div id="sidebar2" class="sidebar">
<ul>
<li>
<h2>Calendar</h2>
<div id="calendar_wrap">
<table summary="Calendar">
<caption>
October 2009
</caption>
<thead>
<tr>
<th abbr="Monday" scope="col" title="Monday">M</th>
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
<th abbr="Thursday" scope="col" title="Thursday">T</th>
<th abbr="Friday" scope="col" title="Friday">F</th>
<th abbr="Saturday" scope="col" title="Saturday">S</th>
<th abbr="Sunday" scope="col" title="Sunday">S</th>
</tr>
</thead>
<tfoot>
<tr>
<td abbr="September" colspan="3" id="prev"><a href="#" title="View posts for September 2009">« Sep</a></td>
<td class="pad"> </td>
<td colspan="3" id="next"> </td>
</tr>
</tfoot>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>
<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>
<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td id="today">28</td>
</tr>
<tr>
<td>29</td>
<td>30</td>
<td>31</td>
<td class="pad" colspan="4"> </td>
</tr>
</tbody>
</table>
</div>
</li>
<li>
<h2>More Info</h2>
<ul><?php
require('./configs/t_account_conf.php');
echo 'Total Accounts: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_character_conf.php');
echo 'Total Characters: ' . mssql_num_rows($query);
?>
<br>
<?php
require('./configs/t_user_conf.php');
echo 'Users Online: ' . mssql_num_rows($query);
?>
</ul>
</li>
</ul>
</div>
<!-- end sidebars -->
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</div>
<div id="footer">
</div>
</body>
</html>
könnt ihr mir sagen was ich da ändern muss und ob ich die hamachi IP richtig eingetragen habe
MFG
DJTechno