diff options
-rw-r--r-- | .htaccess | 7 | ||||
-rw-r--r-- | frames.php (renamed from frames.html) | 2 | ||||
-rw-r--r-- | includes/.htaccess | 2 | ||||
-rw-r--r-- | includes/template_end.php (renamed from includes/template_end.html) | 0 | ||||
-rw-r--r-- | includes/template_head_end.html | 18 | ||||
-rw-r--r-- | includes/template_head_end.php | 10 | ||||
-rw-r--r-- | includes/template_head_start.html | 14 | ||||
-rw-r--r-- | includes/template_head_start.php | 20 | ||||
-rw-r--r-- | includes/template_start.html | 2 | ||||
-rw-r--r-- | includes/template_start.php | 3 | ||||
-rw-r--r-- | index.html | 3 | ||||
-rw-r--r-- | navside.html | 13 | ||||
-rw-r--r-- | pages/about.php (renamed from pages/about.html) | 8 | ||||
-rw-r--r-- | pages/dekomp.html | 6 | ||||
-rw-r--r-- | pages/dekomp.php | 6 | ||||
-rw-r--r-- | pages/exklusiv.html | 6 | ||||
-rw-r--r-- | pages/exklusiv.php | 6 | ||||
-rw-r--r-- | pages/loesung.php (renamed from pages/loesung.html) | 6 | ||||
-rw-r--r-- | pages/sent.php (renamed from pages/sent.html) | 4 | ||||
-rw-r--r-- | pages/start.php (renamed from pages/start.html) | 6 | ||||
-rw-r--r-- | pages/trivia.html | 6 | ||||
-rw-r--r-- | pages/trivia.php | 6 |
22 files changed, 74 insertions, 80 deletions
@@ -1,10 +1,3 @@ -Options +Includes - -AddType text/html .html -AddOutputFilter INCLUDES .html - -DirectoryIndex index.html - Redirect 404 /.env Redirect 404 /.env.example @@ -12,7 +12,7 @@ <frame src="navtop.html" frameBorder="0" border="0" noresize scrolling="no"> <frameset cols="120,*" frameBorder="0" border="0" noresize framespacing="0"> <frame src="navside.html" frameBorder="0" border="0" noresize scrolling="no"> - <frame src="pages/start.html" name="main" frameBorder="0" border="0" noresize> + <frame src="pages/<?= htmlentities(urlencode($_GET["p"] ?? "start.php")) ?>" name="main" frameBorder="0" border="0" noresize> </frameset> </frameset> <noframes> diff --git a/includes/.htaccess b/includes/.htaccess index a13210a..b66e808 100644 --- a/includes/.htaccess +++ b/includes/.htaccess @@ -1 +1 @@ -#Require all denied +Require all denied diff --git a/includes/template_end.html b/includes/template_end.php index 308b1d0..308b1d0 100644 --- a/includes/template_end.html +++ b/includes/template_end.php diff --git a/includes/template_head_end.html b/includes/template_head_end.html deleted file mode 100644 index 1aa5f12..0000000 --- a/includes/template_head_end.html +++ /dev/null @@ -1,18 +0,0 @@ -<!--#if expr='-z v("BODY_BG")'--> - <!--#set var="BODY_BG" value="BLACK"--> -<!--#endif--> -<!--#if expr='-z v("BODY_TX")'--> - <!--#set var="BODY_TX" value="WHITE"--> -<!--#endif--> -<!--#if expr='-z v("BODY_LN")'--> - <!--#set var="BODY_LN" value="#FFFF99"--> -<!--#endif--> -<!--#if expr='-z v("BODY_LV")'--> - <!--#set var="BODY_LV" value="#FFFF99"--> -<!--#endif--> -<!--#if expr='-z v("BODY_LA")'--> - <!--#set var="BODY_LA" value="#FF9999"--> -<!--#endif--> - -</head> -<body bgcolor="<!--#echo var="BODY_BG"-->" background="/images/leather.gif" text="<!--#echo var="BODY_TX"-->" link="<!--#echo var="BODY_LN"-->" vlink="<!--#echo var="BODY_LV"-->" alink="<!--#echo var="BODY_LA"-->"> diff --git a/includes/template_head_end.php b/includes/template_head_end.php new file mode 100644 index 0000000..9eea077 --- /dev/null +++ b/includes/template_head_end.php @@ -0,0 +1,10 @@ +<?php +$BODY_BG ??= "BLACK"; +$BODY_TX ??= "WHITE"; +$BODY_LN ??= "#FFFF99"; +$BODY_LV ??= "#FFFF99"; +$BODY_LA ??= "#FF9999"; +?> + +</head> +<body bgcolor="<?= htmlentities($BODY_BG); ?>" background="/images/leather.gif" text="<?= htmlentities($BODY_TX); ?>" link="<?= htmlentities($BODY_LN); ?>" vlink="<?= htmlentities($BODY_LV); ?>" alink="<?= htmlentities($BODY_LA); ?>"> diff --git a/includes/template_head_start.html b/includes/template_head_start.html deleted file mode 100644 index 41e0017..0000000 --- a/includes/template_head_start.html +++ /dev/null @@ -1,14 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <meta http-equiv="imagetoolbar" content="no"> - <meta http-equiv="MSThemeCompatible" content="no"> - <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> - <title><!--#echo var="PAGE_TITLE"--> - Mystic House Fansite</title> - <script language="JavaScript"> - <!-- - if (window.top == window.self) { - location = "/frames.html"; - } - // --> - </script> diff --git a/includes/template_head_start.php b/includes/template_head_start.php new file mode 100644 index 0000000..150e423 --- /dev/null +++ b/includes/template_head_start.php @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <meta http-equiv="imagetoolbar" content="no"> + <meta http-equiv="MSThemeCompatible" content="no"> + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> + <title><?= htmlentities($PAGE_TITLE ?? "") ?> - Mystic House Fansite</title> + <script language="JavaScript"> + <!-- + function getLocation() { + return "/frames.php?p=" + encodeURIComponent(location.href.split('?')[0].replace(/^.*\//, "")); + } + + if (window.top == window.self) { + location = getLocation(); + } else if ("history" in window.top && "replaceState" in window.top.history) { + window.top.history.replaceState(null, "", getLocation()); + } + // --> + </script> diff --git a/includes/template_start.html b/includes/template_start.html deleted file mode 100644 index 63e9f81..0000000 --- a/includes/template_start.html +++ /dev/null @@ -1,2 +0,0 @@ -<!--#include virtual="./template_head_start.html"--> -<!--#include virtual="./template_head_end.html"--> diff --git a/includes/template_start.php b/includes/template_start.php new file mode 100644 index 0000000..89e5095 --- /dev/null +++ b/includes/template_start.php @@ -0,0 +1,3 @@ +<?php +include __DIR__ . "/template_head_start.php"; +include __DIR__ . "/template_head_end.php"; @@ -1,3 +1,4 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> @@ -10,7 +11,7 @@ <table width="100%" height="100%" cellspacing="0" cellpadding="0"><tr> <td valign="middle" align="center"> <b>Klicken Sie auf das Bild, um die Seite zu betreten!</b><br><br> - <a href="frames.html"><img border="0" src="images/TITEL2.jpg"></a> + <a href="frames.php"><img border="0" src="images/TITEL2.jpg"></a> </td> </tr></table> </body> diff --git a/navside.html b/navside.html index b61d05d..0941293 100644 --- a/navside.html +++ b/navside.html @@ -1,3 +1,4 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> @@ -35,12 +36,12 @@ <body background="images/woodtile.gif" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"><!-- --><img src="images/nav.gif" border="0"> -<a target="main" href="pages/start.html" class="navl nl1" onMouseOver="nava(1)" onMouseOut="blank(1)"><img alt="Startseite" src="/images/blank.gif" width="106" height="34" name="nl1" border="0"></a> -<a target="main" href="pages/trivia.html" class="navl nl2" onMouseOver="nava(2)" onMouseOut="blank(2)"><img alt="Trivia" src="/images/blank.gif" width="106" height="34" name="nl2" border="0"></a> -<a target="main" href="pages/exklusiv.html" class="navl nl3" onMouseOver="nava(3)" onMouseOut="blank(3)"><img alt="Exklusiv" src="/images/blank.gif" width="106" height="34" name="nl3" border="0"></a> -<a target="main" href="pages/dekomp.html" class="navl nl4" onMouseOver="nava(4)" onMouseOut="blank(4)"><img alt="Dekomp" src="/images/blank.gif" width="106" height="34" name="nl4" border="0"></a> -<a target="main" href="pages/loesung.html" class="navl nl5" onMouseOver="nava(5)" onMouseOut="blank(5)"><img alt="Lösung" src="/images/blank.gif" width="106" height="34" name="nl5" border="0"></a> -<a target="main" href="pages/about.html" class="navl nl6" onMouseOver="nava(6)" onMouseOut="blank(6)"><img alt="Über" src="/images/blank.gif" width="106" height="34" name="nl6" border="0"></a> +<a target="main" href="pages/start.php" class="navl nl1" onMouseOver="nava(1)" onMouseOut="blank(1)"><img alt="Startseite" src="/images/blank.gif" width="106" height="34" name="nl1" border="0"></a> +<a target="main" href="pages/trivia.php" class="navl nl2" onMouseOver="nava(2)" onMouseOut="blank(2)"><img alt="Trivia" src="/images/blank.gif" width="106" height="34" name="nl2" border="0"></a> +<a target="main" href="pages/exklusiv.php" class="navl nl3" onMouseOver="nava(3)" onMouseOut="blank(3)"><img alt="Exklusiv" src="/images/blank.gif" width="106" height="34" name="nl3" border="0"></a> +<a target="main" href="pages/dekomp.php" class="navl nl4" onMouseOver="nava(4)" onMouseOut="blank(4)"><img alt="Dekomp" src="/images/blank.gif" width="106" height="34" name="nl4" border="0"></a> +<a target="main" href="pages/loesung.php" class="navl nl5" onMouseOver="nava(5)" onMouseOut="blank(5)"><img alt="Lösung" src="/images/blank.gif" width="106" height="34" name="nl5" border="0"></a> +<a target="main" href="pages/about.php" class="navl nl6" onMouseOver="nava(6)" onMouseOut="blank(6)"><img alt="Über" src="/images/blank.gif" width="106" height="34" name="nl6" border="0"></a> <img src="images/musik.gif" usemap="#mus" border="0" id="musik"> diff --git a/pages/about.html b/pages/about.php index 7d25dbf..09d5771 100644 --- a/pages/about.html +++ b/pages/about.php @@ -1,5 +1,5 @@ -<!--#set var="PAGE_TITLE" value="Ueber"--> -<!--#include virtual="../includes/template_head_start.html"--> +<?php $PAGE_TITLE = "Ueber"; ?> +<?php include __DIR__ . "/../includes/template_head_start.php"; ?> <style type="text/css"> <!-- textarea, input { @@ -20,7 +20,7 @@ button { } --> </style> -<!--#include virtual="../includes/template_head_end.html"--> +<?php include __DIR__ . "/../includes/template_head_end.php"; ?> <h1>Über die Mystic House Corner</h1> @@ -64,4 +64,4 @@ Mystic House Corner: Ein Projekt von Jan W. und Jonas K. </table> </form> -<!--#include virtual="../includes/template_end.html"--> +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/dekomp.html b/pages/dekomp.html deleted file mode 100644 index 2bfaa74..0000000 --- a/pages/dekomp.html +++ /dev/null @@ -1,6 +0,0 @@ -<!--#include virtual="../includes/template_start.html"--> - -<h1>Dekomp</h1> -<p><i>Coming soon...</i></p> - -<!--#include virtual="../includes/template_end.html"--> diff --git a/pages/dekomp.php b/pages/dekomp.php new file mode 100644 index 0000000..503e782 --- /dev/null +++ b/pages/dekomp.php @@ -0,0 +1,6 @@ +<?php include __DIR__ . "/../includes/template_start.php"; ?> + +<h1>Dekomp</h1> +<p><i>Coming soon...</i></p> + +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/exklusiv.html b/pages/exklusiv.html deleted file mode 100644 index 655f955..0000000 --- a/pages/exklusiv.html +++ /dev/null @@ -1,6 +0,0 @@ -<!--#include virtual="../includes/template_start.html"--> - -<h1>Exklusiv</h1> -<p><i>Coming soon...</i></p> - -<!--#include virtual="../includes/template_end.html"--> diff --git a/pages/exklusiv.php b/pages/exklusiv.php new file mode 100644 index 0000000..6272748 --- /dev/null +++ b/pages/exklusiv.php @@ -0,0 +1,6 @@ +<?php include __DIR__ . "/../includes/template_start.php"; ?> + +<h1>Exklusiv</h1> +<p><i>Coming soon...</i></p> + +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/loesung.html b/pages/loesung.php index e17cb5c..3812e88 100644 --- a/pages/loesung.html +++ b/pages/loesung.php @@ -1,5 +1,5 @@ -<!--#set var="PAGE_TITLE" value="Lösung"--> -<!--#include virtual="../includes/template_start.html"--> +<?php $PAGE_TITLE = "Lösung"; ?> +<?php include __DIR__ . "/../includes/template_start.php"; ?> <h1>Mystic House - Die Komplettlösung</h1> <p>Ein Hinweis vorweg: Es kann nicht schaden, hin und wieder zu speichern.</p> @@ -72,4 +72,4 @@ passieren, wenn er mit der Cremedose eingefettet wurde.</p> <p>Nach dem nächsten Schritt landen Sie beim Obergeist McMoss. Geben Sie ihm die Antworten 1-1-1-1 und Sie haben es geschafft.</p> -<!--#include virtual="../includes/template_end.html"--> +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/sent.html b/pages/sent.php index 2449d76..e0a0125 100644 --- a/pages/sent.html +++ b/pages/sent.php @@ -1,4 +1,4 @@ -<!--#include virtual="../includes/template_start.html"--> +<?php include __DIR__ . "/../includes/template_start.php"; ?> <table bgcolor="green" cellspacing="0" cellpadding="2"><tr><td> <table bgcolor="lime" cellspacing="0" cellpadding="12"><tr><td> @@ -6,4 +6,4 @@ </td></tr></table> </td></tr></table> -<!--#include virtual="../includes/template_end.html"--> +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/start.html b/pages/start.php index af115aa..bbfeed6 100644 --- a/pages/start.html +++ b/pages/start.php @@ -1,5 +1,5 @@ -<!--#set var="PAGE_TITLE" value="Startseite"--> -<!--#include virtual="../includes/template_start.html"--> +<?php $PAGE_TITLE = "Startseite"; ?> +<?php include __DIR__ . "/../includes/template_start.php"; ?> <h1 align="center">Herzlich willkommen bei der <i>Mystic House Corner</i>!</h1> @@ -15,4 +15,4 @@ </td></tr></table> </center> -<!--#include virtual="../includes/template_end.html"--> +<?php include __DIR__ . "/../includes/template_end.php"; ?> diff --git a/pages/trivia.html b/pages/trivia.html deleted file mode 100644 index e650b8c..0000000 --- a/pages/trivia.html +++ /dev/null @@ -1,6 +0,0 @@ -<!--#include virtual="../includes/template_start.html"--> - -<h1>Trivia</h1> -<p><i>Coming soon...</i></p> - -<!--#include virtual="../includes/template_end.html"--> diff --git a/pages/trivia.php b/pages/trivia.php new file mode 100644 index 0000000..30f79a3 --- /dev/null +++ b/pages/trivia.php @@ -0,0 +1,6 @@ +<?php include __DIR__ . "/../includes/template_start.php"; ?> + +<h1>Trivia</h1> +<p><i>Coming soon...</i></p> + +<?php include __DIR__ . "/../includes/template_end.php"; ?> |