From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 14 Sep 2007 13:18:58 +0200 Subject: auf Version 1.11 aktualisiert; Login-Bug behoben --- install-utils.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'install-utils.inc') diff --git a/install-utils.inc b/install-utils.inc index 24480f91..a9892578 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -11,7 +11,9 @@ function install_version_checks() { die( -1 ); } if( version_compare( phpversion(), '5.0.0' ) < 0 ) { - echo "PHP 5.0.0 or higher is required. ABORTING.\n"; + echo "PHP 5.0.0 or higher is required. If PHP 5 is available only when \n". + "PHP files have a .php5 extension, please navigate to index.php5 \n". + "to continue installation. ABORTING.\n"; die( -1 ); } @@ -122,4 +124,17 @@ function mw_get_session_save_path() { return $path; } -?> \ No newline at end of file +/** + * Is dl() available to us? + * + * According to http://uk.php.net/manual/en/function.dl.php, dl() + * is *not* available when `enable_dl` is off, or under `safe_mode` + * + * @return bool + */ +function mw_have_dl() { + return function_exists( 'dl' ) + && is_callable( 'dl' ) + && ini_get( 'enable_dl' ) + && !ini_get( 'safe_mode' ); +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf