diff options
author | Karl Vollmer <vollmer@ampache.org> | 2011-07-27 14:35:49 -0300 |
---|---|---|
committer | Karl Vollmer <vollmer@ampache.org> | 2011-07-27 14:35:49 -0300 |
commit | ffad56ec182f110c3511ce56d7a3cfe54a6b5de5 (patch) | |
tree | 57dafdf5979889dce1e84dbb11911e2c79870943 /templates | |
parent | 33c629f4ef5e0dfd0e9b6bc0deddb165ffe20df5 (diff) | |
download | ampache-ffad56ec182f110c3511ce56d7a3cfe54a6b5de5.tar.gz ampache-ffad56ec182f110c3511ce56d7a3cfe54a6b5de5.tar.bz2 ampache-ffad56ec182f110c3511ce56d7a3cfe54a6b5de5.zip |
Install now contains two buttons, Download & Write for the config file, there is also
an additional check before that if the config file is writeable
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_install_check.inc.php | 12 | ||||
-rw-r--r-- | templates/show_install_config.inc.php | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/templates/show_install_check.inc.php b/templates/show_install_check.inc.php index 5f9d64f9..42e5e51a 100644 --- a/templates/show_install_check.inc.php +++ b/templates/show_install_check.inc.php @@ -195,5 +195,17 @@ } ?> </td> +</tr><tr> +<td><?php echo _('ampache.cfg.php is writable'); ?></td> +<td> +<?php + if (!check_config_writable()) { + echo debug_result('', false); + } + else { + echo debug_result('', true); + } +?> +</td> </tr> </table> diff --git a/templates/show_install_config.inc.php b/templates/show_install_config.inc.php index c2513bfe..1244b920 100644 --- a/templates/show_install_config.inc.php +++ b/templates/show_install_config.inc.php @@ -66,7 +66,8 @@ require $prefix . '/templates/install_header.inc.php'; <tr> <td> </td> <td> - <input type="submit" value="<?php echo _('Write Config'); ?>" /> + <input type="submit" name="download" value="<?php echo _('Download'); ?>" /> + <input type="submit" name="write" value="<?php echo _('Write'); ?>" <?php if (!check_config_writable()) { echo "disabled "; } ?>/> <input type="hidden" name="htmllang" value="<?php echo $htmllang; ?>" /> <input type="hidden" name="charset" value="<?php echo $charset; ?>" /> </td> |