diff options
Diffstat (limited to 'includes/desktop/template_head_start.php')
-rw-r--r-- | includes/desktop/template_head_start.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/includes/desktop/template_head_start.php b/includes/desktop/template_head_start.php new file mode 100644 index 0000000..6d4a776 --- /dev/null +++ b/includes/desktop/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 "/site.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> |