refactor: validate.php improvements (#6973)

Always output header (may be missing mysql data)
Improve version display, now looks like '1.28-129-g74e6c3edf' <tag>-<commits since tag>-<shortag>
Add mysqli to the list of required extensions, check extensions before init
Add dbIsConnected() function, used to check if we have db in version_info()
Do not die on IPv4 and IPv6 so validate can print errors.
Move git checks so they are output together
fix rrdtool 1.7.0 reports version as 1.7.01.7.0
This commit is contained in:
Tony Murray
2017-07-17 19:02:28 +01:00
committed by Neil Lathwood
parent 97828eceba
commit 1e77d4b3ea
5 changed files with 145 additions and 87 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ $config['install_dir'] = $install_dir;
chdir($install_dir);
if (!getenv('TRAVIS')) {
require_once 'Net/IPv4.php';
require_once 'Net/IPv6.php';
include_once 'Net/IPv4.php';
include_once 'Net/IPv6.php';
}
# composer autoload