// 100webroot
// We try to automatically determine the proper webroot for Horde  
// here. This still assumes that applications live under horde/. If
// this results in incorrect results for you, simply change the two
// uses of the $webroot variable in the 'horde' stanza below.
//
// Note for Windows users: the below assumes that your PHP_SELF
// variable uses forward slashes. If it does not, you'll have to tweak
// this.
if (isset($_SERVER['PHP_SELF'])) \{
    $webroot = preg_split(';/;', $_SERVER['PHP_SELF'], 2, PREG_SPLIT_NO_EMPTY);
    $webroot = strstr(dirname(__FILE__), '/' . array_shift($webroot));
    if ($webroot !== false) \{
        $webroot = preg_replace(';/config$;', '', $webroot);
    \} else \{
        $webroot = '/horde';
    \}
\} else \{
    $webroot = '/horde';
\}

