-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathindex.html.php
54 lines (50 loc) · 1.38 KB
/
index.html.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
<?php GlobalHeader(); ?>
<h1>
<?php Translate("Welcome"); ?>
<?php if (IsUserLoggedIn()) { ?><?php SessionUsername(); ?><?php } ?>
</h1>
<table class="datatable">
<colgroup>
<col width="150">
<col>
</colgroup>
<thead>
<tr>
<th colspan="2"><?php Translate("General information"); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td><?php Translate("Application version"); ?></td>
<td><?php AppVersion(); ?> <small>(<a href="http://svnadmin.insanefactory.com/"><?php Translate("Check for updates"); ?></a>)</small></td>
</tr>
<tr>
<td><?php Translate("PHP version"); ?></td>
<td><?php PrintStringValue("PHPVersion"); ?></td>
</tr>
<?php if (IsUserLoggedIn()) { ?>
<tr>
<td><?php Translate("Logged in as"); ?></td>
<td><?php SessionUsername(); ?></td>
</tr>
<?php } else { ?>
<tr>
<td><?php Translate("Logged in as"); ?></td>
<td><?php Translate("Guest"); ?></td>
</tr>
<?php } ?>
<?php if (IsProviderActive(PROVIDER_AUTHENTICATION)) { ?>
<tr>
<td><?php Translate("Roles of user"); ?></td>
<td>
<ul>
<?php foreach (GetArrayValue("Roles") as $r) { ?>
<li><?php Translate($r->name); ?> - <i><?php Translate($r->description); ?></i></li>
<?php } ?>
</ul>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php GlobalFooter(); ?>