forked from web2project/web2project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
132 lines (129 loc) · 4.72 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php /* $Id$ $URL$ */
if (!defined('W2P_BASE_DIR')) {
die('You should not access this file directly.');
}
$perms = &$AppUI->acl();
if (!canView('system')) { // let's see if the user has sys access
$AppUI->redirect('m=public&a=access_denied');
}
$AppUI->savePlace();
$titleBlock = new CTitleBlock('System Administration', '48_my_computer.png', $m, $m . '.' . $a);
$titleBlock->show();
?>
<table class="std" width="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td width="42">
<?php echo w2PshowImage('control-center.png', 42, 42, ''); ?>
</td>
<td align="left" class="subtitle">
<?php echo $AppUI->_('System Status'); ?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<?php
$system = new CSystem();
if ($system->upgradeRequired()) {
?>
<a href="?m=system&u=upgrade"><?php echo $AppUI->_('Apply System Updates'); ?></a> -
<span class="error"><?php echo $AppUI->_('Your upgrade is not complete. Please apply the updates immediately.'); ?></span>
<?php
} else {
echo $AppUI->_('All installed update scripts have been executed.');
}
echo '<br />';
$tzName = w2PgetConfig('system_timezone');
if(strlen($tzName) == 0) {
$tzName = ini_get('date.timezone');
}
if (strlen($tzName) > 0) {
$time = new DateTimeZone($tzName);
$x = new DateTime();
$offset = $time->getOffset($x);
$offset = ($offset >= 0) ? '+'.$offset/3600 : $offset/3600;
echo $AppUI->_('Your system has a default timezone of GMT'.$offset.'.');
} else {
?>
<a href="?m=system&a=systemconfig"><?php echo $AppUI->_('Select a Timezone'); ?></a> -
<span class="error"><?php echo $AppUI->_('You do not have a default server timezone selected. Please select one immediately.'); ?></span>
<?php
}
echo '<br />';
$availableVersion = w2PgetConfig('available_version', '');
if (version_compare($AppUI->getVersion(), $availableVersion, '<')) {
?>
<a href="http://sourceforge.net/projects/web2project/" target="_new"><?php echo $AppUI->_('Upgrade Available!'); ?></a> -
<span class="error"><?php echo $AppUI->_('Your system should be upgraded to v'.$availableVersion.'. Please upgrade at your earliest convenience.'); ?></span>
<?php
} else {
echo $AppUI->_('Your system is the latest version available.');
}
?>
</td>
</tr>
<tr>
<td width="42">
<?php echo w2PshowImage('rdf2.png', 42, 42, ''); ?>
</td>
<td align="left" class="subtitle">
<?php echo $AppUI->_('Language Support'); ?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<a href="?m=system&a=translate"><?php echo $AppUI->_('Translation Management'); ?></a>
</td>
</tr>
<tr>
<td>
<?php echo w2PshowImage('myevo-weather.png', 42, 42, ''); ?>
</td>
<td align="left" class="subtitle">
<?php echo $AppUI->_('Preferences'); ?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<a href="?m=system&a=systemconfig"><?php echo $AppUI->_('System Configuration'); ?></a><br />
<a href="?m=system&a=addeditpref"><?php echo $AppUI->_('Default User Preferences'); ?></a><br />
<a href="?m=system&u=syskeys&a=keys"><?php echo $AppUI->_('System Lookup Keys'); ?></a><br />
<a href="?m=system&u=syskeys"><?php echo $AppUI->_('System Lookup Values'); ?></a><br />
<a href="?m=system&a=custom_field_editor"><?php echo $AppUI->_('Custom Field Editor'); ?></a><br />
<a href="?m=system&a=billingcode"><?php echo $AppUI->_('Billing Code Table'); ?></a>
</td>
</tr>
<tr>
<td>
<?php echo w2PshowImage('power-management.png', 42, 42, ''); ?>
</td>
<td align="left" class="subtitle">
<?php echo $AppUI->_('Modules'); ?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<a href="?m=system&a=viewmods"><?php echo $AppUI->_('View Modules'); ?></a>
</td>
</tr>
<tr>
<td>
<?php echo w2PshowImage('main-settings.png', 42, 42, ''); ?>
</td>
<td align="left" class="subtitle">
<?php echo $AppUI->_('Administration'); ?>
</td>
</tr>
<tr>
<td> </td>
<td align="left">
<a href="?m=system&u=roles"><?php echo $AppUI->_('User Roles'); ?></a><br />
<a href="?m=system&a=acls_view"><?php echo $AppUI->_('Users Permissions Information'); ?></a><br />
<a href="?m=system&a=contacts_ldap"><?php echo $AppUI->_('Import Contacts'); ?></a><br />
<a href="?m=system&a=phpinfo&suppressHeaders=1" target="_blank"><?php echo $AppUI->_('PHP Info'); ?></a>
</td>
</tr>
</table>