<?PHP
 
/**
 
  * @author Horst Nogajski <[email protected]>
 
  * @copyright Copyright (c) 2001 - 2004
 
  *
 
  * @version 3.0
 
  *
 
  * Tabsize: 4
 
  *
 
  **/
 
 
 
    // redirect script, used in conjunction with php-class hn_urlRewrite
 
 
    $root = (strrpos($_SERVER['DOCUMENT_ROOT'],'/')==strlen($_SERVER['DOCUMENT_ROOT'])-1) ? substr($_SERVER['DOCUMENT_ROOT'], 0, strlen($_SERVER['DOCUMENT_ROOT'])-1) : $_SERVER['DOCUMENT_ROOT'];
 
    require_once($root.'/hn_urlrewrite.class.php');
 
 
 
    // calling a class_instance, if we have a pathinfo
 
    if(isset($_SERVER['PATH_INFO']))
 
    {
 
        $redirect =&  new hn_urlRewrite();
 
        $file = $redirect->redirect($_SERVER['PATH_INFO']);
 
        unset($redirect);
 
        require($file);
 
    }
 
    else
 
    {
 
        header('Location: /');
 
        exit(0);
 
    }
 
 
?>
 
 |