Browse Source

improve path nicer to handle win32 DOCUMENT_ROOT

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@926 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
5cef98310f
  1. 3
      admin/common.php

3
admin/common.php

@ -99,6 +99,9 @@ function ob_filter_path_nicer_default($list_html)
{
$sep = DIRECTORY_SEPARATOR;
$docRoot = $_SERVER['DOCUMENT_ROOT'];
if ($sep != '/') {
$docRoot = str_replace('/', $sep, $docRoot);
}
$list_html = str_replace($docRoot, "{DOCROOT}" . (substr($docRoot, -1) == $sep ? $sep : ""), $list_html);
$xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
$list_html = str_replace($xcachedir . $sep, "{XCache}$sep", $list_html);

Loading…
Cancel
Save