Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 10th, 2010 | Syntax: None | Size: 1.37 KB | Hits: 35 | Expires: Never
Copy text to clipboard
  1. <?php
  2. include 'config.php';
  3.  
  4. $SCI_SECRET_WORD = '6145155azi';
  5. echo 'test0';
  6. if (isset($_GET['lr_paidto'])) {
  7.   $str = array($_GET['lr_paidto'], $_GET['lr_paidby'], $_GET['lr_store'], $_GET['lr_amnt'],
  8.                $_GET['lr_transfer'], $_GET['lr_currency'], $SCI_SECRET_WORD);
  9.   $str = implode(':', $str);
  10.   require_once("sha256.inc.php");
  11.   $str = strtoupper(cybester($str));
  12.  
  13.   $sql = "UPDATE `users` SET balance = balance + ".$_GET['lr_amnt']." WHERE id='".$_GET['user']."'";
  14.   echo $sql;
  15.  
  16.   if ($_GET['lr_encrypted'] !== $str) {
  17.     die('Hashcheck failed!');
  18.   } else {
  19.         echo 'test2';
  20.     $sql = "UPDATE `users` SET balance = balance + ".$_GET['lr_amnt']." WHERE id='".$_GET['user']."'";
  21.     $res = @mysql_query($sql);
  22.   }
  23. }
  24.  
  25. ?>
  26.  
  27. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  28. <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
  29. <head>
  30. <style type="text/css">
  31. #olo {
  32. font-family: Georgia,"Times New Roman",Times,serif;
  33. font-size: 24px;
  34. }
  35. </style>
  36. <title>Rules</title>
  37. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
  38. </head>
  39.  
  40. <body style="padding-left:110px;">
  41. <div id="olo">
  42. <br /><br /><br /><br />
  43.  
  44. Your payment <font color='green'><b>DONE!</b></font><br /><br /><br /><br />
  45. <a href="main.php">Back to the shop ></a>
  46. </div>
  47. </body>
  48. </html>