Browse Source

use DIRECTORY_SEPARATOR for windows in config example

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.0@161 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.0
Xuefer 15 years ago
parent
commit
d6dfcc1dc5
  1. 8
      admin/config.php.example

8
admin/config.php.example

@ -9,7 +9,13 @@ $charset = "UTF-8";
// this ob filter is applied for the cache list, not the whole page
function ob_filter_path_nicer($o)
{
$o = str_replace("/home/", "{H}/", $o);
$sep = DIRECTORY_SEPARATOR;
$o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}$sep", $o);
$xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
$o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
if ($sep == '/') {
$o = str_replace("/home/", "{H}/", $o);
}
return $o;
}

Loading…
Cancel
Save