Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Feel free to edit this file, expand it or w/e.
- // Just make sure you dont mess up ur own administration interface.
- // Functions/Keywords:
- // /Cdate = Current date
- // /Ctime = Current time
- // /MapT = Current map title
- // /MapF = Current map filename
- // /WebVer = Current webadmin version
- // /n = New line (Note that next Web line automatly includes new line code)
- // %frd: <Redirect name>% = Forward code to some other int file or keep in this file but different part
- // WARNING!!!! Redirecting from part A to part B, then in part B to part A will always crash (runaway loop)!
- // %Content: <Webpage content classname>% = Add HTML codes from a UScript class
- // Line type: "Alive/" will keep the connection refreshing page every 5 seconds.
- // Web site content
- [index]
- WebContentLen=3
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2=%frd:Welcome%
- web3=%frd:PageEnding%
- // The CSS
- [CSS]
- WebContentLen=0
- web0= <style>body,ul{margin:0;padding:0}body{width:100%}body,li a,li span{text-align:center}body{color:#222;background:#ebe8e4}form h3{display:inline-flex;width:7em}form select{vertical-align:middle;width:30em}table,td,th{border:0}li a{display:block;color:#fff;text-decoration:none;padding:14px 16px}li span{display:block;color:#ccc;text-decoration:none;padding:14px 16px}li.dropdown{display:inline-block}li:last-child{border-right:0}li{float:left;border-right:1px solid #bbb}table{margin:1em auto}th{color:#fff;line-height:1.2;font-size:16px;font-weight:unset;padding:0 5px;background:#444}tr:nth-child(even){background:#eee}ul{overflow:hidden;background:#333}.dropdown-content a{color:#000;text-decoration:none;display:block;text-align:left;font-weight:600;padding:12px 16px}.dropdown-content{display:none;position:absolute;min-width:160px;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);z-index:1;background:#f9f9f9}.dropdown:hover .dropbtn,li a:hover{background:green}.dropdown:hover .dropdown-content{display:block}#console{width:50%;text-align:left;height:40em;color:green;font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace;margin:0 auto;padding:.25em .5em;background:#000}#nav,tr{background:#fff}#nav,ul{list-style-type:none}#nav{border:1px solid #dedede;width:90%;margin:1px auto}#playerlist table{padding-left:65px}</style>
- // The script to refresh the console and post.
- [console_script]
- WebContentLen=23
- web0= <script>
- web1= setInterval(refresh_console(), 5000); // 5000 = 5 Seconds
- web2= function refresh_console() {
- web3= "use strict";
- web4= var xmlhttp;
- web5= if (window.XMLHttpRequest) {
- web6= xmlhttp = new XMLHttpRequest();
- web7= }
- web8= xmlhttp.onreadystatechange = function () {
- web9= if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- web10= document.getElementById("console").innerHTML = xmlhttp.responseText;
- web11= }
- web12= };
- web13= xmlhttp.open("GET", "/console_get", true);
- web14= xmlhttp.send();
- web15= }
- web16= function submit_console() {
- web17= var formData = document.getElementById("cmdline").name + "=" + document.getElementById("cmdline").value + "&edit=Enter"; console.log(formData);
- web18= var xmlhttp = new XMLHttpRequest();
- web19= xmlhttp.open("post", "ServerConsolePost?UWebAdmin.WebChatWindow");
- web20= xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
- web21= xmlhttp.send(formData);
- web22= }
- web23= </script>
- [console_get]
- WebContentLen=0
- web0=%Content:UWebAdmin.WebChatWindow%
- // The Menu
- [Menu]
- WebContentLen=19
- web0= <div id=nav>
- web1= <ul>
- web2= <li><a href="/index">Index</a></li>
- web3= <li><a href="/MapChange">Change map</a></li>
- web4= <li><a href="/BanListPage">Ban list</a></li>
- web5= <li><a href="/ServerConsole">Console</a></li>
- web6= <li style="float:right"><a href="/Logout">Logout</a></li>
- web7= <li style="float:right"><span>User: %Content:UWebAdmin.GetClientUser%</span></li>
- web8= <li style="float:right"><span>ver /WebVer</span></li>
- web9= <li class="dropdown">
- web10= <a href="javascript:void(0)" class="dropbtn">Configuration</a>
- web11= <div class="dropdown-content">
- web12= <a href="/GameDefaults">Game</a>
- web13= <a href="/ServerInfo">Server Info</a>
- web14= <a href="/MapLinksPage">Maplists</a>
- web15= <a href="/ModLinksPage">Mods</a>
- web16= </div>
- web17= </li>
- web18= </ul>
- web19= </div>
- [Welcome]
- WebContentLen=4
- web0= <h1>Current map: /MapF "/MapT"</h1>
- web1= <form id="playerlist" method="post" action="Index?UWebAdmin.PlayersListDebug">
- web2= %Content:UWebAdmin.PlayersListDebug%
- web3= </form>
- web4= <span>Your IP: %Content:UWebAdmin.GetClientIP% has been logged on server.</span>
- [ServerInfo]
- WebContentLen=5
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2=<h1>Server Configuration</h1>
- web3=%Content:UWebAdmin.RepPageConfig%
- web4=%Content:UWebAdmin.WebChatWindow%
- web5=%frd:PageEnding%
- // Server console page
- [ServerConsole]
- WebContentLen=9
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Console</h1>
- web3= <h3>Playing on /MapF: /MapT</h3>
- web4= <div id="console">
- web5=%Content:UWebAdmin.WebChatWindow%
- web6= </div>
- web7=%frd:ServerConsoleLine%
- web8=%frd:console_script%
- web9=%frd:PageEnding%
- // Server console input line
- [ServerConsoleLine]
- WebContentLen=5
- web0= <form action="ServerConsoleLine?UWebAdmin.WebChatWindow" method="post" id="ServerConsoleLine">
- web1= Console Command:
- web2= <input id="cmdline" type="text" name="Cmd" size="56" value="Say " maxlength="80">
- web4= <input class="button" type="submit" onclick="submit_console(); return false;">
- web5= </form>
- // Restart map
- [MapRestartPage]
- WebContentLen=3
- web0=%frd:PageHeader%
- web1= <h2>Restarting map, please wait.</h2>%Content:UWebAdmin.RestartMapCode%
- web2= <h3>Please click <a href="/Index">here</a> once its done.</h3>
- web3=%frd:PageEnding%
- // Switch map
- [MapSwitchingPage]
- WebContentLen=3
- web0=%frd:PageHeader%w
- web1= <h2>Server is now switching the map, please wait...</h2>
- web2= <script>setTimeout(function(){window.location.href="/Index"},1500);</script>
- web3=%frd:PageEnding%
- // Banlist page
- [BanListPage]
- WebContentLen=6
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Banlist</h1>
- web3= <form method="post" action="BanListPage?UWebAdmin.BanListGen">
- web4=%Content:UWebAdmin.BanListGen%
- web5= </form>
- web6=%frd:PageEnding%
- // User logging out
- [Logout]
- WebContentLen=2
- web0=%frd:PageHeader%
- web1= <h2>You have successfully logged out from webadministration page.</h2>%Content:UWebAdmin.UserLogout%
- web2=%frd:PageEnding%
- // Basic game configures (server packages/server actors/admin/game passwords).
- [GameDefaults]
- WebContentLen=8
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Game Configuration</h1>
- web3= <form method="post" action="GameDefaults?UWebAdmin.GameConfigPage">
- web4=%Content:UWebAdmin.GameConfigPage%
- web5= </form>
- web6= <form method="post" action="GameDefaults?UWebAdmin.NetConfigPage">
- web7=%Content:UWebAdmin.NetConfigPage%
- web8= </form>
- web9=%frd:PageEnding%
- // Maplist Links page
- [MapLinksPage]
- WebContentLen=6
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Maplist configuration</h1>
- web3= <form method="post" action="MapLinksPage?UWebAdmin.MapListLinkPage">
- web4=%Content:UWebAdmin.MapListLinkPage%
- web5= </form>
- web6=%frd:PageEnding%
- // Mod Link page
- [ModLinksPage]
- WebContentLen=4
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Custom mod configuration</h1>
- web3=%Content:UWebAdmin.ModLinkPage%
- web4=%frd:PageEnding%
- // Mod based game configures (works using special hacks).
- [ModConfigPage]
- WebContentLen=3
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2=%MODBASED%
- web3=%frd:PageEnding%
- // Maplist game configures (also works using special hacks).
- [MapLConfigPage]
- WebContentLen=3
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2=%Content:UWebAdmin.MapListPage%
- web3=%frd:PageEnding%
- // Map switch page.
- [MapChange]
- WebContentLen=4
- web0=%frd:PageHeader%
- web1=%frd:Menu%
- web2= <h1>Change Map</h1>
- web3= <h2>*<a href="/MapRestartPage">Restart Current Map</a></h2>
- web4= <form method="post" action="MapSwitchingPage?UWebAdmin.MapSwitchPage">/n%Content:UWebAdmin.MapSwitchPage%</form>
- web5=%frd:PageEnding%
- // Global stuff
- [PageHeader]
- WebContentLen=8
- web0=<!DOCTYPE HTML>
- web1=<html lang="en">
- web2= <head>
- web3= <meta charset="utf-8">
- web4= <meta name="description" content="Server WebAdministration code /WebVer">
- web5= <title>Unreal Gold Server Administration</title>
- web6=%frd:CSS%
- web7= </head>
- web8= <body>
- // The "ending" part of this page.
- [PageEnding]
- webContentLen=1
- web0= </body>
- web1=</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement