From dc7d8b5b2d79bfaff8af1f0fceb7ed07ccf3bde0 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Fri, 17 Aug 2007 23:40:02 -0400
Subject: [PATCH] Clean up some of the code. Perplexed as to why no constants. For later review
---
install/install.php | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/install/install.php b/install/install.php
index 0696cde..286cfe2 100644
--- a/install/install.php
+++ b/install/install.php
@@ -36,14 +36,19 @@
//if(is_dir("/usr/local/ispconfig")) die('We will stop here. There is already a ISPConfig installation, use the update script to update this installation.');
error_reporting(E_ALL|E_STRICT);
-echo ' _ _____ _____ _____ _____ __ _ _____ _ _____
-| | / ___/ | _ \ / ___| / _ \ | \ | | | ___| | | / ___|
-| | | |___ | |_| | | | | | | | | \| | | |__ | | | |
-| | \___ \ | ___/ | | | | | | | |\ | | __| | | | | _
-| | ___| | | | | |___ | |_| | | | \ | | | | | | |_| |
-|_| /_____/ |_| \_____| \_____/ |_| \_| |_| |_| \_____/ ';
-echo "\n# Setup routine started...\n";
+//** The banner on the command line
+echo "\n\n".str_repeat('-',80)."\n";
+echo " _____ ___________ _____ __ _
+|_ _/ ___| ___ \ / __ \ / _(_)
+ | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _
+ | | `--. \ __/ | | / _ \| '_ \| _| |/ _` |
+ _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| |
+ \___/\____/\_| \____/\___/|_| |_|_| |_|\__, |
+ __/ |
+ |___/ ";
+
+echo "\n\n>> sInitial configuration \n\n";
//** Include the library with the basic installer functions
require_once('lib/install.lib.php');
@@ -63,7 +68,7 @@
//** Lets go !
$inst = new installer();
-swriteln($inst->lng('This application will install ISPConfig 3 on your server.'));
+swriteln($inst->lng('Following will be a few questions for primary configuration so be careful please',"\n\n"));
//** Select the language
$conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
@@ -80,9 +85,9 @@
//** Get MySQL root credentials
$finished = false;
do {
- $tmp_mysql_server_host = $inst->free_query('MySQL server hostname',$conf['mysql']['host']);
- $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username',$conf['mysql']['admin_user']);
- $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password',$conf['mysql']['admin_password']);
+ $tmp_mysql_server_host = $inst->free_query('MySQL server hostname', $conf['mysql']['host']);
+ $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username', $conf['mysql']['admin_user']);
+ $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password', $conf['mysql']['admin_password']);
//* Initialize the MySQL server connection
if(@mysql_connect($tmp_mysql_server_host, $tmp_mysql_server_admin_user, $tmp_mysql_server_admin_password)) {
--
Gitblit v1.9.1