Register for your free account! | Forgot your password?

You last visited: Today at 16:44

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

Advertisement



VSRO Site PROBLEM ( LostPassword )

Discussion on VSRO Site PROBLEM ( LostPassword ) within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 23
Received Thanks: 2
VSRO Site PROBLEM ( LostPassword )


Helo All,
I have a vsro server and the file "lostpassword.php" does not work properly.
the lostpassword working with pin code.
here is the code :
PHP Code:
<?php
if (isset($_SESSION['username'])) {
$sql->redirect("?page=index");
}
if (isset(
$_POST['submit'])) {
$id $_POST['ID'];
$Email $_POST['email'];
$pin $_POST['pin'];
$pw md5($_POST['pw']);
if (
strlen($id) < 5)
$msg[] = 'ID is shorter than 5 letters !';
if (
strlen($pin) < 0)
$msg[] = 'New password is shorter than 0 letters !';
if (
strlen($id) > 20)
$msg[] = 'ID is longer than 20 letters !';
if (
strlen($pin) > 20)
$msg[] = 'PIN is longer than 20 letters !';
if (!
$sql->isValidEmail($Email))
$msg[] = "Email is not valid";
if(!
$sql->is_secure($id)) die;
if(!
$sql->is_secure($Email)) die;
if(!
$sql->is_secure($pin)) die;
if(!
$sql->is_secure($pw)) die;
if (
count($msg) > 0) {
$error "";
for (
$i 0$i count($msg); $i++) {
$error .= "-$msg[$i]</br>";
}
echo 
"<dl id='system-message'>
<dt class='error'>Error</dt>
<dd class='error message fade'>
<ul>
$error
</ul>
</dd>
</dl>"
;
} else {
$query $sql->Query("SELECT * FROM TB_User WHERE StrUserID='$id'");
$row $sql->fetcharray($query);
if (
$Email != $row['Email'])
$msg1[] = 'Incorrect email';
if (
$pin != $row['certificate_num'])
$msg1[] = 'Pin is incorrect !';
if (
count($msg1) > 0) {
$error1 "";
for (
$i 0$i count($msg1); $i++) {
$error1 .= "-$msg1[$i]</br>";
}
echo 
"<dl id='system-message'>
<dt class='error'>Error</dt>
<dd class='error message fade'>
<ul>
$error1
</ul>
</dd>
</dl>"
;
} else {
$query $sql->Query("UPDATE TB_User SET password='$pw' WHERE StrUserID='$id'");
if (
$query) {
echo 
"<dl id='system-message'>
<dt class='message'>Message</dt>
<dd class='message message fade'>
<ul>
<li>Your password is sucessfully reset.</li>
</ul>
</dd>
</dl>"
;
} else {
echo 
"<dl id='system-message'>
<dt class='error'>Error</dt>
<dd class='error message fade'>
<ul>
<li>An error happened while reseting password,please contant the admin.</li>
</ul>
</dd>
</dl>"
;
}
}
}
}
?>
<?php
echo '<h2 class="title">Reset Password</h2>';
echo 
'<div class="content-bg">';
echo 
'<div class="content-bgtop">';
echo 
'<div class="content-bgbtm content">';
?>
<center>
<div id="login">
<form action="" method="post" name="login">
<input type="text" name="id" size="50" class="email" placeholder="UserName" />
<br>
<input type="text" name="pin" size="50" class="email" placeholder="PIN" />
<br>
<input type="text" name="email" size="50" class="email" placeholder="Email" />
<br>
<input type="password" name="pw" size="50" class="email" placeholder="New Password" />
<br>
<input type='submit' name='submit' value='Change class='submit'>
</form>
</div>
</center>
<?php
echo '</div>';
echo 
'</div>';
echo 
'</div>';
?>
what is the problem here?
A huge thank you to assistants







guyshitritx is offline  
Old 05/14/2015, 12:06   #2
 
Zoxon's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 352
Received Thanks: 298
Zoxon is offline  
Old 05/14/2015, 21:02   #3


 
Nectix's Avatar
 
elite*gold: 26
The Black Market: 135/0/0
Join Date: Apr 2012
Posts: 23,017
Received Thanks: 3,061


#closed
Nectix is offline  
Closed Thread


Similar Threads Similar Threads
i need script Vote = Silk to my site and VSro file please
03/30/2012 - SRO Private Server - 3 Replies
i need script Vote = Silk to my site and VSro file please any one can help me i need it same duckroad or pantuSro Owner of duckroad or pantuSro please help me or any one know it ?!!!
simple & cool site for vsro
10/29/2011 - SRO Private Server - 12 Replies
Download: ClicKTOChecK :: DOWNLOAD Image: ClicKTOChecK :: IUPLOAD
simple & cool site for vsro
10/27/2011 - Silkroad Online - 0 Replies
Download: ClicKTOChecK :: DOWNLOAD Image: ClicKTOChecK :: IUPLOAD
How to fix a problem? Vsro bug?
09/24/2011 - SRO Private Server - 12 Replies
Arkadslar serverımda item alp verirken bug olyr.Yani itemi alıyorum atıyorm potcudan pot alcam aldım potu daha sonra o potu satyrm parası gelıyr ama cıkıp gırınce parası hala duryr o pot hala ınvetnryde her ıtem boyle ınventorye gırınce bıdhaa gıtmyr nasıl hallederım yardım edecek bırı varmı ??
Vsro Official Site ..
09/08/2011 - SRO Private Server - 8 Replies
Hello Guys IDk how to get the files But I just found The official Downloading Site oF vSro i know im noob at least i tried .. > Here U must translate it With Google Chrome : Game online Con Duong To Lua |Tai game mien phi| Download mien phi| VDC-Net2E| cdtl.ongame.vn



All times are GMT +1. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.