diff --git a/pandora_console/install.php b/pandora_console/install.php
index 75bc096801..4400a24192 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -154,17 +154,25 @@ function install_step1() {
Welcome to Pandora FMS 2.0 installation Wizard
This wizard helps you to quick install Pandora FMS console in your system.
-
In four steps checks all dependencies and make your configuration for a quick installation.
+
In four steps checks all dependencies and make your configuration
+ for a quick installation.
For more information, please refer to documentation.
Pandora FMS Development Team
";
if (file_exists("include/config.php")){
- echo "
Warning: You already have a config.php file. Configuration and database would be overwritten if you continued.
";
+ echo "
Warning: You already have a config.php file.
+ Configuration and database would be overwritten if you continued.
";
}
- echo "
Warning: This installer will overwrite and destroy your existing Pandora FMS configuration and Database. Before continue, please be sure that you have no valuable Pandora FMS data in your Database.
";
+ echo "
Warning: This installer will overwrite and destroy
+ your existing Pandora FMS configuration and Database. Before continue,
+ please be sure that you have no valuable Pandora FMS data in your Database.
+
";
- echo "
Upgrade: If you want to upgrade from Pandora FMS 1.3.x to 2.0 version,
- please download the migration tool from our website at
PandoraFMS.com web site ";
+ echo "
Upgrade:
+ If you want to upgrade from Pandora FMS 1.3.x to 2.0 version,
+ please download the migration tool from our website at
+
PandoraFMS.com web site.
";
+
echo "
";
if ($res > 0) {
- echo "
You have some uncomplete
+ echo "
+
You have some incomplete
dependencies. Please correct them or this installer
will not be able to finish your installation.
Ignore it.
Force install Step #3";
} else {
- echo "

";
+ echo "
+ 
";
}
echo "
@@ -234,16 +246,22 @@ function install_step3() {
Environment and database setup
- This wizard will create your Pandora FMS database, and populate it with all the data needed to run for the first time.
+ This wizard will create your Pandora FMS database,
+ and populate it with all the data needed to run for the first time.
You need a privileged user to create database schema, this is usually root user.
Information about root user will not be used or stored anymore.
- Now, please, complete all details to configure your database and enviroment setup.
+ Now, please, complete all details to configure your database and environment setup.
-
Warning: This installer will overwrite and destroy your existing Pandora FMS configuration and Database. Before continue, please be sure that you have no valuable Pandora FMS data in your Database.
+
+ Warning: This installer will overwrite and destroy your existing
+ Pandora FMS configuration and Database. Before continue,
+ please be sure that you have no valuable Pandora FMS data in your Database.
+
+
@@ -286,7 +310,8 @@ function install_step3() {
function install_step4() {
$pandora_config = "include/config.php";
- if ( (! isset($_POST["user"])) || (! isset($_POST["dbname"])) || (! isset($_POST["host"])) || (! isset($_POST["pass"])) ) {
+ if ( (! isset($_POST["user"])) || (! isset($_POST["dbname"])) || (! isset($_POST["host"])) ||
+ (! isset($_POST["pass"])) ) {
$dbpassword = "";
$dbuser = "";
$dbhost = "";
@@ -335,9 +360,11 @@ function install_step4() {
check_generic ($step4, "Populating database");
$random_password = random_name (8);
- $step5 = mysql_query ("GRANT ALL PRIVILEGES ON $dbname.* to pandora@localhost IDENTIFIED BY '".$random_password."'");
+ $step5 = mysql_query ("GRANT ALL PRIVILEGES ON $dbname.* to pandora@localhost
+ IDENTIFIED BY '".$random_password."'");
mysql_query ("FLUSH PRIVILEGES");
- check_generic ($step5, "Established privileges for user pandora
password
'$random_password'");
+ check_generic ($step5, "Established privileges for user pandora
+ password
'$random_password'");
$step6 = is_writable("include");
check_generic ($step6, "Write permissions to save config file in './include'");
@@ -376,11 +403,15 @@ $config["homeurl"]="'.$url.'"; // Base URL
";
if ($everything_ok == 1) {
- echo "

";
+ echo "
+ 
";
} else {
- echo "
There was some problems. Installation is not completed.
+ echo "
There was some problems.
+ Installation is not completed.
Please correct failures before trying again.
- All database schemes created in this step have been dropped. Try to reload this page if you have a present Pandora FMS configuration.
";
+ All database schemes created in this step have been dropped.
+ Try to reload this page if you have a present Pandora FMS configuration.
+
";
if (mysql_error() != "")
echo "
ERROR: ". mysql_error().".
";
@@ -405,10 +436,14 @@ function install_step5() {
Installation complete
-
You now must delete manually this installer ('install.php') file for security before trying to access to your Pandora FMS console.
-
Now you need to install Pandora FMS server before trying to monitorize anything, please read documentation on how to install it.
-
Don't forget to check http://pandorafms.com for updates.
-
Click here to access to your Pandora FMS console
+
You now must delete manually this installer ('install.php')
+ file for security before trying to access to your Pandora FMS console.
+
Now you need to install Pandora FMS server before trying to monitor anything,
+ please read documentation on how to install it.
+
Don't forget to check http://pandorafms.com
+ for updates.
+
Click here to access to your Pandora FMS console
+