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/upgrade.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/upgrade.php');


/* Language File */
require_once('languages/language.php');




?>
<form name="upgrade" id="upgrade" 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">Upgrade Your Membership </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 bgcolor="#BEDEDE">
    <td colspan="2"><div align="center"><strong><font color="#999999" size="4">Current Membership Info </font></strong></div></td>
    </tr>
  <tr>
    <td width="50%">Current Membership: </td>
    <td width="50%"><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 bgcolor="#BEDEDE">
    <td colspan="2"><div align="center"><strong><font color="#999999" size="4">Avaiable Memberships</font></strong></div></td>
    </tr>
  <tr>
    <td>Membership Types: </td>
    <td><select id="membership_id" name="membership_id" onChange="document.upgrade.submit();">
		    <option value="">-----------</option>
            <?php
	  foreach($membershipList as $em){
	  	if($em['membership_id'] == $_POST['membership_id']){$sel= ' selected';}else{$sel=NULL;}
	  	echo '<option value="'.$em['membership_id'].'"'.$sel.'>'.$em['membership_title'];
		if($em['membership_free'] == 1){ echo ' [Free]';}
		echo '</option>';
	  }
	  ?>
        </select>
      <noscript><input type="submit" name="Submit" value="Get Rates"></noscript></td>
  </tr>
  <tr>
    <td>Membership List: </td>
    <td><select id="rate_id" name="rate_id" onChange="document.upgrade.submit();">
      <option value="">-----------</option>
      <?php
	 foreach($membershipRates as $em){
	  	if($em['rate_id'] == $_POST['rate_id']){$sel= ' selected';}else{$sel=NULL;}
	  	echo '<option value="'.$em['rate_id'].'"'.$sel.'>'.$em['rate_title'];
		echo ' [ '.$em['rate_amount']. ' Payable Every: '.$em['rate_term'].' '.showTerm($em['rate_term_c']).' ]';
		echo '</option>';
	  }
	  ?>
    </select></td>
  </tr>
  <?php
  if($_POST['rate_id'] != NULL){
	?>
  <tr>
    <td colspan="2"><table width="100%"  border="1" cellspacing="0" cellpadding="5">
      <tr bgcolor="#BEDEDE">
        <td colspan="2"><div align="center"><font color="#999999" size="4"><strong>Membership Info </strong></font></div></td>
      </tr>
      <tr>
        <td width="50%"><font size="2">Membership Title:</font></td>
        <td width="50%"><font size="2"><?=$get_rate['rate_title'];?>
        </font></td>
      </tr>
      <tr>
        <td width="50%"><font size="2">Membership Description: </font></td>
        <td width="50%"><font size="2">
         <?=$get_rate['rate_desc'];?>
        </font></td>
      </tr>
      <tr>
        <td width="50%"><font size="2">Membership Rate: </font></td>
        <td><font size="2">
          <?php echo 'Payment Of: '.$get_rate['rate_amount']. ' [Payable Every: '. $get_rate['rate_term'].' '.showTerm($get_rate['rate_term_c']).']'; ?>
        </font></td>
      </tr>
      <tr>
        <td><font size="2">Renewal: </font></td>
        <td><font size="2">
          <?php
		  if($get_rate['rate_automatic'] == '1'){echo 'Automatic';} else { echo 'Not Automatic';}
			?></font></td>
      </tr>
      <tr bgcolor="#CAFFCA">
        <td colspan="2">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr bgcolor="#999999">
            <td width="50%"><div align="center">
              <blockquote>
                <p><strong><font size="2">Pay Via PAYPAL </font></strong></p>
              </blockquote>
            </div></td>
            <td width="50%"><div align="center"><strong><font size="2">Pay Via 2CHECKOUT </font></strong></div></td>
            </tr>
          <tr>
            <td width="50%"><div align="center">
		<iframe src="payments/paypal/subscribe.php?rate_id=<?=$get_rate['rate_id'];?>" align="middle" width="100%" height="75" frameborder="0"></iframe>
		<noframes>Please <a href="payments/paypal/subscribe.php?rate_id=<?=$get_rate['rate_id'];?>">click here</a> to process your payment.</noframes></div>
		</td>
            <td width="50%"><div align="center">
		<iframe src="payments/2checkout/subscribe.php?rate_id=<?=$get_rate['rate_id'];?>" align="middle" width="100%" height="75" frameborder="0"></iframe>
		<noframes>Please <a href="payments/paypal/subscribe.php?rate_id=<?=$get_rate['rate_id'];?>">click here</a> to process your payment.</noframes>
		</div></td>
            </tr>
        </table>
        </td>
      </tr>
    </table></td>
    </tr>
	<?php } ?>
  <tr bgcolor="#CAFFCA">
    <td colspan="2"><div align="center">[<a href="profile.php">My Profile</a>] [<a href="logout.php">Log out</a>] </div></td>
  </tr>
</table>
</form>

Anon7 - 2021