diff --git a/tools/PHP/RSS1.0.php b/tools/PHP/RSS1.0.php deleted file mode 100644 index 30eb3258594440204961013a71fd75b37d1fb929..0000000000000000000000000000000000000000 --- a/tools/PHP/RSS1.0.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php -header("Content-type: text/xml; charset=ISO-8859-1"); -echo '<?xml version="1.0" encoding="ISO-8859-1"?>'; -echo "\n"; -echo '<rdf:RDF'; -echo ' xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'; -echo "\n"; -echo ' xmlns="http://purl.org/rss/1.0/"'; -echo "\n"; -echo ' xmlns:dc="http://purl.org/dc/elements/1.1/"'; -echo "\n"; -echo ' xmlns:srb2ms="http://srb2.servegame.org/SRB2MS/elements/"'; -echo "\n"; -echo '>'; -echo "\n"; -echo "\n"; -echo ' <channel rdf:about="http://srb2.servegame.org/">'; -echo "\n"; -echo ' <title>SRB2 Master Server RSS Feed</title>'; -echo "\n"; -echo ' <link>http://srb2.servegame.org/</link>'; -echo "\n"; -echo ' <description>Playing around with RSS</description>'; -echo "\n"; -//echo ' <language>en-us</language>'; -//echo "\n"; - $fd = fsockopen("srb2.servegame.org", 28900, $errno, $errstr, 5); -// $fd = 0; - if ($fd) - { - $buff = "000012400000"; - fwrite($fd, $buff); - while (1) - { - $content=fgets($fd, 13); // skip 13 first bytes - $content=fgets($fd, 1024); - echo "$content"; - if (feof($fd)) break; - } - fclose($fd); - } - else - { - echo '<items>'; - echo '<rdf:Seq>'; - echo '<rdf:li rdf:resource="http://srb2.servegame.org/" />'; - echo '</rdf:Seq>'; - echo '</items>'; - echo '</channel>'; - echo "\n"; - echo '<item rdf:about="http://srb2.servegame.org/"> '; - echo '<title>No master server</title><dc:description>The master server is not running</dc:description></item>'; - } -?> -</rdf:RDF> \ No newline at end of file diff --git a/tools/PHP/RSS92.php b/tools/PHP/RSS92.php deleted file mode 100644 index 4dd194089a4f8085d947dcfaee6760881cf2bbe4..0000000000000000000000000000000000000000 --- a/tools/PHP/RSS92.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -header("Content-type: text/xml; charset=ISO-8859-1"); -echo '<?xml version="1.0" encoding="ISO-8859-1" ?>'; -echo "\n"; -echo '<rss version="0.92">'; -echo "\n"; -echo ' <channel>'; -echo "\n"; -echo ' <title>SRB2 Master Server RSS Feed</title>'; -echo "\n"; -echo ' <description>Playing around with RSS</description>'; -echo "\n"; -echo ' <link>http://srb2.servegame.org/</link>'; -echo "\n"; -echo ' <language>en-us</language>'; -echo "\n"; - $fd = fsockopen("srb2.servegame.org", 28900, $errno, $errstr, 5); - if ($fd) - { - $buff = "000012380000"; - fwrite($fd, $buff); - while (1) - { - $content=fgets($fd, 13); // skip the next 13 bytes - $content=fgets($fd, 1024); - echo "$content"; - if (feof($fd)) break; - } - fclose($fd); - } - else - { - echo "<item><title>No master server</title><description>The master server is not running</description></item>"; - } -?> - </channel> -</rss> \ No newline at end of file diff --git a/tools/PHP/index.php b/tools/PHP/index.php deleted file mode 100644 index 93bb7c92bf5c74fd95a8dfb62c6275cb37ea010b..0000000000000000000000000000000000000000 --- a/tools/PHP/index.php +++ /dev/null @@ -1,90 +0,0 @@ -<?php -header("Content-type: text/html; charset=ISO-8859-1"); -ob_start("ob_gzhandler"); -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<HTML> -<HEAD> -<TITLE>SRB2 Master Server Status</TITLE> -</HEAD> -<BODY BGCOLOR="#000000" TEXT="#FFFFFF"> -<CENTER> - <TABLE BORDER="0" WIDTH="835"> - <TR> - <TD WIDTH="444"> - <CENTER> - <A HREF="http://www.srb2.org/"> <IMG SRC="http://clipper.ship.edu/~af0916/srb2/corner.png" ALT="SRB2 logo." WIDTH="120" HEIGHT="84"> - <BR> - SRB2's HomePage</A> - </CENTER> - </TD> - <TD WIDTH="392"> - <CENTER> - <A HREF="http://chompo.home.comcast.net/"><IMG SRC="http://chompo.home.comcast.net/cwimages/topbar.jpg" ALT="Chompy World logo." WIDTH="386" HEIGHT="64"> - <BR> - Chompy World</A> - </CENTER> - </TD> - </TR> - <TR> - <TD WIDTH="444"> - <CENTER> - <A HREF="http://www.sepwich.com/foxboy/Srb2World/"><IMG SRC="http://www.sepwich.com/foxboy/Srb2World/title.jpg" ALT="SRB2 World logo." WIDTH="436" HEIGHT="52"> - <BR> - SRB2 World</A> - </CENTER> - </TD> - <TD WIDTH="389"> - <!-- <CENTER> - <A HREF="http://jte.rose-manor.net/"><img src="http://jte.rose-manor.net/images/logo.png" alt="JTE Website logo." width="295" height="43"> - <BR> - Jason the Echidna's website</A> - </CENTER> !--> - </TD> - </TR> - </TABLE> -</CENTER> -<HR> - -<?php - // ob_start("mb_output_handler"); - $host_addr = "Alam_GBC's box (srb2.servegame.org : 28900)"; - $fd = fsockopen("srb2.servegame.org", 28900, $errno, $errstr, 5); - if ($fd) - { - echo "<h3>SRB2 Master Server Status</h3>\nCurrent host: $host_addr<br>"; - $buff = "000043210000"; - fwrite($fd, $buff); - while (1) - { - $content=fgets($fd, 13); // skip 13 first bytes - $content=fgets($fd, 1024); - echo "$content"; - if (feof($fd)) break; - } - fclose($fd); - - } - else - { - echo 'The master server is not running <br>'; - echo "ERROR: $errno - $errstr<br />\n"; - } -?> -<HR> -<H2>Info:</H2> -<A HREF="http://fanmade.emulationzone.org/gregorsoft/launcher.htm">Win32 SRB2MSLauncher</A> Great job, "Gregor Dick"/Oogaland of <A HREF="http://fanmade.emulationzone.org/gregorsoft/">Gregorsoft Software</A> -<BR> -<HR><BR> -<H2>Version Info:</H2> -srb2dos.exe (DOS/Allegro/WATTCP32 version)<BR> -srb2.exe (Windows/DirectX/FMOD version)<BR> -srb2sdl.exe (Windows/SDL/SDL_mixer version)<BR> -lsdlsrb2 (GNU/Linux/SDL/SDL_mixer version)<BR> -<BR> -<A HREF="http://clipper.ship.edu/~af0916/srb2/download.htm">Srb2win.exe</A> v1.09.4 (use Internet search menu)<BR> -</BODY> -</HTML> -<?php -ob_flush(); -?> diff --git a/tools/PHP/text.php b/tools/PHP/text.php deleted file mode 100644 index 282b812b70cc32090e1c780272c285b085e06cca..0000000000000000000000000000000000000000 --- a/tools/PHP/text.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - header("Content-type: text/plain; charset=ISO-8859-1"); - $host_addr = "Alam_GBC's box (srb2.servegame.org : 28900)"; - $fd = fsockopen("srb2.servegame.org", 28900, $errno, $errstr, 5); - if ($fd) - { - stream_set_timeout ($fd, 5); - echo "SRB2 Master Server Status\nCurrent host: $host_addr\n"; - $buff = "000012360000"; - fwrite($fd, $buff); - while (1) - { - $content=fgets($fd, 13); // skip 13 first bytes - $content=fgets($fd, 1024); - echo "$content"; - if (feof($fd)) break; - } - fclose($fd); - } - else - { - echo "The master server is not running"; - } -?>