Lines Matching defs:path
33 // define the include path
39 // define config path (packagers may want to change this to /etc/dokuwiki/)
261 'path' => DOKU_SESSION_PATH,
299 $path = empty($conf[$c]) ? $conf['savedir'] . '/' . $p : $conf[$c];
300 $conf[$c] = init_path($path);
302 $path = fullpath($path);
303 nice_die("The $c ('$p') at $path is not found, isn't accessible or writable.
310 // path to old changelog only needed for upgrading
376 * Returns absolute path
378 * This tries the given path first, then checks in DOKU_INC.
383 * @param string $path
387 function init_path($path)
390 $p = fullpath($path);
392 $p = fullpath(DOKU_INC . $path);
493 //use config if available, trim any slash from end of baseurl to avoid multiple consecutive slashes in the path
608 * @param string $path
613 function fullpath($path, $exists = false)
619 // find the (indestructable) root of the path - keeps windows stuff intact
620 if ($path[0] == '/') {
624 if (preg_match('!^([a-zA-z]:)(.*)!', $path, $match)) {
626 $path = $match[2];
627 } elseif (preg_match('!^(\\\\\\\\[^\\\\/]+\\\\[^\\\\/]+[\\\\/])(.*)!', $path, $match)) {
629 $path = $match[2];
632 $path = str_replace('\\', '/', $path);
634 // if the given path wasn't absolute already, prepend the script path and retry
637 $path = $base . '/' . $path;
640 return fullpath($path, $exists);
646 $path = explode('/', $path);
648 foreach ($path as $p) {