daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function make_safe($safe) {
  4.  
  5. $safe = mysql_real_escape_string(trim($safe));
  6.  
  7. return $safe;
  8.  
  9. }
  10. {
  11. $steamid = make_safe($_GET['steamid']);
  12.  
  13. $array = explode(":", $steamid);
  14. $a = (string)((int)$array[0] + 1);
  15. $b = (string)((int)$array[1] + 1);
  16. $c = $array[2];
  17. $bybid = $a . $b . $c;
  18.  
  19. }
  20.  
  21.  
  22. $db_host = "";
  23. $db_user = "";
  24. $db_pass = "";
  25. $db_name = "";
  26. $db = mysql_connect($db_host,$db_user,$db_pass);
  27. mysql_select_db ($db_name) or die ("Cannot Connect To Database");
  28.  
  29.  
  30. $sql = mysql_query ("SELECT RPname
  31. FROM DarkRPwallet
  32. WHERE bybid=$bybid");
  33. if (!sql) {
  34.     echo 'Could not run query: ' . mysql_error();
  35.     exit;
  36. }
  37.  
  38. $sql2 = mysql_query ("SELECT wallet
  39. FROM DarkRPwallet
  40. WHERE bybid='$bybid'");
  41. if (!sql2) {
  42.     echo 'Could not run query: ' . mysql_error();
  43.     exit;
  44. }
  45.  
  46. $sql3 = mysql_query ("SELECT steamID
  47. FROM DarkRPwallet
  48. WHERE bybid='$bybid'");
  49.  
  50.  
  51.  if (!sql3) {
  52.     echo 'Could not run query: ' . mysql_error();
  53.     exit;
  54. }
  55.  
  56. $row1 = mysql_fetch_row($sql);
  57. $row2 = mysql_fetch_row($sql2);
  58. $row3 = "RPname:";
  59. $row4 = "Wallet:";
  60. $row5 = "SteamID:";
  61. $row6 = mysql_fetch_row($sql3);
  62.  
  63. header("Content-type: image/png");
  64.  
  65. $im = imagecreatefrompng ("signa.png");
  66. $colour = imagecolorallocate($im, 255, 255, 255);
  67. imagestring($im, 35, 151, 15, $row1[0], $colour);
  68. imagestring($im, 35, 151, 30, $row2[0], $colour);
  69. imagestring($im, 35, 161, 45, $row6[0], $colour);
  70. imagestring($im, 35, 81, 15, $row3, $colour);
  71. imagestring($im, 35, 81, 30, $row4, $colour);
  72. imagestring($im, 35, 81, 45, $row5, $colour);
  73. imagepng($im);
  74.  
  75. ?>
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
 
Top