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!

New Excelent Registration Script

Genesis?Is it a new drug?
Joined
Apr 8, 2010
Messages
512
Reaction score
96
Hello, I created a new registration script for Perfect World... it's an excelent registration script.

Features:

  • Check in real time if E-mail and Username is already in use;
  • Check if the fields are correct;
  • Anti sql injection;
  • You can choose if the user must confirm registration in e-mail or not;
  • You can choose if the user will receive cubi-golds in registration and determine an amount;
  • The registration have a very cool visual;
  • Very strong CAPTCHA;
  • E-mail validator.

Update V1.1 11-06-2011:

  • Fixed some translation errors;
  • Added PIN (security code) wich can be used in change password scripts (the PIN will be saved in the "qq" field of the "users" table) PS: you must use the pendente_registro.sql again, otherwise, the e-mail confirmation won't work;
  • Security and bug fix: removed sql_regcase and added CASELESS on preg_replace in anti sql injection (filtrar());

Update V1.2 12/04/2012 (dd/mm/YY):

  • Changed CAPTCHA's visual;
  • Changed submit button's visual;
  • Fixed password format;
  • Fixed cubi-gold in registration;
  • Fixed possible errors at registration with e-mail confirmation;
  • Download link back online.

How to use:
There's a README.txt file in the .rar ... read it! xP

Download:



Screenshot:



PS: Only the texts, alerts, informations was translated... the source code not.

If you have any questions, bugs, suggestions, please report to me here on the forum.

Important!

The password will be saved in the byte format. If you want to compare passwords in web apps, your must use the function fn_varbintohexsubstring of you PW's MySQL.

Check this:
Password Reversal

Credits:
------------------------------
renan7899 by the script
Goodlookinguy by the help with Ajax and jQuery ;)
 
Last edited:
Newbie Spellweaver
Joined
Aug 18, 2011
Messages
82
Reaction score
46
The CAPTCHA won't show up. Could you please take a look of it?
Fatal error: Call to undefined function: imagecreate() in W:\www\register\captcha\securimage.php on line 675
 
Last edited:
0, 1, 1, 2, 3, 5, 8, 13,
Joined
Sep 8, 2011
Messages
601
Reaction score
168
Hi and thank you for script.
I implemented this on my ubuntu machine but it comes up with..

Deprecated: Function sql_regcase() is deprecated in /opt/lampp/htdocs/register/filtrar.funcao.php on line 8

The script does work very well (tested) but the error is unsightly.

Any idea how to fix?
 
0, 1, 1, 2, 3, 5, 8, 13,
Joined
Sep 8, 2011
Messages
601
Reaction score
168
Looking up this i found removing sql_regcase did fix the problem.
Apparently:- This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

Changing script to:-
$campo = preg_replace ( ("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"", $campo);

Made it lose errors for me...like i said it works but...
Anyway problem fixed for me, hope this helps somebody.
Example
 
Last edited:
Genesis?Is it a new drug?
Joined
Apr 8, 2010
Messages
512
Reaction score
96
I have PHP 6, and it doesn't have this error...

Anyway, preg_replace is enough.

$campo = preg_replace("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"), "", $campo);
 
0, 1, 1, 2, 3, 5, 8, 13,
Joined
Sep 8, 2011
Messages
601
Reaction score
168
ty renan7899 for your quick response, also i have tried the "register with cubi" option but it didnt seem to work for me, i did wait the 10 minutes also. Rest of the script works great and ty for sharing this nice script. :thumbup:
 
Skilled Illusionist
Joined
Feb 6, 2011
Messages
386
Reaction score
190
ill check this script out and give some feedback. also will find alternative with making it work with php 5 versions as i noticed some are having troubles.

runnning ubuntu and centos version.

;;;;;UPDATE;;;;;

the script works REALLY well have created a script to work with it on password recovery with calling for secret answer and pin 5/5 man good work.
 
Last edited:
Joined
Apr 2, 2009
Messages
1,056
Reaction score
210
renan,

hope you can add some code from this script for security with PIN email Old password and New Password

credits
343 for PHP pear function and reset pass
Romulan for registration page
hrace009 for adding new line for PIN as primary security code

pass:
 
Last edited:
Genesis?Is it a new drug?
Joined
Apr 8, 2010
Messages
512
Reaction score
96
Thanks for your great release for reg form,permission to use your source code :rolleyes:

Feel free to use it. Just don't put credits for you =P

Okay people hmm, about the cubi-golds... I don't know exactly what the 'sn' is for... the BatGM programm always reduce the sn by one... every insertion in the usecashnow table have a different sn, and it works.

I'll try to use the usecash procedure and see if it will have a good result...

And try to create a MySQL trigger to add cubis when register (that's more reliable).

Hey hrace, the zip file is protected by password.
 
Newbie Spellweaver
Joined
Apr 16, 2010
Messages
83
Reaction score
6
renan,

hope you can add some code from this script for security with PIN email Old password and New Password

credits
343 for PHP pear function and reset pass
Romulan for registration page
hrace009 for adding new line for PIN as primary security code
pass please:blushing:
 
Angelemu founder
Joined
Mar 2, 2011
Messages
525
Reaction score
247
imagecreate is part of the php gd package which is available seperately on debian installations
Code:
 apt-get install php5-gd
 
Joined
Apr 2, 2009
Messages
1,056
Reaction score
210
Feel free to use it. Just don't put credits for you =P

Okay people hmm, about the cubi-golds... I don't know exactly what the 'sn' is for... the BatGM programm always reduce the sn by one... every insertion in the usecashnow table have a different sn, and it works.

I'll try to use the usecash procedure and see if it will have a good result...

And try to create a MySQL trigger to add cubis when register (that's more reliable).

Hey hrace, the zip file is protected by password.

oh yeah.. password is i forgot that one:eek:tt1:
 
Angelemu founder
Joined
Mar 2, 2011
Messages
525
Reaction score
247
Yah, I searched and found this answer, but I already had answered, so... nevermind xD

just posted for the sake of completeness as this library is not delivered by default. Just in case anyone has similar problems and no idea where it comes from.
 
Genesis?Is it a new drug?
Joined
Apr 8, 2010
Messages
512
Reaction score
96
renan,

hope you can add some code from this script for security with PIN email Old password and New Password

credits
343 for PHP pear function and reset pass
Romulan for registration page
hrace009 for adding new line for PIN as primary security code

You mean: to change password, the user must type the PIN??
 
Back
Top