Custom loading screen

I recently started up a TTT server, and I am trying to make a custom loading screen, this is what I currently have


<html>
<script>
function GameDetails( servername, serverurl, mapname, maxplayers, steamid, gamemode ) {}
function DownloadingFile( fileName ) {}
function SetStatusChanged( status ) {}
function SetFilesTotal( total ) {}
function SetFilesNeeded( needed ) {}
</script>
<?php
$mapname = $_GET["%m"];
$authserver = bcsub( $communityid, '76561197960265728' ) & 1;
//Get the third number of the steamid
$authid = ( bcsub( $communityid, '76561197960265728' ) - $authserver ) / 2;
//Concatenate the STEAM_ prefix and the first number, which is always 0, as well as colons with the other two numbers
$steamid = "STEAM_0:$authserver:$authid";

?>
<H1>You are currently connecting to $mapname</H1>
</html>

When joining my players are not seeing anything, what did i do wrong?

Can’t guarantee this is the reason, but your html isn’t fully correct. You don’t have any <body> tag. Not sure if gmod/awesomium requires it but <script> should be <script type=“text/javascript”>

Start with a basic page and make sure that it shows ok.


<html>
    <head>
        <title>Loading Screen</title>
    </head>
    <body>
        If you see this it is working
    </body>
</html>

[editline]23rd July 2013[/editline]

More stuff I see wrong:

mapname = _GET["%m"]; should only be “m”, not “%m” , but that shouldn’t stop it from showing.