[ PHP ] Check-Site-ON-OFF


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">



<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Check-host-Kid1412 - Check to see if a website is down for you or for everyone.</title>

<link rel="shortcut icon" href="favicon.ico" />

<meta name="description" content="Check if a website is down for you or for everyone - free and quick service let's you check a site to see if it really is down." />

<meta name="keywords" content="checksite, down, check, url, domain, service, specific, down, http, attempt, accessing, report, website, addresses, similar, problems, monitoring, down" />

<meta name="robots" content="noindex, nofollow" />

<script src="http://www.checksite.us/src/prototype.js" type="text/javascript"></script>

<script src="http://www.checksite.us/src/scriptaculous.js" type="text/javascript"></script>

<script src="http://www.checksite.us/src/functions.js" type="text/javascript"></script>

<link href="http://www.checksite.us/style.css" rel="stylesheet" type="text/css"/>

<meta name="google-site-verification" content="2ofhlsqSlkWkcABkao59BgtnDuanoh4US-T_MLRAMK0" />

</head>



<body>
<div id="container">

<div id="search">

<h1>Check-host code By Kid1412</h1>


<form method="POST" action="" name="form">

              <fieldset>
        URL: <input type="text" name="page" value="http://www.google.com" style="width: 31em;" />
        <input type="submit" name="send" value="Check This Site">
</fieldset>

</form>



</div>


<?php
error_reporting(0);
/*
                C
                                                                                         */

function verificar($url)
{
        $url = htmlentities($url);
        if(filter_var($url,FILTER_VALIDATE_URL) or filter_var($url,FILTER_VALIDATE_IP)){
                echo fopen($url,'r') ? "<center> <div id='ok'>Online</div></center> " : "<center> <div id='bad'>Offline</div></center> ";
        }else{
                echo '<script>alert("URL/IP no valida!");window.location=""</script>';
        }
}


if(!empty($_POST['page'])){
     verificar($_POST['page']);
}
?>
 <div id="about">

<h3>About This Service</h3>

Check-host-Kid1412 is a simple service that allows a user to check to see if a site is actually down, or if it is just the user's machine or network. If you are experiencing problems accessing a specific website, simply enter the website's URL in the form above, and Check-host-Kid1412 will attempt to access the URL provided and report back on whether it was able to access the website or not. <br /><br /> Unlike other similar services, our service allows you to enter a domain (i.e. checksite.us), a full length URL (i.e. checksite.us/test.htm), or a domain with a specific port (i.e. checksite.us:555). We also allow IP addresses to  be used in place of a domain name (i.e. 209.41.89.150:555). <br /><br /> For websites that we cannot access, we'll continue trying the website every 15 minutes for up to 3 days. If we are successful at accessing the website, we'll send you an e-mail. We also offer SMS Notifications (still in beta. Standard text message rates apply). <br /><br />

<strong>NEW!</strong>: You can now be notified through your Twitter account. Just enter your Twitter handle and we'll let you know when we can access the site.

<p>&nbsp;</p>
</div>
<div id="ads">
<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://mediax.ml/www/delivery/ajs.php':'http://mediax.ml/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=3");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://mediax.ml/www/delivery/ck.php?n=ac599670&amp;cb=398424' target='_blank'><img src='http://mediax.ml/www/delivery/avw.php?zoneid=3&amp;cb=398424&amp;n=ac599670' border='0' alt='' /></a></noscript>
<br />
<br />
</div>
<div id="footer">Copyright © <a href="https://www.facebook.com/profile.php?id=100007791767789">Kid1412</a>
</p>
</div>
</div>
</html>
[ PHP ] Check-Site-ON-OFF Reviewed by Nguyen Nam Hong on 2:26 PM Rating: 5

Bình luận

Copyright © Kid1412 Blog's 💖 2016
Development by Hong Nguyen Nam
Powered by Blogger.