<li class="left"> <a href="."><h1>hping</h1></a> </li> <!--li> <a class="s" href=".?s=4">FEATURES</a> </li--> <li class="right"> <form action="" method="get" class="right"> <input type="text" name="server" id="domain_input" value="ismysiteonline.com" onclick="cDI(this);" /> <input type="submit" style="display:none;" /> </form> </li> </ul> <?php $hping = new Hping(); $r = $hping->newPing($_GET['s']); $server = $_GET['s']; switch ($r) { case -1: echo "<div class='main'><p class='status'>This be no Man-O-War!</p></div>"; break; /*case 1: * echo ("<div class='main'><p class='status'>Thar <a href='http://$server/'>she</a> blows!</p></div>"); */ break; case -2: echo "<div class='main'><p class='status'>Shiver me timbers! Swab that Poop deck!</p></div>"; break; case -3: echo "<div class='miss' id='a'><img src='hping.png'><p>Yer Crow's nest in Davy Jones's Locker!</p></div>"; break;
<?php /* * ping.php * Author: Thesp * Version: 0.X.X * Returns: * 0 : Offline * 1 : Online * 2 : Invalid URL * 3 : $S not set */ include_once "../ping.php"; $hping = new Hping(); echo $hping->newPing($_GET['s']);