diff -r 4066e4c0de01 -r b918c891f81d install/index.php --- a/install/index.php Mon Jul 14 16:19:30 2008 +0000 +++ b/install/index.php Mon Jul 14 20:17:34 2008 +0000 @@ -205,6 +205,10 @@ $dns_ns1 = $_POST['dns_ns1']; $dns_ns2 = $_POST['dns_ns2']; + require_once("../inc/database.inc.php"); + $db = dbConnect(); + include_once("database-structure.inc.php"); + echo "

" . _('You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database.') . " "; if ($db_type == 'mysql') { echo _('In MySQL you should now perform the following command:') . "

"; @@ -218,10 +222,12 @@ "Shall the new user be allowed to create databases? (y/n) n
" . "Shall the new user be allowed to create more new users? (y/n) n
" . "CREATE USER
" . - "$ psql " . $db_name . "
" . - "psql> GRANT SELECT, INSERT, DELETE, UPDATE
" . - "ON " . $db_name . "
" . - "TO " . $db_user . ";

\n"; + "$ psql " . $db_name . "
"; + foreach ($grantTables as $tableName) { + echo "psql> GRANT SELECT, INSERT, DELETE, UPDATE ON " . $tableName . " TO " . $db_user . ";
"; + echo "GRANT
"; + } + echo "

\n"; } echo "

" . _('After you have added the new user, proceed with this installation procedure.') . "

\n"; echo "
";