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!

[Release]Dekaron Register PAGE [PHP Code]

Newbie Spellweaver
Joined
Aug 12, 2008
Messages
17
Reaction score
1
Well, I post the registration page that I use on my server, it works perfectly with the bonus coins to create.

register.php
<!-- CRIADO POR [OXYSBR]SOFTWARES. WSDD. -->
<!-- OXYSBR.SYTES.NET -->
<html>
<? require_once "configuracao.oxysbr.php";?>
<head>
<meta http-equiv="Content-Language" content="pt-br">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?=$site["svnome"];?></title>
</head>
<body bgcolor="#000000">
<form name='Dekaron' method="POST" action="">
<p style="margin-top: -1px; margin-bottom: -1px"><b>
<font face="Tahoma" color="#FFFFFF"><?=$site["svnome"];?> Registro</font></b></p>
<p style="margin-top: -1px; margin-bottom: -1px"> </p>
<div align="center">
<table border="0" width="53%" cellspacing="0" cellpadding="2">
<tr>
<td>
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">Login</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="text" name="login" id="login" size="20" maxlength="12"></font></td>
</tr>
<tr>
<td>
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">Senha</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="password" name="senha" id="senha" size="20" maxlength="12"></font></td>
</tr>
<tr>
<td>
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">Re.Senha</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="password" name="senha2" size="20" maxlength="12"></font></td>
</tr>
<tr>
<td width="68%">
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">E-mail</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="text" name="email" size="20"></font></td>
</tr>
<tr>
<td>
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">Pergunta Secreta</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="text" name="perg" size="20" maxlength="12"></font></td>
</tr>
<tr>
<td>
<p style="margin-top: -1px; margin-bottom: -1px">
<font face="Tahoma" size="2" color="#FFFFFF">Resposta Secreta.</font></td>
<td width="157">
<p style="margin-top: -1px; margin-bottom: -1px">
<font color="#FFFFFF" face="Tahoma">
<input type="text" name="resp" size="20" maxlength="12"></font></td>
</tr>
</table>
<p style="margin-top: -1px; margin-bottom: -1px"> </div>
<p align="center" style="margin-top: -1px; margin-bottom: -1px"><font face="Tahoma">
<font color="#FFFFFF">
<input type="submit" name="go" type="submit" class="button" id="go" value="Registrar" style="padding: 0"></font><font size="2" color="#FFFFFF">  
</font><font color="#FFFFFF"><input type="reset" value="Apagar" name="B2" style="padding: 0"></font></font></p>
</form>
<font face="Tahoma" color="#FFFFFF">
<?
if($_POST['go']) {
$loginc = $_POST['login'];
$senhacmd5=md5($_POST[senha]);
$senhac = $_POST['senha'];
$senhac2 = $_POST['senha2'];
$emailc = $_POST['email'];
$pergc = $_POST['perg'];
$respc = $_POST['resp'];

$qLogin = mssql_query("select user_id from Tbl_user where user_id='$loginc'");
$rLogin = mssql_num_rows($qLogin);

$qEmail = mssql_query("select user_email from Tbl_user where user_email='$emailc'");
$rEmail = mssql_num_rows($qEmail);

if(empty($loginc) || empty($senhac) || empty($emailc) || empty($pergc) || empty($respc)) {
echo "<script>alert('Preencha todos os campos'); location='javascript:history.back()' </script>";
}
elseif($rLogin >= 1){
die("<script>alert('Login ja cadastrado, escolha outro.');
location='javascript:history.back()'</script>");
}
elseif($rEmail >= 1){
die("<script>alert('Email ja cadastrado, escolha outro.');
location='javascript:history.back()'</script>");
}
else{

$dk_time=strftime("%y%m%d%H%M%S");
list($usec1, $sec1) = explode(" ",microtime());
$dk_user_no=$dk_time.substr($usec1,2,2);


mssql_query("insert into user_profile(user_no,user_id,user_pwd,resident_no,user_type,login_flag,login_tag,ipt_time,login_time,logout_time,user_ip_addr,server_id) values('".$dk_user_no."','".$loginc."','".$senhacmd5."','801011000000','1','0','Y','01/01/2006 00:00:00',null,null,null,'000')");
mssql_query("insert into Tbl_user(user_no,user_id,user_pwd,user_email,user_answer,user_question) values('".$dk_user_no."','".$loginc."','".$senhac."','".$emailc."','".$respc."','".$pergc."')");
mssql_query("insert into cash.dbo.user_cash(id,user_no,group_id,amount,free_amount) values('".$dk_user_no."','".$dk_user_no."','01','".$site["bonusc"]."','0')");


echo "Registrado com sucesso, seu login
 
Experienced Elementalist
Joined
Nov 13, 2008
Messages
213
Reaction score
0
Parse error on line 113 on register.php?
 
Newbie Spellweaver
Joined
Aug 12, 2008
Messages
17
Reaction score
1
Search for: $senhacm d5
And Replace to: $senhacmd5
 
Initiate Mage
Joined
Jun 24, 2009
Messages
1
Reaction score
0
my friend, I'm not able to make this page work log can give me more details. would be grateful
 
Back
Top