diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-10-29 17:53:39 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-10-29 17:53:39 +0000 |
| commit | 45f3c83e0a91d5fbd6de808fd376e738053eb34a (patch) | |
| tree | a3927bfac151146245b9bb9b0f7000e50668c1a3 /install_checks.php | |
| parent | 6f9f83f5f780eca71966d6dcf995fd75d7a04ccc (diff) | |
| download | install-45f3c83e0a91d5fbd6de808fd376e738053eb34a.tar.gz install-45f3c83e0a91d5fbd6de808fd376e738053eb34a.tar.bz2 install-45f3c83e0a91d5fbd6de808fd376e738053eb34a.zip | |
merge recent changes into HEAD
Diffstat (limited to 'install_checks.php')
| -rw-r--r-- | install_checks.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install_checks.php b/install_checks.php index 7faeef6..d24864e 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.6 2005/08/01 18:40:30 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_checks.php,v 1.7 2005/10/29 17:53:39 squareing Exp $ * @package install * @subpackage functions */ @@ -33,7 +33,6 @@ function check_settings() { global $gBitSmarty,$error,$warning; $config_file = clean_file_path( empty($_SERVER['CONFIG_INC']) ? (KERNEL_PKG_PATH.'config_inc.php') : $_SERVER['CONFIG_INC'] ); - $i = 0; // required settings - if not met, are passed into the array $reqd // PHP system checks @@ -114,12 +113,13 @@ function check_settings() { // recommended php toggles - these don't need explicit explanations on how to rectify them // start with special cases $recommended[$i] = array( 'Memory Limit','memory_limit','shouldbe' => 'at least 8M','actual' => get_cfg_var( 'memory_limit' ) ); - if( eregi_replace( 'M','',get_cfg_var( 'memory_limit' ) ) > 8 ) { + if( eregi_replace( 'M','',get_cfg_var( 'memory_limit' ) ) > 16 ) { $recommended[$i]['passed'] = TRUE; } else { $recommended[$i]['passed'] = FALSE; $gBitSmarty->assign( 'memory_warning', TRUE ); } + $i++; // now continue with easy toggle checks $php_rec_toggles = array( @@ -133,9 +133,9 @@ function check_settings() { array( 'Output Buffering','output_buffering','shouldbe' => 'OFF' ), array( 'Session auto start','session.auto_start','shouldbe' => 'OFF' ), ); - foreach ($php_rec_toggles as $php_rec_toggle) { + foreach( $php_rec_toggles as $php_rec_toggle ) { $php_rec_toggle['actual'] = get_php_setting( $php_rec_toggle[1] ); - if ( get_php_setting( $php_rec_toggle[1] ) == $php_rec_toggle['shouldbe'] ) { + if( get_php_setting( $php_rec_toggle[1] ) == $php_rec_toggle['shouldbe'] ) { $php_rec_toggle['passed'] = TRUE; } else { $php_rec_toggle['passed'] = FALSE; |
