-
Notifications
You must be signed in to change notification settings - Fork 35
/
aboutpro.php
83 lines (72 loc) · 2.05 KB
/
aboutpro.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
define('INSIDE', true);
$_EnginePath = './';
include($_EnginePath.'common.php');
loggedCheck();
$Now = time();
includeLang('aboutpro');
$_Lang['skinpath'] = $_SkinPath;
foreach($_Lang['Benefits'] as &$Value)
{
$Value = '• '.$Value;
}
$_Lang['ParsedBenefits'] = implode('<br/>', $_Lang['Benefits']);
foreach($_Vars_ProAccountData as $Data)
{
$_Lang['ProArray'][$Data['shopID']]['time'] = $Data['time'];
if($Data['time'] == 1)
{
$_Lang['ProArray'][$Data['shopID']]['thistime'] = '_day';
}
else
{
$_Lang['ProArray'][$Data['shopID']]['thistime'] = '_days';
}
$_Lang['CostVal'.$Data['shopID']] = $Data['cost'];
$_Lang['ShopItemID'.$Data['shopID']] = $Data['shopID'];
}
if($_User['pro_time'] > $Now)
{
$_Lang['ProState'] = $_Lang['ProTill'];
$_Lang['ProTime'] = prettyDate('d m Y H:i:s', $_User['pro_time'], 1);
$_Lang['ProTimeColor'] = 'lime';
foreach($_Lang['ProArray'] as $ShopID => $Data)
{
$_Lang['BuyButton'.$ShopID] = sprintf($_Lang['RenewPro'], $Data['time'], $_Lang[$Data['thistime']]);
}
}
else if($_User['pro_time'] > 0)
{
$_Lang['ProState'] = $_Lang['ProEnded'];
$_Lang['ProTime'] = prettyDate('d m Y H:i:s', $_User['pro_time'], 1);
$_Lang['ProTimeColor'] = 'orange';
foreach($_Lang['ProArray'] as $ShopID => $Data)
{
$_Lang['BuyButton'.$ShopID] = sprintf($_Lang['BuyAgain'], $Data['time'], $_Lang[$Data['thistime']]);
}
}
else
{
$_Lang['ProState'] = $_Lang['NeverHadPro'];
$_Lang['ProStateColor'] = 'red';
foreach($_Lang['ProArray'] as $ShopID => $Data)
{
$_Lang['BuyButton'.$ShopID] = sprintf($_Lang['FirstBuy'], $Data['time'], $_Lang[$Data['thistime']]);
}
}
$_Lang['DarkEnergy_Counter'] = $_User['darkEnergy'];
if($_User['darkEnergy'] >= 15)
{
$_Lang['DarkEnergy_Color'] = 'lime';
}
else if($_User['darkEnergy'] > 0)
{
$_Lang['DarkEnergy_Color'] = 'orange';
}
else
{
$_Lang['DarkEnergy_Color'] = 'red';
}
$page = parsetemplate(gettemplate('about_pro'), $_Lang);
display($page, $_Lang['aboutpro'], false);
?>