Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. $host = $_POST['name'];
  3. $result = str_replace(array('http://','https://'), '', $host);
  4. if($socket =@ fsockopen($result, 80, $errno, $errstr, 30)) {
  5. $value = 1 ;
  6. }
  7. else
  8. {
  9. $value = 0 ;
  10. }
  11.  
  12. fclose($socket);
  13. ?>
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <title>Down For Everyone Or Just Me</title>
  18. <link rel="stylesheet" type="text/css" href="style.css">
  19. </head>
  20. <body>
  21. <div class="parent">
  22. <?php if($value == 1) { ?>
  23. <div class="sub"><p>It's Just you. <a href="<?php echo 'http://'. $host; ?>" style="color:#64B5F6"> <?php echo $host; ?></a> is up for everyone.</p></div><img src="like.jpg" style="width:60px;height:60px;border-radius:100%;margi$
  24. <?php } else { ?>
  25. <div class="sub"><p>It's not you. <a href="<?php echo 'http://'.$host; ?>" style="color:#ff5500"> <?php echo $host; ?></a> is down for everyone.</p><br></div><img src="images.png" style="width:60px;height:60px;border-radius:100%$
  26. <?php } ?>
  27. </div>
  28. <div class="parent" style="margin-top:-70px"><br><br><br><br><p style="font-size:20px"><a href="index.php" style="color:#008855">Down For Everyone Or Just Me.? Check Onother</a></p></div>
  29. </body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement