|
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/profile.php');
require_once('languages/language.php');
?>
<form name="profile" id="profile" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" style="display:inline;">
<table width="100%" border="1" cellspacing="0" cellpadding="5">
<tr bgcolor="#BEDEDE">
<td colspan="2"><div align="center"><strong><font color="#999999" size="4">Your Profile </font></strong></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%">Username:</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 if changed.';}?>
] </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>
<?php
if($recrod_nums <= 0){
echo '<tr><td colspan="2"><strong>No custom fields on system.</strong></td></tr>';
} else {
$array_list = explode("\n",$_POST['custom_fields']);
foreach($array_list as $line){
$line = trim($line);
if($line){
//Format
list($id,$value) = explode('{+|%|+}',$line);
$id = substr($id,1,-1);$value = substr($value,1,-1);
$_POST["cusfield_$id"] = $value;
}
}
foreach($arrayFields as $each){?>
<tr>
<td><?php echo $each['field_name'];?>:</td>
<td width="50%"><input name="cusfield_<?php echo $each['field_id'];?>" type="text" id="cusfield_<?php echo $each['field_id'];?>" value="<?php echo $_POST['cusfield_'.$each['field_id']];?>"></td>
</tr>
<?php }
}
if($CF_E_DEL == 1 AND $_POST['allow_delete'] == 1){?>
<tr>
<td><strong><font color="#FF0000">DELETE ACCOUNT (can't be undone):
</font></strong>
<div align="center">
</div></td>
<td><input name="deleteaccount" type="checkbox" id="deleteaccount" value="yes">
Check To Delete Account <strong><font size="2">[You will be automatically loged out] </font></strong></td>
</tr>
<?php } ?>
<tr>
<td>Enter current password to update profile:</td>
<td width="50%"><input name="user_password" type="password" id="user_password" value="">
</td>
</tr>
<tr>
<td colspan="2"><font color="#0000FF">Create a new password: </font></td>
</tr>
<tr>
<td>Enter new password: </td>
<td width="50%"><input name="new_password" type="password" id="new_password"></td>
</tr>
<tr bgcolor="#BEDEDE">
<td colspan="2"><div align="center"><strong><font color="#999999" size="4">Membership Info </font></strong></div></td>
</tr>
<tr>
<td>Current Membership: </td>
<td><strong><?php echo $get_membership['membership_title'];?></strong></td>
</tr>
<?php
if($get_membership['membership_free'] != 1){
?>
<tr>
<td>Current Membership Rate: </td>
<td><strong><?php
if($get_payment['rate_amount'] <= 0){
echo 'You paid nothing.';
} else {
echo 'You paid $'.$get_payment['rate_amount'].' On: '. format_date($get_payment['payment_date']);
?></strong></td>
</tr>
<tr>
<td>Membership Expires: </td>
<td><strong><?php
echo $daysDiffer.' Days';
?></strong></td>
</tr>
<?php }
}?>
<tr>
<td colspan="2"><div align="center">[<a href="upgrade.php">Upgrade Membership</a>]</div></td>
</tr>
<tr bgcolor="#BEDEDE">
<td colspan="2"><div align="center">
<input type="submit" name="Submit" id="Submit" value="Update Profile">
<input name="S_ID" type="hidden" id="S_ID" value="3">
</div></td>
</tr>
<tr bgcolor="#CAFFCA">
<td colspan="2"><div align="center"><a href="logout.php">[Log out]</a> </div></td>
</tr>
</table>
</form>