2006-01-23
Johannes Buchner
Most of the files use the realpath-hack at the beginning. But some hosts deactivated the function realpath for security reasons or whyever.
I replaced those lines with
<?php if(!defined('DOKU_INC')) define('DOKU_INC','./'); ?>
or ('../../') and everything works fine now. We cannot use a configuration setting like $conf["userealpath"], because we include the conf later. Though a function_exists("realpath") will work.
Proposal:
<?php
if(function_exists("realpath"))
if(!defined('DOKU_INC')) define('DOKU_INC','./');
else
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(<your_funky_code>));
?>
and equal for all other calls of realpath.