This commit is contained in:
Marc Wäckerlin
2015-03-30 11:25:49 +00:00
parent d919552a3e
commit c1d8d7bc9c

View File

@@ -36,7 +36,7 @@ function checkPath($path, $file) {
/** Get Full Page URL */
function pageUrl() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") $pageURL .= "s";
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]
@@ -167,6 +167,7 @@ function player($video) {
/** Show list and preview images of available videos */
function overview() {
global $DIR;
?><html>
<head>
<title>Videofilme</title>