mirror of
https://github.com/2004Scape/Website.git
synced 2026-11-22 21:50:40 -05:00
* fix: Use environment variable to determine https redirection * fix: Pass HTTPS_ENABLED in routing * fix: Use existing import to pass https var * fix: Pass env to news routes * fix: Pass env to detail, username * fix: Pass env var to creation routes * fix: Pass env var to about * fix: Remove redundant else block * feat(infra): Attempt to run a javascript world configuration via composer * feat(infra): Attempt to pass worlds from server repository to composer, to website container * feat(infra): Attempt to fix path conflict with composer * feat(infra): Fix file name from server repo * feat(infra): Add doc string for the javascript
52 lines
2.4 KiB
Plaintext
52 lines
2.4 KiB
Plaintext
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.7, shrink-to-fit=no">
|
|
<% if (typeof title !== 'undefined') { %>
|
|
<title><%= title %> | 2004Scape</title>
|
|
<% } else { %>
|
|
<title>2004Scape - the massive online adventure game</title>
|
|
<% } %>
|
|
|
|
<style>
|
|
BODY, P, TD { font-family:Arial,Helvetica,sans-serif; font-size:13px; }
|
|
.b {border-style: outset; border-width:3pt; border-color:#373737}
|
|
.b2 {border-style: outset; border-width:3pt; border-color:#570700}
|
|
.e {border:2px solid #382418}
|
|
.c {text-decoration:none}
|
|
.white {text-decoration:none; color:#FFFFFF;}
|
|
.red {text-decoration:none; color:#E10505;}
|
|
.lblue {text-decoration:none; color:#9DB8C3;}
|
|
.dblue {text-decoration:none; color:#0D6083;}
|
|
.yellow {text-decoration:none; color:#FFE139;}
|
|
.green {text-decoration:none; color:#04A800;}
|
|
.purple {text-decoration:none; color:#C503FD;}
|
|
.pink {text-decoration:none; color:#FAA8AA;}
|
|
A.c:hover {text-decoration:underline}
|
|
A.white:hover {text-decoration:underline}
|
|
A.red:hover {text-decoration:underline}
|
|
A.lblue:hover {text-decoration:underline}
|
|
A.dblue:hover {text-decoration:underline}
|
|
A.yellow:hover {text-decoration:underline}
|
|
A.green:hover {text-decoration:underline}
|
|
A.purple:hover {text-decoration:underline}
|
|
A.pink:hover {text-decoration:underline}
|
|
.whitelink { color: white; text-decoration: none }
|
|
</style>
|
|
</head>
|
|
</html>
|
|
<body bgcolor=black text="white" link=#90c040 alink=#90c040 vlink=#90c040 topmargin=0 leftmargin=0>
|
|
<% // https://stackoverflow.com/a/4723302 %>
|
|
<% // https://stackoverflow.com/a/6222280 %>
|
|
<% if (HTTPS_ENABLED) { %>
|
|
<img
|
|
style="display: none;"
|
|
src="https://2004scape.org/img/blank.gif"
|
|
onload="if (location.protocol !== 'https:') { location.replace(`https:${location.href.substring(location.protocol.length)}`); }"
|
|
>
|
|
<% } %>
|
|
<table width=100% height=100% cellpadding=0 cellspacing=0>
|
|
<tr>
|
|
<td valign=middle>
|
|
<center>
|
|
<DIV STYLE="LEFT: 0px; TOP: 0px; WIDTH: 600px; POSITION: relative;"> |