Guest User

Untitled

a guest
Apr 26th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. $dbhost = "localhost:1993";
  4. $dbuser = "root";
  5. $dbpass = "fuckingniggersrule1337";
  6. $dbname = "pussydb";
  7.  
  8. $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Cannot connect..');
  9. mysql_select_db($dbname);
  10.  
  11. $getInfo = mysql_query("SELECT users_online FROM server_status");
  12. $info = mysql_fetch_array($getInfo);
  13.  
  14. $text = "Fresh's Online!";
  15. $image = imagecreatefrompng('./banner.png');
  16. $black = imagecolorallocate($image, 0, 0, 0);
  17. imagefttext($image, 8, 0, 380, 43, $black, './verdana.ttf', $info['users_online']);
  18. imagefttext($image, 8, 0, 405, 43, $black, './verdana.ttf', $text);
  19.  
  20. header('Content-type: image/png');
  21. imagepng($image);
  22. imagedestroy($image);
  23. ?>
Add Comment
Please, Sign In to add comment