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!

Simple Registration Page

Custom Title Activated
Loyal Member
Joined
Nov 25, 2004
Messages
1,249
Reaction score
23
This is a Simple registration page, i got the code from an old webpage package, and made this simple Page for servers that only want registration for their people.

How to install​

  1. Download a webserver:
  2. Extract Web files in C:/AppServ/www/
  3. Edit config.php to this:

    $alogin = 'sa'; SQL Username
    $apass = 'pw'; SQL Password
    $ip = "Local IP";
    $host = "Local IP";
  4. Editing php.ini

    Click Start, go to Run, and type C:/Windows/php.ini
  5. Now search this line ;extension_mssql using CTRL+F and remove the ;
  6. Opening Registration Page

DONE. :)

Added new Black Theme, If anyone want a theme for their simple registration page post here how u want it colors and stuff, look at the pic below.
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Apr 11, 2005
Messages
11
Reaction score
0
i have used this simple registration but added a little more string manipulation for the idreg.php

this would actually filter the input with minimum of 4 characters. not to mention it will check for valid email format.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0032) -->
<?php require 'config.php'; ?>
<?php require 'injectprotect.php'; ?>
<HTML><HEAD><TITLE><?php print $title; ?></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK
href="css.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="jsfunc.js"
type=text/javascript></SCRIPT>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<style type="text/css">
<!--
.style1 {font-size: 10**
-->
</style>
</HEAD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TBODY>
<TR>
</table>
<table width="100%" height="5%" border="0.5">
<tr>
</tr>
<tr>
<th scope="col"><h6> <?php
$Error = 0;
$login = stripslashes($_POST['login']);
$name = stripslashes($_POST['name']);
$email = stripslashes($_POST['email']);
$idnumb = stripslashes($_POST['idnumb']);
$pw = stripslashes($_POST['pw']);
$cpw = stripslashes($_POST['cpw']);
$sques = stripslashes($_POST['squest']);
$sansw = stripslashes($_POST['sansw']);
$extcode = stripslashes($_POST['extcode']);
$extcode1 = stripslashes($_POST['code']);
$sql_email_check = mssql_query("SELECT mail_addr FROM MEMB_INFO WHERE mail_addr='$email'");
$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$login'");
$email_check = mssql_num_rows($sql_email_check);
$username_check = mssql_num_rows($sql_username_check);

//if (($email_check > 0) || ($username_check > 0) || empty($login) || empty($name) || empty($email) || empty($idnumb) || empty($pw) || empty($cpw) || empty($sques) || empty($sansw) || empty($extcode) || empty($extcode1))
//{
// echo "Error: <br />";
//**



if (empty($login) || empty($name) || empty($email) || empty($idnumb) || empty($pw) || empty($cpw) || empty($sques) || empty($sansw) || empty($extcode) || empty($extcode1))
{
echo "Some Fields were left blank. Please go back and try again.<br />";
$Error=1; **

if ($username_check > 0)
{
echo "'$login' has already been used by another member
in our database. Please choose a different Username.<br />";
$Error=1; **

if (trim($login)=='' || strlen(trim($login)) < 4)
{
echo "Please enter a login with at least 4 characters long.<br />";
$Error=1; **

if (trim($name)=='' || strlen(trim($name)) < 4)
{
echo "Please enter a name with at least 4 characters long.<br />";
$Error=1; **

if ($pw != $cpw)
{
echo "<br />The passwords you entered do not match.<br />";
$Error=1; **

if (trim($pw)=='' || strlen(trim($pw)) < 4)
{
echo "Please enter a password at least 4 characters long.<br />";
$Error=1; **

if(!ereg("[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]", $email))
{
echo "Please enter a valid email address.<br />"; **

if ($extcode != $extcode1)
{
echo "Auto-registration protected. You must type the exact code.<br />"; $Error=1; **


if ($Error == 0)
{
$msquery2 = "SET IDENTITY_INSERT MEMB_INFO ON";
$msquery3 = "INSERT INTO MEMB_INFO (memb_guid,memb___id,memb__pwd,memb_name,sno__numb,post_code,addr_info,addr_deta,tel__numb,mail_addr,phon_numb,fpas_ques,fpas_answ,job__code,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code) VALUES ('1','$login','$pw','$name', '1','1234','11111','$idnumb','12343','$email','$email','$sques','$sansw','1','2003-11-23','2003-11-23','2003-11-23','2003-11-23','1','0','1')";
$msquery4 = "INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,'$login','$name',1,'7','6','3','6','6','2003-11-23 10:36:00','0' )";
$msresults= mssql_query($msquery2);
$msresults= mssql_query($msquery3);
$msresults= mssql_query($msquery4);
echo "<p align='center'>Account successfully created.</p>
<br><p align='left'>Login ID: $login<br>
Name: $name <br>
E-mail: $email<br>
ID Number: $idnumb<br>
Password: $pw<br>
Question: $sques<br>
Answer: $sansw </p>";
**
?>
</h6></th>
</tr>
</table>
</DIV>
</TD>
</TR>
<TR>
<TD class=headBG1 vAlign=center><div align="center"><SPAN class=textLogin><?php print $credits; ?> </SPAN></div></TD>
</TR></TBODY></TABLE>
</TD>
</TR></TBODY></TABLE></DIV></BODY></HTML>

can anyone help me find any script for a simple change password service? im having a hard time scripting my own. noob in PHP with SQL dbase.
 
Divine Celestial
Loyal Member
Joined
Nov 11, 2004
Messages
810
Reaction score
0
Conadar said:
i have spent a long time trying to get this to work wtf is up with it i did everything you said and still no result wtf wtf wtf

Mssql is not enabled in your php.ini

PS - Mu uses mssql, not mysql.

[N]asser` ~ Out
 
Custom Title Activated
Loyal Member
Joined
Feb 27, 2004
Messages
1,378
Reaction score
50
people should stop releasing hackable pages or site.. makes me wanna delete all these posts...

coz.
1. Ragezone will not be held responsible if u got hacked
2. Cause i we care if u get hacked.
3. Cause it annoys me to death asking why u got hacked.
 
Custom Title Activated
Loyal Member
Joined
Nov 25, 2004
Messages
1,249
Reaction score
23
naiomi said:
Can i use this guide to make remote?
i want this simple registration but i want it as a remote.
how can i make it remote?
tnx
yes u can have it in other PC just write the Server Computer IP in the Config.php file and there u go :p
 
Newbie Spellweaver
Joined
Jul 14, 2004
Messages
39
Reaction score
0
Fatal error: Call Undefined function mssql_connect() in x:\Program Files\Apache Group\Apache2\htdocs\config.php on line 37

need ur help pls.. i followed the steps.. checked the Php.ini and everything.. what did i miss.. tnx in advance...

 
Banned
Banned
Joined
Sep 4, 2005
Messages
69
Reaction score
5
arggg

[
[*]Editing php.ini
Click Start, go to Run, and type C:/Windows/php.ini
[*]Now search this line ;extension_mssql using CTRL+F and remove the ;
[*]Opening Registration Page
[/List]
DONE. :)

When I go C:/Windows/php.ini I cannot find the text you specified. ;extension_mssql :(
 
Initiate Mage
Joined
May 18, 2005
Messages
4
Reaction score
0
the new php.ini is different guys..
and mssql is not anymore IN the file..
this is what you must copy/paste in the php.ini :
extension=php_mssql.dll
extension=php_msql.dll

then it must work fine ;)
 
Newbie Spellweaver
Joined
Aug 18, 2004
Messages
14
Reaction score
0
if you get "mssql_connect() in c:\appserv\www\config.php on line 37"

Reinstall MSSQL:

1. Installing SQL Server 2000: Extract SQLEVAL.exe.
2. Run Setup.exe and click Next 8 times.
3. It will show you this window named Services Accounts.
4. In Service Settings set it to Use the Local System Account.
5. Click Next and it will show the Authentication Mode window.
6. Set it to Mixed Mode(Windows Authentication and SQL server Authentication) after that make sure to set a password below.
7. The password will be the sa account password, you will need it after on if you want to set an online registration.

8. Then click next to continue the Installation

make sure you have done steps 4 and 5

4. Editing php.ini

Click Start, go to Run, and type C:/Windows/php.ini

5. Now search this line ;extension_mssql using CTRL+F and remove the ;
 
Banned
Banned
Joined
Sep 20, 2005
Messages
188
Reaction score
0
guys this page is weird i tryed to install ap server i dont know what to put for the user name and pass
 
Custom Title Activated
Loyal Member
Joined
May 26, 2005
Messages
1,042
Reaction score
6
Thread cleaned ( deleted 69 replys )

if you got connect_mssql error then you have to go to php.ini and remove ; from ;extension=php_mssql.dll so it will become extension=php_mssql.dll
this page is the easiest and the oposite of 'weird' , username and pass are the MSSQL acces information (default username = sa password = blank )

a skinned mod by me :
 
Last edited:
Newbie Spellweaver
Joined
Jan 3, 2005
Messages
10
Reaction score
0
some bug, when i use this page, it tell me that acount succesfully created but when i launch the game, and i put login and pass and click on connect it tell me "no charge info"

Solution to this?
 
Custom Title Activated
Loyal Member
Joined
May 26, 2005
Messages
1,042
Reaction score
6
-ASH- said:
some bug, when i use this page, it tell me that acount succesfully created but when i launch the game, and i put login and pass and click on connect it tell me "no charge info"

Solution to this?
don't stands here,it's most posible that it's bug from your database
 
Banned
Banned
Joined
Sep 20, 2005
Messages
188
Reaction score
0
umm this is what the server gives me===>Fatal error: Call to undefined function: mssql_connect() in c:\appserv\www\config.php on line 37
can u help pls
 
Banned
Banned
Joined
Sep 20, 2005
Messages
188
Reaction score
0
nvm i got it i just for got to look on the first page sry for the inconveunce
 
Skilled Illusionist
Joined
Nov 2, 2005
Messages
315
Reaction score
12
Who can give me php.ini?
Cos my php.ini dont have
;extension_mssql
;extension=php_mssql.dll
cos i using app 2.4.4a
 
Last edited:
Back
Top