Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function ppm01($vars) {
  15.  
  16. $ppmstatus = ppm_checklicense($GLOBALS["ppmlicensekey"], $GLOBALS["ppmlocalkey"]);
  17. if ($ppmstatus["status"] != "Active")
  18. {
  19. return false;
  20. }
  21. $r = select_query("tblhosting", "subscriptionid, userid", array("id" => $vars["relid"], "subscriptionid" => array("sqltype" => "LIKE", "value" => "I-%")));
  22. if (0 < mysql_num_rows($r))
  23. {
  24. $row = mysql_fetch_assoc($r);
  25. $subscriptionid = $row["subscriptionid"];
  26. $userid = $row["userid"];
  27. $relid = $vars["relid"];
  28. cancelSubscriptionMain($subscriptionid, $userid, $relid);
  29. }
  30. else
  31. {
  32. logactivity("PayPal Manager: No PayPal Subscription ID detected, or subscription ID not supported for this service - not attempting to cancel.");
  33. }
  34. return;
  35. }
  36.  
  37. function ppm02($vars) {
  38.  
  39. $ppmstatus = ppm_checklicense($GLOBALS["ppmlicensekey"], $GLOBALS["ppmlocalkey"]);
  40. if ($ppmstatus["status"] != "Active")
  41. {
  42. return false;
  43. }
  44. $q = "SELECT tblupgrades.relid, tblhosting.subscriptionid, tblhosting.paymentmethod, tblhosting.userid FROM tblupgrades, tblhosting WHERE tblupgrades.id = '" . $vars["upgradeid"] . "' AND tblhosting.id = tblupgrades.relid AND tblhosting.subscriptionid LIKE 'I-%' AND tblhosting.paymentmethod = 'paypal'";
  45. if (!($r = mysql_query($q)))
  46. {
  47. die("Error in query " . mysql_error());
  48. }
  49. if (0 < mysql_num_rows($r))
  50. {
  51. $row = mysql_fetch_assoc($r);
  52. $subscriptionid = urlencode($row["subscriptionid"]);
  53. $relid = $row["relid"];
  54. $userid = $row["userid"];
  55. cancelSubscriptionMain($subscriptionid, $userid, $relid);
  56. }
  57. else
  58. {
  59. logactivity("PayPal Manager: No PayPal Subscription ID detected, or subscription ID not supported for this service - not attempting to cancel.");
  60. }
  61. return;
  62. }
  63.  
  64. function ppm03($vars) {
  65.  
  66. $ppmstatus = ppm_checklicense($GLOBALS["ppmlicensekey"], $GLOBALS["ppmlocalkey"]);
  67. if ($ppmstatus["status"] != "Active")
  68. {
  69. return false;
  70. }
  71. $serviceid = $vars["params"]["serviceid"];
  72. $q = "SELECT * FROM `tblhosting` WHERE `id` = '" . $serviceid . "' AND `paymentmethod` = 'paypal' AND `subscriptionid` LIKE 'I-%'";
  73. if (!($r = mysql_query($q)))
  74. {
  75. die("Error in query " . mysql_error());
  76. }
  77. $nr = mysql_num_rows($r);
  78. if (0 < $nr)
  79. {
  80. $row = mysql_fetch_assoc($r);
  81. $userid = $row["userid"];
  82. $subscriptionid = $row["subscriptionid"];
  83. $amount = $row["amount"];
  84. $q2 = "SELECT tblaccounts.transid, tblaccounts.date FROM tblaccounts, tblinvoices, tblinvoiceitems WHERE tblaccounts.userid = '" . $userid . "' AND tblaccounts.gateway = 'paypal' AND tblinvoices.userid = '" . $userid . "' AND tblinvoiceitems.relid = '" . $serviceid . "' GROUP BY tblaccounts.transid ORDER BY date DESC LIMIT 10";
  85. if (!($r2 = mysql_query($q2)))
  86. {
  87. die("Error in query " . mysql_error());
  88. }
  89. $nr2 = mysql_num_rows($r2);
  90. if (0 < $nr2)
  91. {
  92. while ($row2 = mysql_fetch_assoc($r2))
  93. {
  94. ................................................................
  95. .....................................
  96. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement