Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

Arcturus Website

Status
Not open for further replies.
try to use this code for registration . . :):

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">

</div>
  <!-- end div#header -->



        <div class="post">
          <div class="entry">
            <p><?php


?>
<form action="?op=register" method="post">
<br />

           <div class="formitem" style="width:350px;">
			<h3>Register ::</h3>
  <table width="338" border="0">
    <tr>
      <td width="132" height="20" class="b01">Username:</td>
      <td width="196"><label>
        <input name="user" type="text" class="liteoption" id="user" size="15" maxlength="30" />
      </label></td>
    </tr>
    <tr>
      <td height="25" class="b01">Password:</td>
      <td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01">Repeat Password: </td>
      <td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>E-mail address: </p></td>
      <td><input name="email" type="email" class="liteoption" id="email" size="15" maxlength="200" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>Referral (Optional): </p></td>
      <td><input name="ref" type="ref" class="liteoption" id="ref" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>Birthday (Optional): </p></td>
<td><form>
<select name="dropdown" value="options">
<option>DD</option>
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</SELECT>
<select name="dropdown" value="options">
<option>MM</option>
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>12</option>
</SELECT>
<select name="dropdown" value="options">
<option>YEAR</option>
<option></option>
<option>1930</option>
<option>1931</option>
<option>1932</option>
<option>1933</option>
<option>1934</option>
<option>1935</option>
<option>1936</option>
<option>1937</option>
<option>1938</option>
<option>1939</option>
<option>1940</option>
<option>1941</option>
<option>1942</option>
<option>1943</option>
<option>1944</option>
<option>1945</option>
<option>1946</option>
<option>1947</option>
<option>1948</option>
<option>1949</option>
<option>1950</option>
<option>1951</option>
<option>1952</option>
<option>1953</option>
<option>1954</option>
<option>1955</option>
<option>1956</option>
<option>1957</option>
<option>1958</option>
<option>1959</option>
<option>1960</option>
<option>1961</option>
<option>1962</option>
<option>1963</option>
<option>1964</option>
<option>1965</option>
<option>1966</option>
<option>1967</option>
<option>1968</option>
<option>1969</option>
<option>1970</option>
<option>1971</option>
<option>1972</option>
<option>1973</option>
<option>1974</option>
<option>1975</option>
<option>1976</option>
<option>1977</option>
<option>1978</option>
<option>1979</option>
<option>1980</option>
<option>1981</option>
<option>1982</option>
<option>1983</option>
<option>1984</option>
<option>1985</option>
<option>1986</option>
<option>1987</option>
<option>1988</option>
<option>1989</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
</SELECT>
</form> </td>
    </tr>
  <td></table><script language="javascript" src="http://www.captcha.cc/cap.js?cap_k=UsskcJZWVgoEEahGztrazdYUHEXfRQCs" type="text/javascript"></script>
<input type=hidden name=cap_h id=cap_h value="">
<img border=1 id=cap_i src="http://www.captcha.cc/img.cgi?cap_k=UsskcJZWVgoEEahGztrazdYUHEXfRQCs" align=middle><img align=middle style="margin-left: 4px;" id=cap_r onload="return cap_showReload(event);" src="http://www.captcha.cc/blank.png"><br>
<div align="center"><input id=cap_t name=cap_t type=text value="" style="margin-top:4px;">
 </p></div></td><br /><br />
   <td> <div align="center"><input name="submit" type="submit" class="liteoption" value="Register" /></div></td>
  </p>
</form>
	   </div>
  <?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('You must fill in all of the feilds!!!<BR>');
}
if(!get_magic_quotes_gpc()) {
$user = addslashes($_POST['user']);
$pass = md5($_POST['pass1']);
$email= $_POST['email'];
} else {
$user = $_POST['user'];
$pass = md5($_POST['pass1']);
$email= $_POST['email'];
}
$pass2 = md5($_POST['pass2']);
$user2 = mysql_real_escape_string($user);
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user2'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('Passwords dont match!');
}
$email2 = mysql_real_escape_string($email);
$check3 = mysql_query("SELECT * FROM accounts WHERE email = '$email2'");
$check4 = mysql_num_rows($check3);
if($check4 != '0') {
die("Email-Adress: '".$email."' is in use!");
}
$pass3 = mysql_real_escape_string($pass);
$ref2 = mysql_real_escape_string($ref);
$insert_member = mysql_query("INSERT INTO accounts (username, password, email, ref) VALUES ('$user2', '$pass3', '$email2', '$ref2' '1')");
if($insert_member) {
echo("<p class='b01'>Registration Complete! <a href=?op=home>Click here</a>");
} else {
echo("<p class='b01'>Registration Failed!</p>");
}}
?>
</div> </p>
          </div>
          <div class="meta"></div>
        </div>
        <div class="post">
  <div class="meta"></div>
        </div>
      </div>
      <!-- end div#content -->
</body>
</html>


      </ul>
    </div>
		</div>

  </div>
</body>
</html>

:D:
 
try to use this code for registration . . :):

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">

</div>
  <!-- end div#header -->



        <div class="post">
          <div class="entry">
            <p><?php


