| 18 | | $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}/", $o); |
| 19 | | $xcachedir = realpath(dirname(__FILE__) . "/../"); |
| 20 | | $o = str_replace($xcachedir . "/", "{XCache}/", $o); |
| 21 | | $o = str_replace("/home/", "{H}/", $o); |
| | 18 | $sep = DIRECTORY_SEPARATOR; |
| | 19 | $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}$sep", $o); |
| | 20 | $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); |
| | 21 | $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); |
| | 22 | if ($sep == '/') { |
| | 23 | $o = str_replace("/home/", "{H}/", $o); |
| | 24 | } |