# 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 "
" . _('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 "