Register for your free account! | Forgot your password?

You last visited: Today at 00:32

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

Advertisement



Pass Change Script Change

Discussion on Pass Change Script Change within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 52
Received Thanks: 13
Pass Change Script Change

Code:
<?php
include('info.php');
session_start();
if(!isset($_SESSION['UserID'])){header("location:index.php");}

$opw=ms_escape_string(htmlentities($_POST["oldpw"]));
$npw=ms_escape_string(htmlentities($_POST["newpw"]));
$UserID=$_SESSION["UserID"];

$res= mssql_query("SELECT * FROM PS_UserData.dbo.Users_Master WHERE UserID='".$UserID."' AND Pw='".$opw."'");
if(mssql_num_rows($res)==0){$_SESSION["msg"]='Couldn\'t change the password. Please provide the correct old Password';}
else
{
mssql_query("UPDATE PS_UserData.dbo.Users_Master SET Pw='".$npw."' WHERE UserID='".$UserID."'");
$_SESSION["msg"]="Password changed. Please allow up to 1 minute for the changes to be made into the database.";
}
header("location:usercp.php");
?>
This script allows to enter more than 13 character long passwords that is why it seems to be changed but it does not record the characters more than 13 character length. When you try to enter it says incorrect pass.

I need to edit some lines not to allow more than 13 and less than 3 .

Like
Code:
if(mssql_num_rows($npw)< 3){$_SESSION["msg"]='New password must be between 3 and 13 characters in length.;}
else if(mssql_num_rows($npw)> 13){$_SESSION["msg"]='New password must be between 3 and 13 characters in length.';}
Thank you for your helps in advance.
.Curious. is offline  
Reply


Similar Threads Similar Threads
[REQUEST]Register /Change Pass/Recover Pass scripts...
06/17/2016 - EO PServer Hosting - 17 Replies
If anyone have those script please PM me or write it here.. Thanks NightLon, This is the website im developing Just need some scripts Elite-Demons I have searched Status script and couldnt find working one... :/
Sw2 Pass. Change?
04/17/2011 - SRO Private Server - 1 Replies
Sunworld password change site is closed?? reg2.sro8.com/repass.html is not opening.. I trade char with bl3d3 im need it please help meee its closed?
SWSRO 1 change pass?
04/09/2011 - SRO Private Server - 3 Replies
wich is the swsro reg pág and change pw page? i need it urgent pls :)
HOW TO CHANGE THE PASS IF U DONT REMENBER THESECYRITY PASS?
05/11/2009 - Rohan - 3 Replies
HI all i ask this question because i dont remenber the security and i cant change the pass of my account and the GameMaster cant say me the securyti:Who know how to change it? pls if u know post it:):handsdown:



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


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.