diff --git a/AUTHORS.md b/AUTHORS.md index e2c9dbffcd..44232fb13d 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -24,7 +24,6 @@ Contributors to LibreNMS: - Filippo Giunchedi (filippog) - Lasse Leegaard (lasseleegaard) - Mickael Marchand (mmarchand) +- Mohammad Al-Shami (mohshami) [1]: http://observium.org/ "Observium web site" - - diff --git a/html/install.php b/html/install.php index 3f9d319848..1c625fc004 100644 --- a/html/install.php +++ b/html/install.php @@ -344,7 +344,7 @@ require('../build-base.php'); - +
@@ -409,9 +409,9 @@ EOD; if(!file_exists("../config.php")) { $conf = fopen("../config.php", 'w'); - if ($conf === false) + if ($conf != false) { - if(fwrite($handle, 'We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)"); echo("
<?php\n".stripslashes($config_file)."
"); @@ -419,9 +419,12 @@ EOD; else { $config_file = stripslashes($config_file); - fwrite($handle,$config_file); + fwrite($conf,$config_file); echo("
The config file has been created
"); } + } else { + echo("
We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)
"); + echo("
<?php\n".stripslashes($config_file)."
"); } } ?> @@ -549,3 +552,4 @@ elseif($stage == "6") + diff --git a/includes/rrdtool.inc.php b/includes/rrdtool.inc.php index a2a6fcc02c..1fbe6e4dcb 100644 --- a/includes/rrdtool.inc.php +++ b/includes/rrdtool.inc.php @@ -60,7 +60,7 @@ function rrdtool_pipe_open(&$rrd_process, &$rrd_pipes) * @param array rrd_pipes */ -function rrdtool_pipe_close(&$rrd_process, &$rrd_pipes) +function rrdtool_pipe_close($rrd_process, &$rrd_pipes) { global $debug;