Aleksander

MySQL Connector [PHP]

Oct 30th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <?php
  2. /*
  3.  * @author: Aeronix
  4.  * @description: This MySQL connector is meant to be used to connect to MySQL servers, self explanitory for what it can be used for.
  5.  */
  6. ERROR_REPORTING(E_ALL);
  7. if(isset($_GET['host']) && isset($_GET['user']) && isset($_GET['pass']))
  8. {
  9.     $connection = mysql_connect($_GET['host'], $_GET['user'], $_GET['pass']);
  10.     if($connection) {
  11.         echo "<font color=\"Green\"><strong>Granted</strong></font><br />";
  12.     } else {
  13.         echo "<font color=\"red\"><strong>Denied</strong></font><br />";
  14.     }
  15. }
  16. ?>
  17. <div align="center">
  18. <form action="?" method="GET">
  19. <p><font size="24pt">Aeronix MySQL Connect0r</font></p>
  20. <label for="host">Host:</label> <input type="text" name="host" id="host" /><br />
  21. <label for="user">User:</label> <input type="text" name="user" id="user" /><br />
  22. <label for="pass">Password:</label> <input type="text" name="pass" id="pass" /><br />
  23. <input type="submit" value="Connect" />
  24. </form>
  25. </align>
Advertisement
Add Comment
Please, Sign In to add comment