diff -r 4c6adb48dcfd -r cc0763252b89 install/index.php --- a/install/index.php Thu May 15 21:50:20 2008 +0000 +++ b/install/index.php Fri May 16 10:01:42 2008 +0000 @@ -113,6 +113,11 @@ "\n"; echo " " . _('The type of the PowerDNS database.') . "\n"; echo " \n"; + echo " \n"; + echo " " . _('Poweradmin administrator password') . "\n"; + echo " \n"; + echo " " . _('The password of the Poweradmin administrator. This administrator has full rights to Poweradmin using the web interface.') . "\n"; + echo " \n"; echo "\n"; echo ""; echo ""; @@ -124,16 +129,17 @@ $step++; echo "

" . _('Updating database...') . " "; include_once("../inc/config-me.inc.php"); - include_once("database-structure.inc.php"); $db_user = $_POST['user']; $db_pass = $_POST['pass']; $db_host = $_POST['host']; $db_name = $_POST['name']; $db_type = $_POST['type']; + $pa_pass = $_POST['pa_pass']; require_once("../inc/database.inc.php"); $db = dbConnect(); $db->loadModule('Manager'); $db->loadModule('Extended'); + include_once("database-structure.inc.php"); $current_tables = $db->listTables(); foreach ($def_tables as $table) { if (in_array($table['table_name'], $current_tables)) $db->dropTable($table['table_name']); @@ -179,6 +185,7 @@ echo ""; echo ""; echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -192,6 +199,7 @@ $db_host = $_POST['db_host']; $db_name = $_POST['db_name']; $db_type = $_POST['db_type']; + $pa_pass = $_POST['pa_pass']; $dns_hostmaster = $_POST['dns_hostmaster']; $dns_ns1 = $_POST['dns_ns1']; $dns_ns2 = $_POST['dns_ns2']; @@ -221,6 +229,7 @@ echo ""; echo ""; echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -232,6 +241,7 @@ case 6: $step++; + $pa_pass = $_POST['pa_pass']; $config = ""; }; echo "

"; + echo ""; echo ""; echo ""; echo ""; @@ -267,7 +278,7 @@ case 7: $step++; echo "

" . _('Now we have finished the configuration, you should (must!) remove the directory "install/" from the Poweradmin root directory. You will not be able to use Poweradmin if it exists. Do it now.') . "

"; - echo "

" . _('After you have removed the directory, you can login to Poweradmin with username "admin" and password "admin". You are highly encouraged to change these as soon as you are logged in.') . "

"; + echo "

" . _('After you have removed the directory, you can login to Poweradmin with username "admin" and password "') . $_POST['pa_pass'] . _('". You are highly encouraged to change these as soon as you are logged in.') . "

"; break; default: