示例#1
0
}
if (isset($_GET["a"])) {
    switch ($_GET["a"]) {
        case "DBImage":
            $DBI = new DBImageGUI();
            $DBI->getHTML($_GET["id"]);
            break;
        case "putInCart":
            $CC = new CookieCart();
            $CC->update($_GET["artikelID"], $_GET["menge"]);
            break;
    }
}
try {
    $domains = new Domains();
    $domain = $domains->getMyDomain();
    $ex = explode("\n", $domain->A("url"));
    if ($domain->A("umleitung") != null) {
        if ($domain->A("umleitung") == "1" and substr_count(str_replace(".uk", "", $_SERVER["HTTP_HOST"]), ".") == 1) {
            header("HTTP/1.1 301 Moved Permanently");
            header("Location: http" . ((isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") ? "s" : "") . "://www." . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
            header("Connection: close");
        }
        if (count($ex) > 0 and $domain->A("umleitung") == "2" and $_SERVER["HTTP_HOST"] != trim($ex[0])) {
            header("HTTP/1.1 301 Moved Permanently");
            header("Location: http" . ((isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") ? "s" : "") . "://" . trim($ex[0]) . $_SERVER["REQUEST_URI"]);
            header("Connection: close");
        }
    }
    if (isset($_GET["permalink"]) and $_GET["permalink"] != "") {
        $ac = new anyC();