daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top