--- mantis-1.1.6.orig/admin/install.php 2008-12-09 20:20:28.000000000 +0100
+++ mantis-1.1.6//admin/install.php 2008-12-28 19:39:50.493771722 +0100
@@ -397,10 +397,18 @@
<tr>
<td>
+ <div style="background-color: #FCC; padding: 5px; border: 1px solid red;">
+ To change any of the disabled options below, edit /etc/mantis/config_inc.php and reload this page!
+ </div>
+ </td>
+</tr>
+
+<tr>
+ <td>
Type of Database
</td>
<td>
- <select name="db_type">
+ <select disabled="true" name="db_type">
<?php
if ( $f_db_type == 'mysql' ) {
echo '<option value="mysql" selected="selected">MySql (default)</option>';
@@ -447,7 +455,7 @@
Hostname (for Database Server)
</td>
<td>
- <input name="hostname" type="textbox" value="<?php echo $f_hostname ?>"></input>
+ <input name="hostname" type="textbox" disabled="disabled" value="<?php echo $f_hostname ?>"></input>
</td>
</tr>
@@ -456,7 +464,7 @@
Username (for Database)
</td>
<td>
- <input name="db_username" type="textbox" value="<?php echo $f_db_username ?>"></input>
+ <input name="db_username" type="textbox" disabled="disabled" value="<?php echo $f_db_username ?>"></input>
</td>
</tr>
@@ -465,7 +473,7 @@
Password (for Database)
</td>
<td>
- <input name="db_password" type="password" value="<?php echo ( !is_blank( $f_db_password ) ? CONFIGURED_PASSWORD : "" ) ?>"></input>
+ <input name="db_password" type="password" disabled="disabled" value="<?php echo ( !is_blank( $f_db_password ) ? CONFIGURED_PASSWORD : "" ) ?>"></input>
</td>
</tr>
@@ -474,7 +482,7 @@
Database name (for Database)
</td>
<td>
- <input name="database_name" type="textbox" value="<?php echo $f_database_name ?>"></input>
+ <input name="database_name" type="textbox" disabled="disabled" value="<?php echo $f_database_name ?>"></input>
</td>
</tr>
<tr>
@@ -762,6 +770,9 @@
$t_config_filename = $g_absolute_path . 'config_inc.php';
$t_config_exists = file_exists ( $t_config_filename );
?>
+<?php
+if (0 == 1) {
+?>
<table width="100%" border="0" cellpadding="10" cellspacing="1">
<tr>
<td bgcolor="#e8e8e8" colspan="2">
@@ -832,7 +843,9 @@
?>
</table>
-
+<?php
+}
+?>
<?php
if ( false == $g_failed ) {
$t_install_state++;