From bbefe8544d32b0d07a67a611eb7813c9493d3afb Mon Sep 17 00:00:00 2001 From: Stan Pinte Date: Sat, 26 Feb 2005 17:40:01 +0000 Subject: [PATCH] fixed regexp handling in include_path check --- html/admin/setup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/admin/setup.php b/html/admin/setup.php index cfbb87c85..48b19599b 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -54,7 +54,7 @@ h2.error { // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr $inc_path=get_include_path(); -$inc_path.=':../../include'; +$inc_path.=';..\..\include'; set_include_path($inc_path); include_once('constant.php'); @@ -144,7 +144,7 @@ foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { if ( ini_get("session.use_trans_sid") == false ) { print '

avertissement session.use_trans_sid should be set to true

'; } -if ( ereg("\.\.\/include",ini_get('include_path')) == false ) +if ( ereg("..\/include",ini_get('include_path')) == 0 and ereg("..\\include",ini_get('include_path')) == 0) { print ("

include_path incorrect !!!".ini_get('include_path')."

"); $flag_php++; @@ -155,7 +155,7 @@ if ( ereg("\.\.\/include",ini_get('include_path')) == false ) if ( $flag_php==0 ) { echo '

php.ini est bien configuré

'; } else { - echo '

php mal configurée

'; + echo '

php mal configuré

'; exit -1; } $cn=DbConnect(-2,'phpcompta');