<?php if(!loggedIn())header('Location: '.$CONFIG['webAddress']); ?>
<?php require 'header.tpl.php';?>
<?php
#TODO 1: Email-Change
#TODO 2: PW-Change
#TODO 3: Charge Points
#TODO 4: Refer a friend
#TODO 5: Redeem
?>
<!-- SUBNAV -->
<div id="subNav">
  <div class="placeholder"><span class="account-title">My Account</span></div>
</div>
<!-- end SUBNAV -->
<!-- DONATE BODYAREA -->
<div id="bodyArea">
    <?php require 'account_menu.tpl.php'; ?>
    <div class="right">
      <div class="tab-content">
        <div class="tab-pane active" id="accountSettings">
          <div class="account-placeholder">
            <div class="account-settings">Hello, <span><?=$USER['sUsername']?></span>!</div>
            <div class="account-info">
              <div class="account-avatar"></div>
              <div class="account-details">
                <div class="details-title"><span>Account Details</span></div>
                <ul>
                  <li class="grey"><a>Username:<span> <?=$USER['sUsername']?></span></a></li>
				  <li class="grey"><a>Email: <span><?=cryptMail(hideMail($USER['sEmail']))?></span></a></li>
				  <li class="grey"><a>Points: <span><?=$USER['nPoints']?></span></a></li>
				  <li class="grey"><a>RaF Points: <span><?=$USER['nBonusPoints']?></span></a></li>
                </ul>
              </div>
            </div>
            <div class="clearfix"></div>
			<!--<div class="account-info2">
              <div class="account-details">
                <ul>
                  <li class="grey">
					  <a>Refer a friend: Use the following link to refer your friends and earn points for their activity.</br><input style="margin-top:4px; width:500px; cursor: default;" type="text" onclick="this.select();" readonly value="<?=$CONFIG['webAddress'].'?raf='.$USER['sReferCode']?>"></input></a>
				  </li>
                </ul>
              </div>
            </div>
            <div class="clearfix"></div>-->
			
		  </div>
        </div>
      </div>
    </div>
</div>
<!-- END DONATE BODYAREA -->
<div class="clearfix"></div>
<?php require 'footer.tpl.php';?>