1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-28 08:00:14 -05:00

Almost finished moving Webfront to a plugin.

This commit is contained in:
RaidMax
2015-08-21 20:11:35 -05:00
parent f4016f6691
commit 7af9c31ea0
26 changed files with 252 additions and 939 deletions

View File

@ -1,5 +1,5 @@
<div id="container">
<div class="h0" style="margin-top: 0; line-height:normal;">BANS<br/><a style="padding: 0; margin: 0; font-size: 24px; float: right;" href="/">Back</a></div>
<div id="logo_shit"></div>
{{BANS}}
<div class="h0" style="margin-top: 0; line-height:normal;">BANS<br/><a style="padding: 0; margin: 0; font-size: 24px; float: right;" href="/">Back</a></div>
<div id="logo_shit"></div>
{{BANS}}
</div>

11
Admin/webfront/error.html Normal file
View File

@ -0,0 +1,11 @@
<div id="container">
<div class="h0" style="margin-top: 0; line-height:normal;">ERROR!<br /><a style="padding: 0; margin: 0; font-size: 24px; float: right;" href="/">Back</a></div>
<div id="logo_shit"></div>
<div style="clear:both"></div>
<hr />
<div style="font-size: 16pt; text-align:center">
<br />
Uh Oh, it looks like there was an error processing your request. <br />
Reason: <span style="color: red;">{{ERROR}}</span>
</div>
</div>

View File

@ -394,7 +394,7 @@
<body>
<script type="text/javascript">
function loadChatMessages(server, divElem) {
$(divElem).load("/" + server + "/0/?chat");
$(divElem).load("/chat?server=" + server);
}
</script>
<script type="text/javascript">
@ -402,7 +402,7 @@
var Message = document.getElementById(divElem).value.replace(/\s/g, "%20").replace(/[\\|\/]/g,"");
if (Message.length > 4 && Message.length < 51)
{
$(".null").load("/" + server + "/0/" + userip + "/" + Message + "/?chat");
$(".null").load("/chat?server=" + server);
$("#" + divElem).val('');
}
else if (Message.length <= 4)
@ -415,7 +415,7 @@
function searchPlayerName() {
var nameValue = document.getElementById("search_playerName").value;
if (nameValue.length > 0)
window.location.href = ("/0/0/" + userip + "/" + nameValue + "/?player");
window.location.href = ("/player?query=" + encodeURIComponent(nameValue));
}
</script>
<div id="player_search">

View File

@ -0,0 +1,5 @@
<div id="container">
<div class="h0" style="margin-top: 0">IW4M Admin</div><div id="logo_shit"></div>
<h1 style="margin-top: 0; text-align:center">404 Page not found!</h1>
<hr />
</div>

View File

@ -4,4 +4,4 @@
<div style="clear:both"></div>
<hr/>
{{PLAYER}}
</div>
</div>