function is_https(){ if ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) return true; else return false; } $http = (is_https()?'https://':'http://'); $tmpbase=$http.$_SERVER['HTTP_HOST']; //$tmpbase = "http://kunden/way2energy/web/index/"; $tmpname="way2energy : der neue weg zum strom" ?>