mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-14 02:14:53 +02:00
Fix #497 Protocol 12 freePremium
having an account as free, make lots of weirds widgets to appear in game and even some client features unavailable. This unlocks protocol 12 client features for servers who use freePremium in config.lua
This commit is contained in:
@@ -216,6 +216,7 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
||||
$sessionKey .= (isset($account['secret']) && strlen($account['secret']) > 5) ? "\n".$token : "\n";
|
||||
$sessionKey .= "\n".floor(time() / 30);
|
||||
|
||||
$freePremium = (isset($config['freePremium'])) ? $config['freePremium'] : true;
|
||||
$response = array(
|
||||
'session' => array(
|
||||
'fpstracking' => false,
|
||||
@@ -227,7 +228,7 @@ if($_SERVER['HTTP_USER_AGENT'] == "Mozilla/5.0" && $config['ServerEngine'] === '
|
||||
'emailcoderequest' => false,
|
||||
'sessionkey' => $sessionKey,
|
||||
'lastlogintime' => 0,
|
||||
'ispremium' => ($account['premium_ends_at'] > time()) ? true : false,
|
||||
'ispremium' => ($account['premium_ends_at'] > time() || $freePremium) ? true : false,
|
||||
'premiumuntil' => $account['premium_ends_at'],
|
||||
'status' => 'active'
|
||||
),
|
||||
|
Reference in New Issue
Block a user