<?php
[color=#0000bb]$handle = @fopen("[url="http://tps.servecounterstrike.com:27016/"]http://tps.servecounterstrike.com:27016/[/url]", "r");
if ($handle)
{
fclose($handle);
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Regular Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27016"\">(Connect)</a></td></tr>"
."</table>";
$content .= "</center><br><br>";
} else {
fclose($handle);
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Regular Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td width=\"50%\">Offline!</td></tr>"
."</table>";
$content .= "</center><br><br>";
}[/color]
[color=#0000bb]
$handle = @fopen("[url="http://tps.servecounterstrike.com:27014/"]http://tps.servecounterstrike.com:27014/[/url]", "r");
if ($handle)
{
fclose($handle);
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Wc3FT Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27014"\">(Connect)</a></td></tr>"
."</table>";
$content .= "</center>";
} else {
fclose($handle);
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Wc3FT Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td width=\"50%\">Offline!</td></tr>"
."</table>";
$content .= "</center>";
}
?>[/color]
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27016"\">(Connect)</a></td></tr>"
DesertWar said:I get an error with line 9
PHP:."<tr><td width=\"50%\"><p align=\"center\"><img src=\"<A href="http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27016"\">(Connect)</a></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td">http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27016"\">(Connect)</a></td></tr>"
<?php
if (stristr($_SERVER['SCRIPT_NAME'], "block-Servers.php")) {
Header("Location: ../index.php");
die();
}
$handle = @fopen("http://tps.servecounterstrike.com:27016/", "r");
if ($handle)
{
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Regular Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27016"\">(Connect)</a></td></tr>"
."</table>";
$content .= "</center><br><br>";
} else {
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Regular Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td width=\"50%\">Offline!</td></tr>"
."</table>";
$content .= "</center><br><br>";
}
$handle = @fopen("http://tps.servecounterstrike.com:27014/", "r");
if ($handle)
{
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Wc3FT Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"http://tps.x10hosting.com/tps/custom/images/green-status.gif\"></td><td width=\"50%\">Online! <a href=\"steam: "-applaunch 10 -game cstrike +connect tps.servecounterstrike.com:27014"\">(Connect)</a></td></tr>"
."</table>";
$content .= "</center>";
} else {
$content .= "<center>";
$content .= "<table>"
."<tr><td colspan=\"2\"><p align=\"center\"><b>Wc3FT Counter-Strike Server</b></td></tr>"
."<tr><td width=\"50%\"><p align=\"center\"><img src=\"http://tps.x10hosting.com/tps/custom/images/red-status.gif\"></td><td width=\"50%\">Offline!</td></tr>"
."</table>";
$content .= "</center>";
}
?>
DesertWar said:Parse error: parse error, unexpected ':' in /home/*******/public_html/****/****.php on line 9