Skip to content

Commit

Permalink
Merge pull request #931 from lechuga16/php81
Browse files Browse the repository at this point in the history
dns
  • Loading branch information
Hackmastr committed Feb 6, 2024
2 parents 3be438a + c33ccba commit dd2bb37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/pages/page.servers.php
Expand Up @@ -38,6 +38,7 @@
$info = [];
$info['sid'] = $res->fields[0];
$info['ip'] = $res->fields[1];
$info['dns'] = gethostbyname($res->fields[1]);
$info['port'] = $res->fields[2];
$info['icon'] = $res->fields[5];
$info['index'] = $i;
Expand Down
4 changes: 2 additions & 2 deletions web/themes/default/page_servers.tpl
Expand Up @@ -40,7 +40,7 @@
<br />
<div align='center'>
<p style="font-size: 13px;">{$server.ip}:{$server.port}</p>
<input type='submit' onclick="document.location = 'steam://connect/{$server.ip}:{$server.port}'" name='button' class='btn game' style='margin:0px;' id='button' value='Join game' />
<input type='submit' onclick="document.location = 'steam://connect/{$server.dns}:{$server.port}'" name='button' class='btn game' style='margin:0px;' id='button' value='Join game' />
<input type='button' onclick="ShowBox('Reloading..','<b>Refreshing the Serverdata...</b><br><i>Please Wait!</i>', 'blue', '', false);document.getElementById('dialog-control').setStyle('display', 'none');xajax_RefreshServer({$server.sid});" name='button' class='btn refresh' style='margin:0;' id='button' value='Refresh' />
</div>
<br />
Expand All @@ -52,7 +52,7 @@
<h2 style="color: #333;">No players in the server</h2><br />
<div align='center'>
<p style="font-size: 13px;">{$server.ip}:{$server.port}</p>
<input type='submit' onclick="document.location = 'steam://connect/{$server.ip}:{$server.port}'" name='button' class='btn game' style='margin:0;' id='button' value='Join game' />
<input type='submit' onclick="document.location = 'steam://connect/{$server.dns}:{$server.port}'" name='button' class='btn game' style='margin:0;' id='button' value='Join game' />
<input type='button' onclick="ShowBox('Reloading..','<b>Refreshing the Serverdata...</b><br><i>Please Wait!</i>', 'blue', '', false);document.getElementById('dialog-control').setStyle('display', 'none');xajax_RefreshServer({$server.sid});" name='button' class='btn refresh' style='margin:0;' id='button' value='Refresh' /><br /><br />
</div>
</div>
Expand Down

0 comments on commit dd2bb37

Please sign in to comment.