troca essa parte aqui
//Here start our new accountmanagement ;D
if($action == "")
{
if($account_logged->getCustomField('vip_time') > 0)
$account_statusOver = '
<span class="green">
<span class="BigBoldText">VIP Account</span>
</span>';
else
$account_statusOver = '
<span class="red">
<span class="BigBoldText">Free Account</span>
</span>';
if($account_logged->getCustomField('vip_time') > 0)
$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_green.gif" alt="free account">';
else
$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_red.gif" alt="free account">';
por essa aq
//Here start our new accountmanagement ;D
if($action == "")
{
if($account_logged->getCustomField('premdays') > 0)
$account_statusOver = '
<span class="green">
<span class="BigBoldText">Premium Account</span>
</span>';
else
$account_statusOver = '
<span class="red">
<span class="BigBoldText">Free Account</span>
</span>';
if($account_logged->getCustomField('premdays') > 0)
$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_green.gif" alt="free account">';
else
$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_red.gif" alt="free account">';
e essa parte aqui
//Here finish our new account management
$account_id = $account_logged->getId();
if($account_id == 1) header("Location: ?subtopic=accountmanagement&action=logout");
if($action == "manage")
{
$account_reckey = $account_logged->getCustomField("key");
$dataAtual = time();
$dataProxima = $account_logged->getCustomField('vip_time');
$data1 = $dataProxima - $dataAtual;
$dataCerta = $data1 / 86400;
if($account_logged->getCustomField('vip_time') > 0)
$account_status = '<b><font color="#00CD00">VIP Account, '. floor($dataCerta) .' days left</font></b>';
else
$account_status = '<b><font color="red">Free Account</font></b>';
if(empty($account_reckey))
$account_registred = '<b><font color="red">No</font></b>';
else
if($config['site']['generate_new_reckey'] && $config['site']['send_emails'])
$account_registred = '<b><font color="green">Yes ( <a href="?subtopic=accountmanagement&action=newreckey"> Buy new Rec key </a> )</font></b>';
else
$account_registred = '<b><font color="green">Yes</font></b>';
$account_created = $account_logged->getCreateDate();
$account_email = $account_logged->getEMail();
$account_email_new_time = $account_logged->getCustomField("email_new_time");
if($account_email_new_time > 1)
$account_email_new = $account_logged->getCustomField("email_new");
$account_rlname = $account_logged->getRLName();
$account_location = $account_logged->getLocation();
por essa aqui
//Here finish our new account management
$account_id = $account_logged->getId();
if($account_id == 1) header("Location: ?subtopic=accountmanagement&action=logout");
if($action == "manage")
{
$account_reckey = $account_logged->getCustomField("key");
$daysVip = $account_logged->getPremDays();
$vipDays = $daysVip * 86400;
$resDate = time() + $vipDays;
if($account_logged->getCustomField('premdays') > 0)
$account_status = '<b><font color="#00CD00">Your Premium Time expires at '.strftime('%b %d %Y, %H:%M:%S', $resDate).'</font></b>';
else
$account_status = '<b><font color="red">Free Account</font></b>';
if(empty($account_reckey))
$account_registred = '<b><font color="red">No</font></b>';
else
if($config['site']['generate_new_reckey'] && $config['site']['send_emails'])
$account_registred = '<b><font color="green">Yes ( <a href="?subtopic=accountmanagement&action=newreckey"> Buy new Rec key </a> )</font></b>';
else
$account_registred = '<b><font color="green">Yes</font></b>';
$account_created = $account_logged->getCreateDate();
$account_email = $account_logged->getEMail();
$account_email_new_time = $account_logged->getCustomField("email_new_time");
if($account_email_new_time > 1)
$account_email_new = $account_logged->getCustomField("email_new");
$account_rlname = $account_logged->getRLName();
$account_location = $account_logged->getLocation();