Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

site

Initiate Mage
Joined
Apr 5, 2009
Messages
3
Reaction score
0
just an edit of register page.





PHP:
<!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=iso-8859-1" />
<title>Infinite Flyff Registration </title>
<?php
require('config.php');
?>

<style type="text/css">
<!--
body,td,th {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color:white;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #666666;
	background-image: url(03_1024.jpg);
}
.style1 {
	font-size: 16px;
	font-weight: bold;
}
.style2 {
	font-size: 14px;
	font-weight: bold;
}
.style3 {	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-weight: bold;
}
-->
</style></head>

<body>
<div align="center">
  <table width="1000" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="10"> </td>
    </tr>
    <tr>
      <td colspan="10"><div align="center" class="style1">Infinite Flyff registration </div></td>
    </tr>
    <tr>
      <td colspan="10"><div align="center"><strong> </strong></div></td>
    </tr>
    <tr>
      <td colspan="10"><div align="center"> </div></td>
    </tr>
    <tr>
      <td colspan="10">  </td>
    </tr>
    
    <tr>
      <td colspan="3"><div align="center"></div></td>
      <td colspan="4" rowspan="15" valign="top"><div align="center">
        <p align="center" class="style3"><span class="b01"><strong>Create in-game Account </strong></span><br />
          </p>
          <form action="?op=register" method="post">
            <table width="258" border="0" align="center">
              <tr>
                <td width="107" height="20" class="b01"><strong>Login:</strong></td>
                <td width="141"><label>
                  <input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
                </label></td>
              </tr>
              <tr>
                <td height="25" class="b01"><strong>Password:</strong></td>
                <td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
              </tr>
              <tr>
                <td height="24" class="b01"><strong>Repeat Password: </strong></td>
                <td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
              </tr>
            </table>
            <p align="center">
              <input name="submit" type="submit" class="liteoption" value="Create Account" />
            </p>
          </form>
          <div align="center">
            <?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('<strong>please fill in all fields!<BR></strong>');
}
else {
$user = $_POST['user'];
$pass = md5('kikugalanet' .$_POST['pass1']. '');
}
$pass2 = md5('kikugalanet' .$_POST['pass2']. '');
if(exi($user) != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('<strong>Passwords dont match! please double check </strong>');
}
$nww = nw($user, $pass); 
if ($nww){
echo("<p class='b01'><strong>Registration Complete! you can now login :)</strong></p>");
}else  {
echo("<p class='b01'><strong>Registration Failed! :( </strong></p>");
}}
?>
          </div>
          <p> </p>
        </div></td>
      <td width="141"> </td>
      <td width="10"> </td>
      <td width="128"> </td>
    </tr>
    <tr>
      <td colspan="3"><div align="center" class="style2">Server Status </div></td>
      <td colspan="3"><div align="center"><span class="style2">Server INFO </span></div></td>
    </tr>
    <tr>
      <td width="145"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
    
    <!-- To remove the "yo momma" server status message, delete line 131-146 -->
    
      <td><div align="right"><strong>YO MOMMA</strong></div></td>
      <td width="6"> </td>
      <td width="136" height="1"><?php
				$fp = @fsockopen("127.0.0.", 23000, $errno, $errstr, 1);
if($fp >= 1){ 
echo '<b><font color=00FF00>Online</font></b>';}
else{ echo '<b><font color=FF0000>Offline</font></b>'; } 
			?></td>
       <tr>
      <td><div align="right"><strong>Login Server </strong></div></td>
      <td width="6"> </td>
      <td width="136" height="1"><?php
				$fp = @fsockopen("127.0.0.1", 23000, $errno, $errstr, 1);
if($fp >= 1){ 
echo '<b><font color=00FF00>Online</font></b>';}
else{ echo '<b><font color=FF0000>Offline</font></b>'; } 
			?></td>
      <td><div align="right"><strong>Total Accounts </strong></div></td>
      <td> </td>
      <td height="1"><?php
			
			$tcount = mysql_query("SELECT * FROM accounts");
			echo mysql_num_rows($tcount);
			?></td>
    </tr>
    <tr>
      <td><div align="right"><strong>Char Server </strong></div></td>
      <td> </td>
      <td><?php
				$fp = @fsockopen("127.0.0.1", 28000, $errno, $errstr, 1);
if($fp >= 1){ 
echo '<b><font color=00FF00>Online</font></b>';}
else{ echo '<b><font color=FF0000>Offline</font></b>'; } 
			?></td>
      <td><div align="right"><strong>Total Characters </strong></div></td>
      <td> </td>
      <td height="1"><?php
			$tchar = mysql_query("SELECT * FROM characters");
			echo mysql_num_rows($tchar);
			?></td>
    </tr>
    <tr>
      <td><div align="right"><strong>World Server </strong></div></td>
      <td width="6"> </td>
      <td width="136" height="1"><?php
				$fp = @fsockopen("127.0.0.1", 15400, $errno, $errstr, 1);
if($fp >= 1){ 
echo '<b><font color=00FF00>Online</font></b>';}
else{ echo '<b><font color=FF0000>Offline</font></b>'; } 
			?></td>
      <td><div align="right"><strong>Players Online </strong></div></td>
      <td> </td>
      <td height="1"><?php		
			$tonl = mysql_query("SELECT * FROM accounts WHERE logged_in = '1' ");
			echo mysql_num_rows($tonl);		
			?></td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td></td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td> </td>
      <td> </td>
      <td height="1"> </td>
      <td> </td>
      <td> </td>
      <td></td>
    </tr>
  </table>
</div>

<td colspan="3"><div align="center"><span class="style2">Server Specifications</span></div></td>
    </tr>
    <tr>
      <td width="145"> </td>
      <div align="center"><td>processor: </td>    <!-- Enter proc type/speed here -->
      <div align="center"><td>Hard Drive: </td>   <!-- Enter HD speed/capasity -->
      <div align="center"><td>RAM: </td>          <!-- Enter RAM speed/capasity -->
      <div align="center"><td>Power Supply: </td> <!-- Enter power supply wattage -->
      <div align="center"><td>24/7: YES/NO</td>         <!-- Is your server 24/7 or not -->
      <div align="center"><td>Dedicated: YES/NO</td>    <!-- Is you server dedicated -->
      <div align="center"><td>connection speed: </td>  <!-- how fast is your servers internet service -->
    </tr>
    
    <p> </p>
   
    
<input type=button onClick="parent.location='credit_page.php'" value='Credit'>

</body>
</html>


does anyone know the original creator of the index.php,so i can add them to the credit page.

edit: FIXED* total accounts was repeated.
 
Last edited:
Back
Top