summaryrefslogtreecommitdiffstats
path: root/templates/show_install_config.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-31 09:46:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-31 09:46:22 +0000
commitfb3f5189882db644e443ebaf4e5e1efdb84d4348 (patch)
tree23bb5b6a297102d31a8fcdf56141c8f52f2907d6 /templates/show_install_config.inc
parent621f007155dc1e3a8a5b916e246018df4a25d4f3 (diff)
downloadampache-fb3f5189882db644e443ebaf4e5e1efdb84d4348.tar.gz
ampache-fb3f5189882db644e443ebaf4e5e1efdb84d4348.tar.bz2
ampache-fb3f5189882db644e443ebaf4e5e1efdb84d4348.zip
fixed up install script and updated sql file
Diffstat (limited to 'templates/show_install_config.inc')
-rw-r--r--templates/show_install_config.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/show_install_config.inc b/templates/show_install_config.inc
index 2f58215d..ba4478fb 100644
--- a/templates/show_install_config.inc
+++ b/templates/show_install_config.inc
@@ -53,6 +53,7 @@
<?php echo _("Step 3 - Setup Initial Account"); ?></a><br />
<br /><br />
<span class="header2">Generate Config File</span>
+<?php echo $GLOBALS['error']->print_error('general'); ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . "?action=create_config"; ?>" enctype="multipart/form-data" >
<table cellpadding="5" cellspacing="0" border="0">
<tr>
@@ -61,15 +62,15 @@
</tr>
<tr>
<td><?php echo _("Desired Database Name"); ?></td>
- <td><input type="textbox" name="local_db" value="<?php echo $_REQUEST['local_db']; ?>" /></td>
+ <td><input type="textbox" name="local_db" value="<?php echo scrub_out($_REQUEST['local_db']); ?>" /></td>
</tr>
<tr>
<td><?php echo _("MySQL Hostname"); ?></td>
- <td><input type="textbox" name="local_host" value="<?php echo $_REQUEST['local_host']; ?>" /></td>
+ <td><input type="textbox" name="local_host" value="<?php echo scrub_out($_REQUEST['local_host']); ?>" /></td>
</tr>
<tr>
<td><?php echo _("MySQL Username"); ?></td>
- <td><input type="textbox" name="local_username" value="username" /></td>
+ <td><input type="textbox" name="local_username" value="<?php echo scrub_out($_REQUEST['local_username']); ?>" /></td>
</tr>
<tr>
<td><?php echo _("MySQL Password"); ?></td>
@@ -121,12 +122,12 @@
<tr>
<td>&nbsp;</td>
<td>
- <a href="<?php echo $http_type . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; ?>?action=show_create_config&local_db=<?php echo $_REQUEST['local_db']; ?>&local_host=<?php echo $_REQUEST['local_host']; ?>">[<?php echo _("Check for Config"); ?>]</a>
+ <a href="<?php echo $http_type . $_SERVER['HTTP_HOST'] . $GLOBALS['php_self']; ?>?action=show_create_config&local_db=<?php echo $_REQUEST['local_db']; ?>&local_host=<?php echo $_REQUEST['local_host']; ?>">[<?php echo _("Check for Config"); ?>]</a>
</td>
</tr>
</table>
<br />
-<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . "?action=show_create_account"; ?>" enctype="multipart/form-data">
+<form method="post" action="<?php echo $GLOBALS['php_self'] . "?action=show_create_account"; ?>" enctype="multipart/form-data">
<input type="Submit" value="Continue to Step 3" />
</form>
</div>