Gruß
René
Code: Alles auswählen
    // Pfad fuer Links sicherstellen
    if (substr_count($_SERVER["REQUEST_URI"], "front_content.php") == 0) {
        $modRewrite = 1;
    } else {
        $modRewrite = 0;
    }
    if ($modRewrite) {
        if (substr_count($_SERVER["REQUEST_URI"], "?") == 0) {
            $MyAddress = $cfgClient[$client]["path"]["htmlpath"] . substr($_SERVER["REQUEST_URI"], 1);
        } else {
            $MyAddress = $cfgClient[$client]["path"]["htmlpath"] . substr($_SERVER["REQUEST_URI"], 1, strpos($_SERVER['REQUEST_URI'], "?") - 2);
        }
    } else {
        $MyAddress = $cfgClient[$client]["path"]["htmlpath"] . 'front_content.php';
    }
    foreach ($_GET as $key => $val) {
        if (($key != 'Rubrik') and ($key != 'Seite') and (!is_array($val))) {
            $Request .= ((strlen($Request) > 0) ? '&' : '?') . $key . '=' . $val;
        }
    }