|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/abtechsci/mmc15/Membership/ |
Upload File : |
<?php
/************* Membership V2.0 *******************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Membership V2.0 *******************/
/*
The next line is to be placed on top-most of your site:
*/
//require_once('extensions/forgotpass.php');
/* Check forgot password (your form must have S_ID set to 1 */
require_once('languages/language.php');
?>
<form name="forgotpass" id="forgotpass" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" style="display:inline;">
<table width="100%" border="1" cellspacing="0" cellpadding="5">
<tr>
<td colspan="2"><div align="center"><font color="#999999" size="4">Forgot password</font></div></td>
</tr>
<?php
if($message != NULL){
?>
<tr bgcolor="#FFDDDD">
<td colspan="2"><strong><font color="#FF0000"><?php echo $message;?></font></strong></td>
</tr>
<?php } ?>
<tr>
<td width="50%">Please enter your email: </td>
<td width="50%"><input name="user_email" type="text" id="user_email" value="<?php echo $_POST['user_email'];?>">
</td>
</tr>
<?php
if($CF_CAPTHCA == 'IMAGE'){?>
<tr>
<td>Enter Verification Code: </td>
<td><table border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="acont"><div align="center">
<?php
$referenceid = md5(mktime()*rand());
//Generate the random string
$chars = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J","k",
"K","l","L","m","M","n","N","o","O","p","P","q","Q","r","R","s","S","t","T","u","U","v",
"V","w","W","x","X","y","Y","z","Z","1","2","3","4","5","6","7","8","9");
$length = $CF_LENGH;
$textstr = "";
for ($i=0; $i<$length; $i++) {
$textstr .= $chars[rand(0, count($chars)-1)];
}
$new_string = encode_decode($textstr,$CF_ENCDEC);
$image_link = bin2hex($new_string);
?>
<img src="captcha.php?code=<?php echo $image_link;?>">
<input name="registration_id" type="hidden" id="registration_id" value="<?php echo $image_link;?>">
</div></td>
</tr>
<tr>
<td class="acont"><div align="center">
<input name="answer" type="text" id="answer">
</div></td>
</tr>
</table></td>
</tr>
<?php
} else {
$f = fopen($CF_QUESTIONFILE,'r');
while($t = fread($f,102465)){
$content .= $t;
}
fclose($f);
$content = trim(preg_replace('/\/\*.*\*\//ism', '', $content));
$temp = explode("\n",$content);
$random = rand(0,count($temp)-1);
$rand = $temp[$random];
list($question,$registration_id) = explode('\n\\',$rand);
$registration_id = bin2hex(encode_decode($registration_id,$CF_ENCDEC));
?>
<tr>
<td>Answer this: <strong><?php echo $question;?></strong> </td>
<td><input name="answer" type="text" id="answer" value="<?php echo $_POST['answer'];?>">
<input name="registration_id" type="hidden" id="registration_id" value="<?php echo $registration_id;?>"></td>
</tr>
<?php } ?>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" id="Submit" value="Get Pass">
<input name="S_ID" type="hidden" id="S_ID" value="1">
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">[<a href="login.php">Login</a> - <a href="register.php">Register</a>] </div></td>
</tr>
</table>
</form>