diff -r 0f9739c8db48 -r 59c42a716f95 install/index.php --- a/install/index.php Sat May 03 21:16:50 2008 +0000 +++ b/install/index.php Sat May 03 22:00:51 2008 +0000 @@ -25,7 +25,7 @@ echo "

This installer expects you to have a PowerDNS database accessable from this server. This installer also expects you to have never ran Poweradmin before, or that you want to overwrite the Poweradmin part of the database. If you have had Poweradmin running before, any data in the following tables will be destroyed:

\n"; echo "\n"; echo "

This installer will, of course, not touch the data in the PowerDNS tables of the database. However, it is, of course, recommended you create a backup of your database before proceeding.

"; - echo "

Finaly, if you see any errors during the installation process, a problem report would be. You can report problems (and ask for help) on the poweradmin-users mailinglist or you can create a ticket in the ticketsystem.

"; + echo "

Finally, if you see any errors during the installation process, a problem report would be. You can report problems (and ask for help) on the poweradmin-users mailinglist or you can create a ticket in the ticketsystem.

"; echo "

Do you want to proceed now?

\n"; echo "
"; echo ""; @@ -124,10 +124,8 @@ case 5: $step++; - echo "

The configuration is printed here. You should now create the file " . $local_config_file . " in the Poweradmin root directory yourself. It should contain the following few lines:

"; - - echo "
";
-		echo "\$db_host\t\t= \"" . $_POST['db_host'] . "\";\n" .
+		$config = "";
+			"\n?>\n";
+
+		if (is_writeable($local_config_file)) {
+			$h_config = fopen($local_config_file, "w");
+			fwrite($h_config, $config);
+			fclose($h_config);
+			echo "

The installer was able to write to the file \"" . $local_config_file . "\". A basic configuration, based on the details you have given, has been created.

\n"; + } else { + echo "

The installer is unable to write to the file \"" . $local_config_file . "\" (which is in itself good). The configuration is printed here. You should now create the file " . $local_config_file . " in the Poweradmin root directory yourself. It should contain the following few lines:

\n"; + echo "
";
+			echo $config;
+			echo "
"; + }; echo ""; echo ""; echo ""; @@ -146,7 +155,7 @@ case 6: $step++; - echo "

Now we have finished the configuration, you should remove the directory \"install/\" from the Poweradmin root directory. You will not be able to use the file if it exists. Do it now.

"; + 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 the file if it exists. Do it now.

"; echo "

After you have removed the file, 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.

"; break;