Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 331f9118 authored by Gary Allan's avatar Gary Allan
Browse files

Feature: Add footer warnings

parent 15e44cc6
Branches
No related tags found
No related merge requests found
......@@ -11,17 +11,19 @@
if (defined("GIT_VCS_REF")) {
print " git <a href='https://github.com/phpipam/phpipam/tree/".GIT_VCS_REF."'>".GIT_VCS_REF."</a>";
}
if (phpversion() >= PHPIPAM_PHP_UNTESTED) {
print " "._('is not supported on PHP').phpversion();
}
?>
</td>
<?php
# custom footer message
# 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") { ?>
......
......@@ -17,6 +17,9 @@ define('PHPIPAM_PHP_MIN', "5.4");
if(!defined('PHPIPAM_PHP_UNTESTED'))
define('PHPIPAM_PHP_UNTESTED', "8.2"); // PHP 8.2 or greater is untested & unsupported
if (phpversion() >= PHPIPAM_PHP_UNTESTED) {
$_SESSION['footer_warnings']['php_version'] = _('Unsupported PHP version ') . phpversion();
}
# Empty missing arrays to prevent errors
$missingExt = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment