-
Notifications
You must be signed in to change notification settings - Fork 787
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·45 lines (41 loc) · 1.53 KB
/
footer.php
File metadata and controls
executable file
·45 lines (41 loc) · 1.53 KB
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
<table class="donate">
<tr>
<td>
<a href="http://phpipam.net" target='_blank'>phpIPAM IP address management <?php print '[v'. VERSION_VISIBLE. ']'; ?></a>
<?php
// Display SCHEMA database version in development builds
if(PUBLISHED===false) {
print " dbversion ".DBVERSION;
}
// show github tree ref (Docker builds)
if (defined("GIT_VCS_REF")) {
print " git <a href='https://github.com/phpipam/phpipam/tree/".GIT_VCS_REF."' target='_blank'>".GIT_VCS_REF."</a>";
}
?>
</td>
<?php
# footer messages
if(isset($config['footer_message']) && !is_blank($config['footer_message'])) {
print '<td> '.$config['footer_message'].' </td>';
}
if (isset($_SESSION['footer_warnings'])) {
foreach ($_SESSION['footer_warnings'] as $msg) {
print '<td><b>' . _('WARNING') . ': ' . $msg . '</b></td>';
}
}
# exclude install
if($GET->page!="install") { ?>
<td>
<?php print _('In case of problems please contact').' <a href="mailto:'. $User->settings->siteAdminMail .'">'. $User->settings->siteAdminName .'</a>'; ?>
</td>
<?php
/* hide donations button */
if($User->settings->donate == 0) {
print ' <td id="donate" class="hidden-xs hidden-sm" rel="tooltip" data-html="true" title="'._('phpIPAM is free, open-source project').'.<br>'._('If you like the software you can donate by clicking this button to support further development').'.">
<a href="https://phpipam.net/donate/" target="_blank"><input type="image" src="css/images/btn_donate_SM.gif" alt="'._("Donation button").'" name="submit"></a>
</td>';
}
}
?>
</tr>
</table>