Beispiel #1
0
 function __construct($code, $uri)
 {
     parent::__construct($code);
     $scheme = isset($_SERVER['HTTPS']) ? 'https' : 'http';
     $server = $_SERVER['SERVER_NAME'];
     header("Location: {$scheme}://{$server}{$uri}");
 }