diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-08-27 07:59:37 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-08-27 07:59:37 +0000 |
| commit | bbc6cde615bc3e3fc15601f592f30798535ddce2 (patch) | |
| tree | e845412ba50b399e0b70e83b34a0936950b3377e /install_checks.php | |
| parent | 87c9bca6b54a9a2661c1e3e770be9dcde96cd314 (diff) | |
| download | install-bbc6cde615bc3e3fc15601f592f30798535ddce2.tar.gz install-bbc6cde615bc3e3fc15601f592f30798535ddce2.tar.bz2 install-bbc6cde615bc3e3fc15601f592f30798535ddce2.zip | |
clean up settings worth knowing about output and add file_uplods to the mix
Diffstat (limited to 'install_checks.php')
| -rw-r--r-- | install_checks.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/install_checks.php b/install_checks.php index 2f0b702..6961185 100644 --- a/install_checks.php +++ b/install_checks.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/install_checks.php,v 1.12 2006/07/11 22:51:42 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_checks.php,v 1.13 2006/08/27 07:59:37 squareing Exp $ * @package install * @subpackage functions */ @@ -155,12 +155,20 @@ function check_settings() { // settings that are useful to know about $php_ini_gets = array( - array( '<strong>Maximum post size</strong> will restrict the size of files when you upload a file using a form - recommended <strong>8M</strong>.','post_max_size' ), - array( '<strong>Upload max filesize</strong> is related to maximim post size and will also limit the size of uploads - recommended <strong>8M</strong>.','upload_max_filesize' ), - array( '<strong>Maximum execution time</strong> is related to time outs in PHP - affects database upgrades and backups - recommended <strong>60</strong>.','max_execution_time' ), + array( '<strong>File Uploads</strong> specifies whether you are allowed to upload files<br />recommended <strong>On</strong>.','file_uploads' ), + array( '<strong>Maximum post size</strong> will restrict the size of files when you upload a file using a form<br />recommended <strong>8M</strong>.','post_max_size' ), + array( '<strong>Upload max filesize</strong> is related to maximim post size and will also limit the size of uploads<br />recommended <strong>8M</strong>.','upload_max_filesize' ), + array( '<strong>Maximum execution time</strong> is related to time outs in PHP - affects database upgrades and backups<br />recommended <strong>60</strong>.','max_execution_time' ), ); foreach( $php_ini_gets as $php_ini_get ) { - $show[] = $php_ini_get[0].'<br />This value is set to <strong>'.ini_get( $php_ini_get[1] ).'</strong>'; + $value = ini_get( $php_ini_get[1] ); + if( $value == 1 ) { + $value = "On"; + } elseif( $value == 0 ) { + $value = "Off"; + } + + $show[$php_ini_get[1]] = $php_ini_get[0]."<br /><strong>{$php_ini_get[1]}</strong> is set to <strong>$value</strong>"; } $res['required'] = $required; |
