From 0b315bfda68b6d248a372d05d9ea97733f7d3e79 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Fri, 19 May 2017 02:55:27 +0200 Subject: [PATCH] fixed displaying unlimited premium account --- system/pages/accountmanagement.php | 3 ++- system/pages/admin/dashboard.php | 2 +- system/pages/characters.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/system/pages/accountmanagement.php b/system/pages/accountmanagement.php index 30b3e586..3ae895bf 100644 --- a/system/pages/accountmanagement.php +++ b/system/pages/accountmanagement.php @@ -177,11 +177,12 @@ Please enter your account name and your password.
getCustomField("key"); if(!$account_logged->isPremium()) $account_status = 'Free Account'; else - $account_status = 'Premium Account, '.$account_logged->getPremDays().' days left'; + $account_status = 'Premium Account, ' . ($freePremium ? 'Unlimited' : $account_logged->getPremDays() . ' days left') . ''; if(empty($account_reckey)) $account_registred = 'No'; else diff --git a/system/pages/admin/dashboard.php b/system/pages/admin/dashboard.php index 9e989450..4ca2d163 100644 --- a/system/pages/admin/dashboard.php +++ b/system/pages/admin/dashboard.php @@ -74,7 +74,7 @@ if(fetchDatabaseConfig('site_closed_message', $tmp)) Message: (only if closed) - + diff --git a/system/pages/characters.php b/system/pages/characters.php index 81e03585..c36fa760 100644 --- a/system/pages/characters.php +++ b/system/pages/characters.php @@ -12,7 +12,7 @@ defined('MYAAC') or die('Direct access not allowed!'); $title = 'Characters'; -//require(SYSTEM . 'item.php'); +require(SYSTEM . 'item.php'); $groups = new OTS_Groups_List(); function generate_search_table($script = false) {