-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathupgrade.php
77 lines (65 loc) · 2.56 KB
/
upgrade.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
<?php
// setup includes
require_once('includes/master.inc.php');
// require login
$Auth->requireUser('login.php');
// page title
$title = UCWords(t('extend', 'extend'));
if($Auth->level == 'free user')
{
$title = UCWords(t('upgrade', 'upgrade'));
}
// setup page
define("PAGE_NAME", $title.' '.t("upgrade_page_name", "Account"));
define("PAGE_DESCRIPTION", $title.' '.t("upgrade_meta_description", "Your Account"));
define("PAGE_KEYWORDS", strtolower($title).t("upgrade_meta_keywords", ", account, paid, membership, upload, download, site"));
require_once('_header.php');
?>
<div class="contentPageWrapper">
<div class="pageSectionMainFull ui-corner-all">
<div class="pageSectionMainInternal">
<div id="pageHeader">
<h2><?php echo t("account_status", "account status"); ?></h2>
</div>
<div>
<table class="accountStateTable">
<tbody>
<tr>
<td class="first">
<?php echo UCWords(t('account_type', 'account type')); ?>:
</td>
<td>
<?php echo UCWords($Auth->level); ?>
</td>
</tr>
<?php if($Auth->level != 'free user'): ?>
<tr>
<td class="first">
<?php echo UCWords(t('reverts_to_free_account', 'reverts to free account')); ?>:
</td>
<td>
<?php echo($Auth->level == 'paid user')?dater($Auth->paidExpiryDate):UCWords(t('never', 'never')); ?>
</td>
</tr>
<?php endif ?>
</tbody>
</table>
</div>
<div class="clear"><!-- --></div>
<div id="pageHeader" style="padding-top: 18px;">
<h2><?php echo strtolower(PAGE_NAME); ?></h2>
</div>
<div class="clear"><!-- --></div>
<?php include_once('_upgradeBoxes.inc.php'); ?>
<div id="pageHeader" style="padding-top: 18px;">
<h2><?php echo t("account_benefits", "account benefits"); ?></h2>
</div>
<div class="clear"><!-- --></div>
<?php include_once('_upgradeBenefits.inc.php'); ?>
</div>
</div>
</div>
<div class="clear"></div>
<?php
require_once('_footer.php');
?>