diff --git a/system/libs/pot/OTS_Account.php b/system/libs/pot/OTS_Account.php index fe134a71..8528cf3f 100644 --- a/system/libs/pot/OTS_Account.php +++ b/system/libs/pot/OTS_Account.php @@ -443,9 +443,6 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable throw new E_OTS_NotLoaded(); } - $configFreePremium = configLua('freePremium'); - if(isset($configFreePremium) && getBoolean($configFreePremium)) {return -1;} - if(isset($this->data['premium_ends_at']) || isset($this->data['premend'])) { $col = isset($this->data['premium_ends_at']) ? 'premium_ends_at' : 'premend'; $ret = ceil(($this->data[$col] - time()) / (24 * 60 * 60)); diff --git a/system/src/Models/Account.php b/system/src/Models/Account.php index 613b3029..b11c2a48 100644 --- a/system/src/Models/Account.php +++ b/system/src/Models/Account.php @@ -43,9 +43,6 @@ class Account extends Model { return 0; } - global $config; - if(isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium'])) return -1; - if($this->premdays == 65535){ return 65535; }