?>
<form action="?op=register" method="post">
<br />

           <div class="formitem" style="width:350px;">
			<h3>Register ::</h3>
  <table width="338" border="0">
    <tr>
      <td width="132" height="20" class="b01">Username:</td>
      <td width="196"><label>
        <input name="user" type="text" class="liteoption" id="user" size="15" maxlength="30" />
      </label></td>
    </tr>
    <tr>
      <td height="25" class="b01">Password:</td>
      <td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01">Repeat Password: </td>
      <td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>E-mail address: </p></td>
      <td><input name="email" type="email" class="liteoption" id="email" size="15" maxlength="200" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>Referral (Optional): </p></td>
      <td><input name="ref" type="ref" class="liteoption" id="ref" size="15" maxlength="30" /></td>
    </tr>
    <tr>
      <td height="24" class="b01"><p>Birthday (Optional): </p></td>
<td><form>
<select name="dropdown" value="options">
<option>DD</option>
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</SELECT>
<select name="dropdown" value="options">
<option>MM</option>
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>12</option>
</SELECT>
<select name="dropdown" value="options">
<option>YEAR</option>
<option></option>
<option>1930</option>
<option>1931</option>
<option>1932</option>
<option>1933</option>
<option>1934</option>
<option>1935</option>
<option>1936</option>
<option>1937</option>
<option>1938</option>
<option>1939</option>
<option>1940</option>
<option>1941</option>
<option>1942</option>
<option>1943</option>
<option>1944</option>
<option>1945</option>
<option>1946</option>
<option>1947</option>
<option>1948</option>
<option>1949</option>
<option>1950</option>
<option>1951</option>
<option>1952</option>
<option>1953</option>
<option>1954</option>
<option>1955</option>
<option>1956</option>
<option>1957</option>
<option>1958</option>
<option>1959</option>
<option>1960</option>
<option>1961</option>
<option>1962</option>
<option>1963</option>
<option>1964</option>
<option>1965</option>
<option>1966</option>
<option>1967</option>
<option>1968</option>
<option>1969</option>
<option>1970</option>
<option>1971</option>
<option>1972</option>
<option>1973</option>
<option>1974</option>
<option>1975</option>
<option>1976</option>
<option>1977</option>
<option>1978</option>
<option>1979</option>
<option>1980</option>
<option>1981</option>
<option>1982</option>
<option>1983</option>
<option>1984</option>
<option>1985</option>
<option>1986</option>
<option>1987</option>
<option>1988</option>
<option>1989</option>
<option>1990</option>
<option>1991</option>
<option>1992</option>
<option>1993</option>
<option>1994</option>
<option>1995</option>
<option>1996</option>
<option>1997</option>
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
</SELECT>
</form> </td>
    </tr>
  <td></table><script language="javascript" src="http://www.captcha.cc/cap.js?cap_k=UsskcJZWVgoEEahGztrazdYUHEXfRQCs" type="text/javascript"></script>
<input type=hidden name=cap_h id=cap_h value="">
<img border=1 id=cap_i src="http://www.captcha.cc/img.cgi?cap_k=UsskcJZWVgoEEahGztrazdYUHEXfRQCs" align=middle><img align=middle style="margin-left: 4px;" id=cap_r onload="return cap_showReload(event);" src="http://www.captcha.cc/blank.png"><br>
<div align="center"><input id=cap_t name=cap_t type=text value="" style="margin-top:4px;">
 </p></div></td><br /><br />
   <td> <div align="center"><input name="submit" type="submit" class="liteoption" value="Register" /></div></td>
  </p>
</form>
	   </div>
  <?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('You must fill in all of the feilds!!!<BR>');
}
if(!get_magic_quotes_gpc()) {
$user = addslashes($_POST['user']);
$pass = md5($_POST['pass1']);
$email= $_POST['email'];
} else {
$user = $_POST['user'];
$pass = md5($_POST['pass1']);
$email= $_POST['email'];
}
$pass2 = md5($_POST['pass2']);
$user2 = mysql_real_escape_string($user);
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user2'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('Passwords dont match!');
}
$email2 = mysql_real_escape_string($email);
$check3 = mysql_query("SELECT * FROM accounts WHERE email = '$email2'");
$check4 = mysql_num_rows($check3);
if($check4 != '0') {
die("Email-Adress: '".$email."' is in use!");
}
$pass3 = mysql_real_escape_string($pass);
$ref2 = mysql_real_escape_string($ref);
$insert_member = mysql_query("INSERT INTO accounts (username, password, email, ref) VALUES ('$user2', '$pass3', '$email2', '$ref2' '1')");
if($insert_member) {
echo("<p class='b01'>Registration Complete! <a href=?op=home>Click here</a>");
} else {
echo("<p class='b01'>Registration Failed!</p>");
}}
?>
</div> </p>
          </div>
          <div class="meta"></div>
        </div>
        <div class="post">
  <div class="meta"></div>
        </div>
      </div>
      <!-- end div#content -->
</body>
</html>


      </ul>
    </div>
		</div>

  </div>
</body>
</html>

:D:

Thanks but where is the configuration for connect to the database ?
 
try 1st . .and yet, i've no longer active in this section . . but i'll share all my old files here soon . . which is complete with panel . . :):
 
Status
Not open for further replies.
Back