daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 61 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. $db_host = "db3033.1and1.co.uk";
  22. $db_user = "dbo35787";
  23. $db_pass = "";
  24. $db_name = "db355600787";
  25. $db = mysql_connect($db_host,$db_user,$db_pass);
  26. mysql_select_db ($db_name) or die ("Cannot Connect To Database");
  27.  
  28.  
  29. $sql = mysql_query ("SELECT RPname
  30. FROM DarkRPwallet
  31. WHERE bybid='$bybid'");
  32. if (!sql) {
  33.     echo 'Could not run query: ' . mysql_error();
  34.     exit;
  35. }
  36.  
  37. $sql2 = mysql_query ("SELECT wallet
  38. FROM DarkRPwallet
  39. WHERE bybid='$bybid'");
  40. if (!sql2) {
  41.     echo 'Could not run query: ' . mysql_error();
  42.     exit;
  43. }
  44.  
  45. $sql3 = mysql_query ("SELECT steamID
  46. FROM DarkRPwallet
  47. WHERE bybid='$bybid'");
  48.  
  49.  
  50.  if (!sql3) {
  51.     echo 'Could not run query: ' . mysql_error();
  52.     exit;
  53. }
  54.  
  55. $row1 = mysql_fetch_row($sql);
  56. $row2 = mysql_fetch_row($sql2);
  57. $row3 = "RPname:";
  58. $row4 = "Wallet:";
  59. $row5 = "SteamID:";
  60. $row6 = mysql_fetch_row($sql3);
  61.  
  62. header("Content-type: image/png");
  63.  
  64. $im = imagecreatefrompng ("signa.png");
  65. $colour = imagecolorallocate($im, 255, 255, 255);
  66. imagestring($im, 35, 151, 15, $row1[0], $colour);
  67. imagestring($im, 35, 151, 30, $row2[0], $colour);
  68. imagestring($im, 35, 161, 45, $row6[0], $colour);
  69. imagestring($im, 35, 81, 15, $row3, $colour);
  70. imagestring($im, 35, 81, 30, $row4, $colour);
  71. imagestring($im, 35, 81, 45, $row5, $colour);
  72. imagepng($im);
  73.  
  74. ?>
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