crashston3
New Member
- Joined
- Mar 25, 2011
- Messages
- 18
- Reaction score
- 0
When I add to a vip player in his account looks like this:
Vip Status: VIP Account, 1309137274 Time left
Ai went to look at the script shopsystem.php lines that added the day of VIP and found this:
Where there has the code $player_vip_time + $buy_offer['days'] * 86400) is the formula of account? Because I could not understand the formula. No way I could not get to 1309137274.
How do I see the value in days ... example:
Vip Status: VIP Account, 30 Days left
Thanks in advance!
Vip Status: VIP Account, 1309137274 Time left
Ai went to look at the script shopsystem.php lines that added the day of VIP and found this:
PHP:
if($player_vip_time > 0)
$buy_player_account->setCustomField('vip_time', $player_vip_time + $buy_offer['days'] * 86400);
else
$buy_player_account->setCustomField('vip_time', time() + $buy_offer['days'] * 86400);
$account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);
$user_premium_points = $user_premium_points - $buy_offer['points'];
Where there has the code $player_vip_time + $buy_offer['days'] * 86400) is the formula of account? Because I could not understand the formula. No way I could not get to 1309137274.
How do I see the value in days ... example:
Vip Status: VIP Account, 30 Days left
Thanks in advance!