(int)$t_minver[$i] ) { return true; } } # if we get here, the versions must match exactly so: return true; } # -------------------- # Enforce our minimum requirements if ( ! php_version_at_least( PHP_MIN_VERSION ) ) { ob_end_clean(); echo 'Your version of PHP is too old. Webnotes requires PHP version ' . PHP_MIN_VERSION . ' or newer
'; phpinfo(); die(); } ini_set('magic_quotes_runtime', 0); # Experimental support for $_* auto-global variables in PHP < 4.1.0 if ( ! php_version_at_least( '4.1.0' ) ) { global $_REQUEST, $_GET, $_POST, $_COOKIE, $_SERVER; $_GET = $HTTP_GET_VARS; $_POST = $HTTP_POST_VARS; $_COOKIE = $HTTP_COOKIE_VARS; $_SERVER = $HTTP_SERVER_VARS; $_REQUEST = $HTTP_COOKIE_VARS; foreach ($HTTP_POST_VARS as $key => $value) { $_REQUEST[$key] = $value; } foreach ($HTTP_GET_VARS as $key => $value) { $_REQUEST[$key] = $value; } } # @@@ Experimental # deal with register_globals being Off # @@@ NOTE we want to get rid of this once we start getting all # our GPC variables with functions. In fact we may want to # turn off register_global_variables if we can if ( false == ini_get( 'register_globals' ) ) { extract( $_REQUEST ); extract( $_SERVER ); } ?>