# HG changeset patch # User rejo # Date 1210932102 0 # Node ID cc0763252b895c398c2ce98584a37bf2d39b52f0 # Parent 4c6adb48dcfdd68f3f4701d2807281f065170b66 [feladat @ 271] Password of Poweradmin administrator is now asked (and used) during installation procedure, avoiding the need of using a default password. diff -r 4c6adb48dcfd -r cc0763252b89 docs/i18n-template-php.pot --- a/docs/i18n-template-php.pot Thu May 15 21:50:20 2008 +0000 +++ b/docs/i18n-template-php.pot Fri May 16 10:01:42 2008 +0000 @@ -872,7 +872,10 @@ msgstr "" #: index.php:213 -msgid "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." +msgid "After you have removed the directory, you can login to Poweradmin with username \"admin\" and password \"" +msgstr "" + +msgid "\". You are highly encouraged to change these as soon as you are logged in." msgstr "" msgid "Invalid value for name field of SRV record." @@ -890,4 +893,11 @@ msgid "Invalid characters have been used in this record." msgstr "" +msgid "Poweradmin administrator password" +msgstr "" +msgid "The password of the Poweradmin administrator. This administrator has full rights to Poweradmin using the web interface." +msgstr "" + + + diff -r 4c6adb48dcfd -r cc0763252b89 install/database-structure.inc.php --- a/install/database-structure.inc.php Thu May 15 21:50:20 2008 +0000 +++ b/install/database-structure.inc.php Fri May 16 10:01:42 2008 +0000 @@ -281,7 +281,7 @@ ); $def_remaining_queries = array( - "INSERT INTO users VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3','Administrator','admin@example.net','Administrator with full rights.',1,1)", + "INSERT INTO users VALUES (1,'admin'," . $db->quote(md5($pa_pass)) . ",'Administrator','admin@example.net','Administrator with full rights.',1,1)", "INSERT INTO perm_templ VALUES (1,'Administrator','Administrator template with full rights.')", "INSERT INTO perm_templ_items VALUES (249,1,53)" ); 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: diff -r 4c6adb48dcfd -r cc0763252b89 locale/nl_NL/LC_MESSAGES/messages.mo Binary file locale/nl_NL/LC_MESSAGES/messages.mo has changed diff -r 4c6adb48dcfd -r cc0763252b89 locale/nl_NL/LC_MESSAGES/nl.po --- a/locale/nl_NL/LC_MESSAGES/nl.po Thu May 15 21:50:20 2008 +0000 +++ b/locale/nl_NL/LC_MESSAGES/nl.po Fri May 16 10:01:42 2008 +0000 @@ -934,8 +934,12 @@ msgstr "De configuratie is afgerond. U moet nu de directory \"install/\" uit de Poweradmin hoofd directory verwijderen. U kunt geen gebruik maken van Poweradmin als deze directory bestaat." #: index.php:213 -msgid "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." -msgstr "Nadat u de directory hebt verwijderd kunt u op Poweradmin inloggen met gebruikersnaam \"admin\" en het wachtwoord \"admin\". U wordt zeer aangeraden deze direct te wijzigen." +msgid "After you have removed the directory, you can login to Poweradmin with username \"admin\" and password \"" +msgstr "Nadat u de directory hebt verwijderd kunt u op Poweradmin inloggen met gebruikersnaam \"admin\" en het wachtwoord \"" + +#: index.php:213 +msgid "\". You are highly encouraged to change these as soon as you are logged in." +msgstr "\". U wordt zeer aangeraden deze direct te wijzigen." msgid "Invalid value for name field of SRV record." @@ -953,5 +957,8 @@ msgid "Invalid characters have been used in this record." msgstr "U heeft ongeldige characters gebruikt in het record." +msgid "Poweradmin administrator password" +msgstr "Wachtwoord van Poweradmin beheerder" - +msgid "The password of the Poweradmin administrator. This administrator has full rights to Poweradmin using the web interface." +msgstr "Het wachtwoord van de Poweradmin beheerder. Deze beheerder heeft via de web interface alle rechten in Poweradmin."