Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. if (isset($_SESSION['connect'])) {
  5.  
  6. ?>
  7.  
  8. <html><head><title>G-Bot</title></head><body style="color:#80FF00; background-color:#333333">
  9. </body></html><link rel="stylesheet" type="text/css" href="style.css">
  10. <CENTER><table class=panel><tr><td>
  11.  
  12. <a class=btn href='./index.php'>
  13. <font color="#80FF00">Commands</font></a>
  14. <a class=btn href='./country.php'>
  15. <font color="#80FF00">Country</font></a>
  16. <a class=btn href='./index.php?con=1'>
  17. <font color="#80FF00">ClearDeathBots</font></a>
  18. <a class=btn href='./logout.php'>
  19. <font color="#80FF00">Exit</font></a></td></tr></CENTER></table>
  20. </CENTER>
  21.  
  22. <?php
  23. $sql_host = 'localhost';
  24. $sql_username = 'test';
  25. $sql_password = 'test';
  26. $sql_db = 'My';
  27. include('./geoip.php');
  28. include('./titles.php');
  29. $hConnect = mysql_connect($sql_host, "test", "test");
  30. mysql_select_db("My");
  31. for($i=0; $i<>251; $i++)
  32. {
  33. $code=$COUNTRY_CODE[$i];
  34. $country=$COUNTRY_NAME[$i];
  35. $result = mysql_query("SELECT * FROM bots WHERE country='$code'");
  36. $num_rows = mysql_num_rows($result);
  37.  
  38. echo "<center>".$country.": ".$num_rows."\n"."</center>";
  39. }
  40.     mysql_close($hConnect);
  41. }
  42. else
  43. {
  44. print "Fuck you man";
  45. }
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement