summaryrefslogtreecommitdiff
path: root/includes/template_head_start.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-06 13:19:19 +0200
committerJonas Kohl2024-09-06 13:19:19 +0200
commit2d8a37e7ac46aa100f2e460b024d21bae2883f5b (patch)
treef845d1f13c9fa6487b07bcb0d908ffa13463cdf8 /includes/template_head_start.php
parent4da448fe73005e3f3a57671575f99555793adb06 (diff)
Move from SSI to PHP
Diffstat (limited to 'includes/template_head_start.php')
-rw-r--r--includes/template_head_start.php20
1 files changed, 20 insertions, 0 deletions
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>