Fixes #2724 -- Added mysqli to install.php if PHP 7

This commit is contained in:
Arjit Chaudhary
2016-01-10 03:23:34 +05:30
parent af95e46a50
commit 815a3e72e6

View File

@ -15,8 +15,13 @@ if(file_exists('../config.php') && $stage != "6") {
}
// List of php modules we expect to see
$modules = array('gd','mysql','snmp','mcrypt');
// $version_id = $major_version * 10000 + $minor_version * 100 + $release_version;
if (PHP_VERSION_ID < 70000) {
$modules = array('gd','mysql','snmp','mcrypt');
}
else {
$modules = array('gd','mysqli','snmp','mcrypt');
}
$dbhost = @$_POST['dbhost'] ?: 'localhost';
$dbuser = @$_POST['dbuser'] ?: 'librenms';
$dbpass = @$_POST['dbpass'] ?: '';