Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 15:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Secure PHP Web Registration Script

Discussion on [RELEASE] Secure PHP Web Registration Script within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 02/17/2011, 00:18   #46
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
Warning: require_once(success.view.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\register.php on line 61

Fatal error: require_once() [function.require]: Failed opening required 'success.view.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\register.php on line 61
remnikalija is offline  
Thanks
1 User
Old 02/17/2011, 00:19   #47
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 810
Quote:
Originally Posted by remnikalija View Post
Warning: mssql_query() [function.mssql-query]: message: Cannot insert the value NULL into column 'UserUID', table 'PS_UserData.dbo.Users_Master'; column does not allow nulls. INSERT fails. (severity 16) in C:\xampp\htdocs\register.php on line 49

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\register.php on line 49
Now you probably want to set UserUID as the identity column, that way when you try to insert null into the UserUID column it will add one to the last highest value. This is covered some at the beginning of this thread.
abrasive is offline  
Thanks
2 Users
Old 02/17/2011, 00:48   #48
 
remnikalija's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 340
Received Thanks: 52
it works now i had to allow nulls on rowid to work
remnikalija is offline  
Old 02/17/2011, 14:33   #49
 
elite*gold: 0
Join Date: Aug 2010
Posts: 241
Received Thanks: 255
Quote:
Originally Posted by remnikalija View Post
it works now i had to allow nulls on rowid to work
RowID is an identity coloumn so it must contain a value.
zargon05 is offline  
Old 02/18/2011, 04:54   #50
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Hey, i got a small problem. I did everything that is needed. I am running shaiya ep4 and when i register, everything that is suppost to get added to the database (INSERT INTO PS_UserData.dbo.Users_Master) gets added. My problem comes from it not adding the information to the second database(i dont recall the location at this time).
VVayinsane is offline  
Thanks
1 User
Old 02/18/2011, 15:32   #51
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
I suggest you read Abrasives tutorial on how to use . It should explain a few things.

To answer your questions. You don't need the other database (OMG_Webserv or something like that). Server doesn't call it even once. It was probably created by someone for some purpose and can be safely deleted.
ProfNerwosol is offline  
Old 02/19/2011, 01:50   #52
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
ProfNerwosol, thanks for the info. Shouldnt i still be able to login to the game even though the info was not placed on the second database? or since we have the second database up it is checking both of them. Once the second one is removed it will fix the problem?
VVayinsane is offline  
Old 02/19/2011, 02:21   #53
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,286
I'm not sure how it is. I know that on some of the "PS_UserData.dbo.usp_Try_GameLogin_Taiwan" procedures I've seen, it has a password check pointing to the OMG_GameWeb database. I've always manually edited that and had it call a personal procedure from PS_UserData to do mine o.O
RebeccaBlack is offline  
Old 02/19/2011, 04:56   #54
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Can someone give me a guide on how they removed the second database from being called. I cant find Try_GameLogin_Taiwan at all. I am using the ep4 found on the forums so maybe someone knows how and can explain. Thank you
VVayinsane is offline  
Old 02/20/2011, 20:50   #55
 
elite*gold: 0
Join Date: Feb 2011
Posts: 19
Received Thanks: 0
Quote:
Failed to create a new account, please try again later
Pls Help me !
this_is_love is offline  
Old 02/21/2011, 23:55   #56
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
this_is_love, That means the insert statement is probably not valid for your database. Fix the query or fix your database, your choice
VVayinsane is offline  
Old 02/24/2011, 08:27   #57
 
elite*gold: 0
Join Date: Nov 2010
Posts: 15
Received Thanks: 3
Quote:
Warning: require_once(success.view.php) [function.require-once]: failed to open stream: No such file or directory in C:\WebServer\www\Shaiya\register\register.php on line 61

Fatal error: require_once() [function.require]: Failed opening required 'success.view.php' (include_path='.;C:\php5\pear') in C:\WebServer\www\Shaiya\register\register.php on line 61
Apparently i need success.view.php also for this...

On another note it entered the info into PS_UserData.dbo.Users_Master but nothing is added to PS_UserData.dbo.Users_Detail...

Also how can i change the password to hold up to 20 Alpha-Numeric Char's?
AbsolonShaiya is offline  
Old 02/24/2011, 16:34   #58
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 810
Quote:
Originally Posted by AbsolonShaiya View Post
Apparently i need success.view.php also for this...

On another note it entered the info into PS_UserData.dbo.Users_Master but nothing is added to PS_UserData.dbo.Users_Detail...

Also how can i change the password to hold up to 20 Alpha-Numeric Char's?
I added success.view.php, I completely missed adding it here last time I updated, sorry about that.

What were you wanting/expecting to be added to Users_Detail?

To change the password length to allow up to 20 alpha-numeric characters, first make sure your Users_Master.Pw column is set to at least varchar(20). Then edit register.php and change this line:
Code:
}else if(strlen($password) < 3 || strlen($password) > 16){
to this:
Code:
}else if(strlen($password) < 3 || strlen($password) > 20){
abrasive is offline  
Thanks
1 User
Old 02/25/2011, 02:38   #59
 
elite*gold: 0
Join Date: Nov 2010
Posts: 15
Received Thanks: 3
Sorry I hadn't looked into your password change script but i knew that Users_Detail held the information for password question and answers. if we don't need it though i can deal with that.
AbsolonShaiya is offline  
Old 02/25/2011, 07:33   #60
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 810
Quote:
Originally Posted by AbsolonShaiya View Post
Sorry I hadn't looked into your password change script but i knew that Users_Detail held the information for password question and answers. if we don't need it though i can deal with that.
That's a matter of implementation. How do you want users to be able to change passwords?

I made this really basic so I only used a CAPTCHA on the password change page.

Most web sites require you to be logged in to change your password, and rightfully so. You would want to know the user trying to change a user's password is authorized to do so.

Storing security questions and answers complicates things quite a bit as far as implementation goes.

You really should should be storing passwords as salted hashes when registering users, but almost nobody here is interested in that unfortunately
abrasive is offline  
Reply

Tags
mssql, php, script, shaiya script mssql sql


Similar Threads Similar Threads
[Release] SSE php Registration page script!
06/25/2013 - SRO PServer Guides & Releases - 38 Replies
Hello there, i'm not much using this forum, but as i recently helped out the owners of server G-Sro by making this automatic account registration page, decided to release for everyone. Hope you like it. For live preview go to: Demo Page DOWNLOAD LINK: http://www.multiupload.com/65ZMM3N7C0 Feel free to edit it however you want, but don't re-release it on other communities. Features:
[Release] Secure BHop Script
08/08/2010 - Counter-Strike Hacks, Bots, Cheats & Exploits - 5 Replies
You can't get banned for using this Script because it's only presses the Space button = no injection into the game = No VAC Ban + it's secured. Btw it's an Private BHop script so when you leech it please give the credits. Info: How to use press "^" to start and "^" to stop Virus Scan:
[Release] Simple CoEmu V2 - Registration Script
03/07/2010 - CO2 PServer Guides & Releases - 39 Replies
http://i42.tinypic.com/1qlcnd.png Download Simply open settings.php and edit it to your settings, and it'll run smoothly.
[RELEASE]Registration Script (ENG)
05/16/2009 - Dekaron Private Server - 12 Replies
I just created this registration script so enjoy. Unlike the others that are posted around, this one is built from the ground up by me. Enjoy and dont forget to say thanks! Uses mssql(); Please post your comments and suggestions!!!! Ill have more tools on the way. ~Quick tut to get it working~ 1. Download the rar 2. Extract it to a place where you can easily edit the files 3. Open up includes/db.php 4. Edit your information for your SQL server 5. Save and upload to a directory inside...



All times are GMT +2. The time now is 15:00.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.