diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
commit | 8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch) | |
tree | cd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /install-utils.inc | |
parent | d7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff) |
auf Version 1.11 aktualisiert; Login-Bug behoben
Diffstat (limited to 'install-utils.inc')
-rw-r--r-- | install-utils.inc | 19 |
1 files changed, 17 insertions, 2 deletions
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 <a href=\"index.php5\">index.php5</a> \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 |