diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-07-18 09:49:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-07-18 09:49:48 +0200 |
commit | fd12989ef8eab0fc9816decb8bcabccd1d213ee8 (patch) | |
tree | 68b12cc05704f2181a90d69b898f999309a8c036 /install-utils.inc | |
parent | 1a1c15f5da352895fb32daab8550cb3dca8198ac (diff) |
auf 1.10.1 aktualisiert
Diffstat (limited to 'install-utils.inc')
-rw-r--r-- | install-utils.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/install-utils.inc b/install-utils.inc index 4e1aad27..24480f91 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -106,4 +106,20 @@ function dbsource( $fname, $db = false ) { exit(1); } } -?> + +/** + * Get the value of session.save_path + * + * Per http://uk.php.net/manual/en/ref.session.php#ini.session.save-path, + * this might have some additional preceding parts which need to be + * ditched + * + * @return string + */ +function mw_get_session_save_path() { + $path = ini_get( 'session.save_path' ); + $path = substr( $path, strrpos( $path, ';' ) ); + return $path; +} + +?>
\ No newline at end of file |