KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/abtechsci/mmc15/Membership/register.php
<?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/register.php');



require_once('languages/language.php');

?>
<form name="register" id="register" 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">Register for an account</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%">Your name: </td>
    <td width="50%"><input name="user_name" type="text" id="user_name" value="<?php echo $_POST['user_name'];?>"> 
      [Required] </td>
  </tr>
  <tr>
    <td width="50%">Your email: </td>
    <td width="50%"><input name="user_email" type="text" id="user_email" value="<?php echo $_POST['user_email'];?>">
      [Required<?php if($CF_E_VER == 1){echo ' AND requires confirmation';}?>] </td>
  </tr>
  <tr>
    <td width="50%">Keep yourself updated on new stuff, care to join our mailing list? </td>
    <td width="50%"><?php if($_POST['user_in_list'] == '1' || $_POST['user_in_list'] == NULL){$sel = ' checked';}else{$sel=NULL;}?>
      <input name="user_in_list" type="radio" value="1"<?php echo $sel;?>>
Yes
<?php if($_POST['user_in_list'] == '2'){$sel = ' checked';}else{$sel=NULL;}?>
<input name="user_in_list" type="radio" value="2"<?php echo $sel;?>>
No</td>
  </tr>
  <tr>
    <td>Please select a password: </td>
    <td width="50%"><input name="user_password" type="password" id="user_password" value="">
      [Required] </td>
  </tr>
  <tr>
    <td>Re-enter the password: </td>
    <td width="50%"><input name="user_password2" type="password" id="user_password2">
      [Required] </td>
  </tr>
  <?php
  foreach($array_custom as $field){
  ?>
  <tr>
    <td><?php echo $field['field_name'];?></td>
    <td width="50%"><input name="fieldxy_<?php echo $field['field_id'];?>" type="text" id="fieldxy_<?php echo $field['field_id'];?>" value="<?php echo $_POST['fieldxy_'.$field[field_id]];?>">
<?php if($field['is_required'] == 1){ echo '[Required]';} ?> </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="Register">
      <input name="S_ID" type="hidden" id="S_ID" value="4">
    </div></td>
    </tr>
  <tr>
    <td colspan="2"><div align="center">[<a href="login.php">Login</a> - <a href="forgotpass.php">Forgot Password</a>] </div></td>
  </tr>
</table>
</form>

Anon7 - 2021