mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixes #2724 -- Added mysqli to install.php if PHP 7
This commit is contained in:
@ -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'] ?: '';
|
||||
|
Reference in New Issue
Block a user