ReferenceError: Can't find variable: angular https://www.proautotools.dk/controllers/app.js:9 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/navigation.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/productSeo.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_home.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_queue.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_sponsor.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_search.js:3 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_feedback.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_order.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/_s_stores.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/home.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/cart.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/checkout.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/success.js:3 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/order.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/contact.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/login.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/profile.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/product.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/search.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/code.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/page.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/affiliate.js:4 in global code TypeError: undefined is not an object (evaluating 'app.controller') https://www.proautotools.dk/controllers/affiliateAccount.js:4 in global code TypeError: undefined is not an object (evaluating 'app.service') https://www.proautotools.dk/services/order.js:4 in global code TypeError: undefined is not an object (evaluating 'app.service') https://www.proautotools.dk/services/seo.js:1 in global code TypeError: undefined is not an object (evaluating 'app.service') https://www.proautotools.dk/services/module.js:4 in global code ReferenceError: Can't find variable: $ https://www.proautotools.dk/assets/js/custom.js:2 in global code ReferenceError: Can't find variable: angular https://www.proautotools.dk/assets/js/app.min.176.js:1 in global code"); if ($_SERVER["HTTP_HOST"] == "sjuup.com") { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://sjuup.dk"); die(); } if ($_SERVER["HTTP_HOST"] == "shoppinnet.com") { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://sjuup.com"); die(); } // 301 old links in google $uri = explode("/", $_SERVER["REQUEST_URI"]); if (isset($uri[1])) { if ($uri[1] == "shop.asp") { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://sjuup.com"); die(); } if ($uri[1] == "index.php" || substr($uri[1], 0, 7) == "sitemap" || substr($uri[1], 0, 6) == "upload" || substr($uri[1], 0, 11) == "Default.asp" || substr($uri[1], 0, 10) == "search.asp" || $uri[1] == "en" || $uri[1] == "sv" || $uri[1] == "da" || $uri[1] == "it" || $uri[1] == "de" || $uri[1] == "fr" || $uri[1] == "no" || $uri[1] == "es" || strpos($_SERVER["REQUEST_URI"], "?page=") !== false || strpos($_SERVER["REQUEST_URI"], "?route=") !== false || strpos($_SERVER["REQUEST_URI"], ".asp") !== false || strpos($_SERVER["REQUEST_URI"], ".css") !== false || strpos($_SERVER["REQUEST_URI"], ".js") !== false || strpos($_SERVER["REQUEST_URI"], ".jpg") !== false || strpos($_SERVER["REQUEST_URI"], "%7D%7D") !== false) { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://sjuup.com"); die(); } // *** Switch to danish according to browser language *** if ($_SERVER["HTTP_HOST"] == "www.shoppinnet.com" && $uri[1] == "" && substr( empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? "" : $_SERVER['HTTP_ACCEPT_LANGUAGE'] , 0, 2) == "da") { header("HTTP/1.1 301 Moved Permanently"); header("Location: /gratis-webshop"); die(); } } // Prepare system include_once "config.php"; include_once "api/config.php"; $db = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME); $db->query("set names utf8"); $query = $db->prepare("select * from tblStore WHERE domain = '" . str_replace("www.", "", $_SERVER["HTTP_HOST"]) . "' OR url = '" . explode(".", $_SERVER["HTTP_HOST"])[0] . "' "); $query->execute(); $rows = $query->get_result(); $store = $rows->fetch_assoc(); $db->close(); // *** Check https *** $http = "http"; if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != null) { $http = "https"; } else if (strpos($_SERVER["HTTP_HOST"], "shoppinnet.com") && $_SERVER["HTTP_HOST"] <> "test.shoppinnet.com" && $_SERVER["HTTP_HOST"] <> "teststore.shoppinnet.com" && $_SERVER["HTTP_HOST"] <> "teststore2.shoppinnet.com") { $redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; //$redirect = "https://www.shoppinnet.com" . $_SERVER['REQUEST_URI']; header("HTTP/1.1 301 Moved Permanently"); header("Location: $redirect"); die(); } else if ($store["isSslActive"] == 1 && !strpos($_SERVER['HTTP_HOST'], ".shoppinnet.com")) { $redirect = "https://www." . str_replace("www.", "", $_SERVER['HTTP_HOST']) . $_SERVER['REQUEST_URI']; header("HTTP/1.1 301 Moved Permanently"); header("Location: $redirect"); die(); } //*** Cache *** if ( (strpos($agent, "face") !== false || strpos($agent, "google") !== false || strpos($agent, "bing") !== false || strpos($agent, "baidu") !== false || strpos($agent, "yandex") !== false || strpos($agent, "slurp") !== false || strpos($agent, "spider") !== false || strpos($agent, "statistico") !== false || strpos($agent, "crawl") !== false || strpos($agent, "bot") !== false // || $_SERVER['REMOTE_ADDR'] == "80.62.116.122" ) && $_SERVER['REMOTE_ADDR'] != "46.101.80.209" // Dedicated server ip, not floating ip ){ $url = rtrim($http . "://" . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI'], "/"); $url = str_replace("#cache", "", $url); $md5 = md5($url); $cache = @file_get_contents("file:///mnt/files/" . ENVIRONMENT . "/cache/$md5.html"); if ($cache) { if (time() - filemtime("file:///mnt/files/" . ENVIRONMENT . "/cache/$md5.html") >= 60 * 60 * 24 * 7) { // Update cache every 1 day if (!file_exists("file:///mnt/files/" . ENVIRONMENT . "/cacheQueue/$md5.html")) { file_put_contents("file:///mnt/files/" . ENVIRONMENT . "/cacheQueue/$md5.html", $url); } } die($cache); } else { if (!file_exists("file:///mnt/files/" . ENVIRONMENT . "/cacheQueue/$md5.html")) { // Add url to queue file_put_contents("file:///mnt/files/" . ENVIRONMENT . "/cacheQueue/$md5.html", $url); } // *** We don't want a 503 header, since google don't like many 503's. *** die(); } } // *** Href-Lang *** $hrefLang = "en"; if ($store["translationId"] == 1) {$hrefLang = "da";} if ($store["translationId"] == 2) {$hrefLang = "de";} ?>