|
36 | 36 | //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.'); |
37 | 37 |
|
38 | 38 | error_reporting(E_ALL|E_STRICT); |
39 | | -echo ' _ _____ _____ _____ _____ __ _ _____ _ _____ |
40 | | -| | / ___/ | _ \ / ___| / _ \ | \ | | | ___| | | / ___| |
41 | | -| | | |___ | |_| | | | | | | | | \| | | |__ | | | | |
42 | | -| | \___ \ | ___/ | | | | | | | |\ | | __| | | | | _ |
43 | | -| | ___| | | | | |___ | |_| | | | \ | | | | | | |_| | |
44 | | -|_| /_____/ |_| \_____| \_____/ |_| \_| |_| |_| \_____/ '; |
45 | 39 |
|
46 | | -echo "\n# Setup routine started...\n"; |
| 40 | +//** The banner on the command line |
| 41 | +echo "\n\n".str_repeat('-',80)."\n"; |
| 42 | +echo " _____ ___________ _____ __ _ |
| 43 | +|_ _/ ___| ___ \ / __ \ / _(_) |
| 44 | + | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ |
| 45 | + | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |
| 46 | + _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | |
| 47 | + \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | |
| 48 | + __/ | |
| 49 | + |___/ "; |
| 50 | + |
| 51 | +echo "\n\n>> sInitial configuration \n\n"; |
47 | 52 |
|
48 | 53 | //** Include the library with the basic installer functions |
49 | 54 | require_once('lib/install.lib.php'); |
|
63 | 68 |
|
64 | 69 | //** Lets go ! |
65 | 70 | $inst = new installer(); |
66 | | -swriteln($inst->lng('This application will install ISPConfig 3 on your server.')); |
| 71 | +swriteln($inst->lng('Following will be a few questions for primary configuration so be careful please',"\n\n")); |
67 | 72 |
|
68 | 73 | //** Select the language |
69 | 74 | $conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en'); |
|
80 | 85 | //** Get MySQL root credentials |
81 | 86 | $finished = false; |
82 | 87 | do { |
83 | | - $tmp_mysql_server_host = $inst->free_query('MySQL server hostname',$conf['mysql']['host']); |
84 | | - $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username',$conf['mysql']['admin_user']); |
85 | | - $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password',$conf['mysql']['admin_password']); |
| 88 | + $tmp_mysql_server_host = $inst->free_query('MySQL server hostname', $conf['mysql']['host']); |
| 89 | + $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username', $conf['mysql']['admin_user']); |
| 90 | + $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password', $conf['mysql']['admin_password']); |
86 | 91 |
|
87 | 92 | //* Initialize the MySQL server connection |
88 | 93 | if(@mysql_connect($tmp_mysql_server_host, $tmp_mysql_server_admin_user, $tmp_mysql_server_admin_password)) { |
|
0 commit comments