| Current Path : /home/wirbesti/unwaehlbar.ch/ |
| Current File : /home/wirbesti/unwaehlbar.ch/baseurl.php |
<?php
$protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === false ? 'http' : 'https';
$host = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$params = $_SERVER['QUERY_STRING'];
$currentUrl = $protocol . '://' . $host . $script . '?' . $params;
if (strpos($currentUrl, "unwaehlbar.ch") !== false) {
$baseUrl = "https://unwaehlbar.ch/";
} else {
$baseUrl = "http://$host/unwaehlbar/";
}