Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 14th, 2012  |  syntax: PHP  |  size: 2.37 KB  |  views: 71  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.         echo '<pre>';
  3.         require 'SourceQuery.class.php';
  4.         $Query = new SourceQuery( );
  5.         try
  6.         {$Query->Connect( 'sandbox.almost-there.org', 27015 );
  7. ?>
  8. <!DOCTYPE html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  11. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
  12. <script type="text/javascript" src="/files/scripts/jquery.idTabs.min.js"></script>
  13. <title>Beta Server</title>
  14. <link href='/style/fonts/importCoolvetica.css' rel='stylesheet' type='text/css'>
  15. <style>
  16. * {margin:0;padding:0;border:0;}
  17. body {margin:0;padding:0;border:0;background:#DDDDDD;}
  18. #slab {width:650px;height:75px;font-family:'coolvetica';overflow:hidden;background-image:url('/style/bgs/lines.png');background-repeat:repeat;color:#FFF;}
  19. #menuSelect {position:relative;right:0px;top:0px;text-align:right;}
  20. #menuSelect a:link, #menuSelect a:visited {color:#FFFFFF;text-decoration:none;float:right;font-size:15px;width:60px;;display:inline;}
  21. #content {margin:0px 0px 0px 5px;position:absolute;top:10px;}
  22. .selected {background-color:#0099FF;}
  23. .textControl {position:absolute;top:3px;left:70px;width:450px;}
  24. </style>
  25. </head>
  26. <body>
  27. <div id="slab">
  28.         <div class="imagebox idTabs">
  29.                 <div id="menuSelect">
  30.                         <a class="selected" href="#img1">Info&nbsp;</a><br />
  31.                         <a href="#img2">Players&nbsp;</a><br />
  32.                         <a href="#img3">Links&nbsp;</a><br />
  33.                         <a href="#img4">Embed&nbsp;</a><br />
  34.                 </div>
  35.                 <div id="content">
  36.                         <div id="img1"><img src="http://almost-there.org/images/gmod.png" width="60px" height="60px;" style="vertical-align:top;" /><p class="textControl"><?php $getinfo = $Query->GetInfo(); print_r($getinfo['HostName']); ?></p></div>
  37.                         <div id="img2">Scoreboard?</div>
  38.                         <div id="img3">Yalls niggas need steam and facebook shit up in dish shit</div>
  39.                         <div id="img4">Embed dis shit? Not yet  !</div>
  40.                 </div>
  41.         </div>
  42.         <script type="text/javascript">
  43.                 $(".imagebox").idTabs("!mouseover");
  44.         </script>
  45. </div>
  46. </body>
  47. <!-- TODO LIST
  48. Max players
  49. players currently
  50. map name
  51. ip/dns
  52. hostname
  53. game logo ##Done
  54.  
  55. >>Javasccript showhide  ##Done
  56. >>Embed
  57. >>Player List (scoreboard)
  58. >>Facebook, Steam group, website links
  59.  
  60.  
  61.  
  62. title THEN meta THEN style THEN css THEN Jscripts
  63. -->
  64. </html>
  65. <?php            
  66.         } catch( SQueryException $e ) {
  67.         $Query->Disconnect( );
  68.         echo "Error: " . $e->getMessage( ); }
  69. ?>
clone this paste RAW Paste Data