Guest User

Untitled

a guest
Feb 20th, 2021
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require_once 'log.php';
  15.  
  16. class HYIP_Manager_Pro_Database_Helper
  17. {
  18. private $_logfilepath = './HYIP_Manager_Pro_Database_Helper_php_log.txt';
  19. private $_servername = '';
  20. private $_username = '';
  21. private $_password = '';
  22. private $_dbname = '';
  23. private $PDOConn = null;
  24.  
  25. public function __construct()
  26. {
  27. }
  28.  
  29. public function getHm2Processings()
  30. {
  31. $sql = 'select * from hm2_processings;';
  32. $stmt = $this->PDOConn->query($sql);
  33. $_obfuscated_0D133E15160B2E01241F1D022A2E2F0B282D18031D3632_ = $stmt->fetchAll(PDO::FETCH_ASSOC);
  34.  
  35. return $_obfuscated_0D133E15160B2E01241F1D022A2E2F0B282D18031D3632_;
  36. }
  37.  
  38. public function checkHm2Processings($hm2_processings_data = null)
  39. {
  40. if ($hm2_processings_data == null) {
  41. $hm2_processings_data = $this->getHm2Processings();
  42. }
  43.  
  44. $_obfuscated_0D112F1D0B092F1D36313D04405C181D232A3623302E22_ = false;
  45. $_obfuscated_0D2D2B0506162D1C0A3011131B401C2122022C34342F11_ = false;
  46. $_obfuscated_0D1C0106013505343B1A33300C3634112E171D0F032D32_ = false;
  47. $_obfuscated_0D332C17295B0F1824090C1202182D370A3D082A371932_ = false;
  48. $_obfuscated_0D1605075B0811010D1A1317092F2B01150F0D38072E22_ = false;
  49. $_obfuscated_0D14012B251327020E2240020B06333116121D110F2C01_ = false;
  50. $_obfuscated_0D070D5C320F38033F243D31043B0E172F163F40165B22_ = false;
  51. $_obfuscated_0D2E1F2429101D1A1C0D050A0540323C162B2E04091201_ = false;
  52. $_obfuscated_0D123D25272D375B16380740081D2C35353B2424171B01_ = false;
  53. $_obfuscated_0D0B310D032718352E5C101C0B18101B26130F25313922_ = false;
  54. $_obfuscated_0D38222A160F0307061E0E293528182A2918293E1D1111_ = false;
  55. $_obfuscated_0D1E1B0D2D3E080B15061A272408330D142A3622330611_ = false;
  56.  
  57. foreach ($hm2_processings_data as $key => $value) {
  58. if ($value['name'] == 'Bitcoin') {
  59. $_obfuscated_0D112F1D0B092F1D36313D04405C181D232A3623302E22_ = true;
  60. }
  61.  
  62. if ($value['name'] == 'Ethereum') {
  63. $_obfuscated_0D2D2B0506162D1C0A3011131B401C2122022C34342F11_ = true;
  64. }
  65.  
  66. if ($value['name'] == 'Litecoin') {
  67. $_obfuscated_0D1C0106013505343B1A33300C3634112E171D0F032D32_ = true;
  68. }
  69.  
  70. if ($value['name'] == 'Dash') {
  71. $_obfuscated_0D332C17295B0F1824090C1202182D370A3D082A371932_ = true;
  72. }
  73.  
  74. if ($value['name'] == 'BitcoinCash') {
  75. $_obfuscated_0D1605075B0811010D1A1317092F2B01150F0D38072E22_ = true;
  76. }
  77.  
  78. if ($value['name'] == 'Stellar') {
  79. $_obfuscated_0D14012B251327020E2240020B06333116121D110F2C01_ = true;
  80. }
  81.  
  82. if ($value['name'] == 'Zcash') {
  83. $_obfuscated_0D070D5C320F38033F243D31043B0E172F163F40165B22_ = true;
  84. }
  85.  
  86. if ($value['name'] == 'TRON') {
  87. $_obfuscated_0D2E1F2429101D1A1C0D050A0540323C162B2E04091201_ = true;
  88. }
  89.  
  90. if ($value['name'] == 'Dai') {
  91. $_obfuscated_0D123D25272D375B16380740081D2C35353B2424171B01_ = true;
  92. }
  93.  
  94. if ($value['name'] == 'USDCoin') {
  95. $_obfuscated_0D0B310D032718352E5C101C0B18101B26130F25313922_ = true;
  96. }
  97.  
  98. if ($value['name'] == 'PerfectMoney') {
  99. $_obfuscated_0D38222A160F0307061E0E293528182A2918293E1D1111_ = true;
  100. }
  101.  
  102. if ($value['name'] == 'Payeer') {
  103. $_obfuscated_0D1E1B0D2D3E080B15061A272408330D142A3622330611_ = true;
  104. }
  105. }
  106. $Name = '';
  107. $_obfuscated_0D0D062A2818331116352C2C3D31323437141A1F163011_ = '';
  108. $_obfuscated_0D3714082B232732043E060D01341B382D0D2E061B0632_ = '0';
  109. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Payment Processor';
  110. $_obfuscated_0D402B115C023D241D30070C0F17251638382722371211_ = '0';
  111. $DefaultLang = '';
  112. $stmt = $this->PDOConn->prepare('INSERT INTO `hm2_processings` ( `name`, `infofields`, `status`, `description`, `verify`, `lang` ) VALUES ( :Name, :InfoFields, :Status, :Description, :Verify, :Lang);');
  113. $stmt->bindParam('Name', $Name, PDO::PARAM_STR, 255);
  114. $stmt->bindParam('InfoFields', $_obfuscated_0D0D062A2818331116352C2C3D31323437141A1F163011_, PDO::PARAM_INT, 1);
  115. $stmt->bindParam('Status', $_obfuscated_0D3714082B232732043E060D01341B382D0D2E061B0632_, PDO::PARAM_STR, 255);
  116. $stmt->bindParam('Description', $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_, PDO::PARAM_STR, 255);
  117. $stmt->bindParam('Verify', $_obfuscated_0D402B115C023D241D30070C0F17251638382722371211_, PDO::PARAM_INT, 1);
  118. $stmt->bindParam('Lang', $DefaultLang, PDO::PARAM_STR, 255);
  119.  
  120. if ($_obfuscated_0D112F1D0B092F1D36313D04405C181D232A3623302E22_ == false) {
  121. $Name = 'Bitcoin';
  122. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Bitcoin address</b>';
  123. $stmt->execute();
  124. $_obfuscated_0D1E38212D0B27023B3E402C03130424112E1235391D22_ = $this->PDOConn->lastInsertId();
  125. }
  126.  
  127. if ($_obfuscated_0D2D2B0506162D1C0A3011131B401C2122022C34342F11_ == false) {
  128. $Name = 'Ethereum';
  129. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Ethereum address</b>';
  130. $stmt->execute();
  131. $_obfuscated_0D3831070D1227240F070622351F23051B1E1C080F1E32_ = $this->PDOConn->lastInsertId();
  132. }
  133.  
  134. if ($_obfuscated_0D1C0106013505343B1A33300C3634112E171D0F032D32_ == false) {
  135. $Name = 'Litecoin';
  136. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Litecoin address</b>';
  137. $stmt->execute();
  138. $_obfuscated_0D2728272108372934283436270839220B28071B040401_ = $this->PDOConn->lastInsertId();
  139. }
  140.  
  141. if ($_obfuscated_0D332C17295B0F1824090C1202182D370A3D082A371932_ == false) {
  142. $Name = 'Dash';
  143. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Dash address</b>';
  144. $stmt->execute();
  145. $_obfuscated_0D22101622040C181B1A0F1F2D133F0E26143609260C32_ = $this->PDOConn->lastInsertId();
  146. }
  147.  
  148. if ($_obfuscated_0D1605075B0811010D1A1317092F2B01150F0D38072E22_ == false) {
  149. $Name = 'BitcoinCash';
  150. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your BitcoinCash address</b>';
  151. $stmt->execute();
  152. $_obfuscated_0D242F24252F102F222A06301A0D181E1F275B022D3722_ = $this->PDOConn->lastInsertId();
  153. }
  154.  
  155. if ($_obfuscated_0D14012B251327020E2240020B06333116121D110F2C01_ == false) {
  156. $Name = 'Stellar';
  157. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Stellar address</b>';
  158. $stmt->execute();
  159. $_obfuscated_0D3C3807103705022E5B0B3818322203262E2A09350101_ = $this->PDOConn->lastInsertId();
  160. }
  161.  
  162. if ($_obfuscated_0D070D5C320F38033F243D31043B0E172F163F40165B22_ == false) {
  163. $Name = 'Zcash';
  164. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Zcash address</b>';
  165. $stmt->execute();
  166. $_obfuscated_0D1D241D1E352213341530342411152C141A39402D0501_ = $this->PDOConn->lastInsertId();
  167. }
  168.  
  169. if ($_obfuscated_0D2E1F2429101D1A1C0D050A0540323C162B2E04091201_ == false) {
  170. $Name = 'TRON';
  171. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your TRON address</b>';
  172. $stmt->execute();
  173. $_obfuscated_0D5C0E265B1029250335111D16260A193C04050F131632_ = $this->PDOConn->lastInsertId();
  174. }
  175.  
  176. if ($_obfuscated_0D123D25272D375B16380740081D2C35353B2424171B01_ == false) {
  177. $Name = 'Dai';
  178. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Dai address</b>';
  179. $stmt->execute();
  180. $_obfuscated_0D1201072C2F092B0B1C2B1B0B251B130B03090F083B32_ = $this->PDOConn->lastInsertId();
  181. }
  182.  
  183. if ($_obfuscated_0D0B310D032718352E5C101C0B18101B26130F25313922_ == false) {
  184. $Name = 'USDCoin';
  185. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your USDCoin address</b>';
  186. $stmt->execute();
  187. $_obfuscated_0D1B35322326373E2F0A34253B3D1D05240625072C3932_ = $this->PDOConn->lastInsertId();
  188. }
  189.  
  190. if ($_obfuscated_0D38222A160F0307061E0E293528182A2918293E1D1111_ == false) {
  191. $Name = 'PerfectMoney';
  192. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your PerfectMoney account</b>';
  193. $stmt->execute();
  194. $_obfuscated_0D102615225B40020A10381E23315C3D182A3202130E32_ = $this->PDOConn->lastInsertId();
  195. }
  196.  
  197. if ($_obfuscated_0D1E1B0D2D3E080B15061A272408330D142A3622330611_ == false) {
  198. $Name = 'Payeer';
  199. $_obfuscated_0D2205015B3B07262412230C261A16262F2A2A5B341922_ = 'Send your funds to account: <b>Your Payeer account</b>';
  200. $stmt->execute();
  201. $_obfuscated_0D160D07132A132C382B1D3D2524043C13260D2D3C1801_ = $this->PDOConn->lastInsertId();
  202. }
  203.  
  204. return true;
  205. }
  206.  
  207. public function getVendorProcessingsExtraData()
  208. {
  209. $sql = "SELECT hm2_processings.id,\r\n hm2_processings.name,\r\n hm2_processings.infofields,\r\n hm2_processings.status,\r\n hm2_processings.description,\r\n hm2_processings.verify,\r\n hm2_processings.lang,\r\n vendor_processings_extra_data.id as vendor_processings_extra_data_id,\r\n vendor_processings_extra_data.hm2_processings_id,\r\n vendor_processings_extra_data.Processor,\r\n vendor_processings_extra_data.Coinpayments_Deposit_Merchant_ID,\r\n vendor_processings_extra_data.Coinpayments_Deposit_IPN_Secret,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Enabled,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Public_Key,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Private_Key,\r\n vendor_processings_extra_data.Coinbase_API_Key,\r\n vendor_processings_extra_data.Coinbase_Shared_Secret,\r\n vendor_processings_extra_data.Paykassa_Deposit_Merchant_ID,\r\n vendor_processings_extra_data.Paykassa_Deposit_Merchant_Password,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Enabled,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Merchant_ID,\r\n vendor_processings_extra_data.Paykassa_Withdraw_API_ID,\r\n vendor_processings_extra_data.Paykassa_Withdraw_API_Password,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Priority,\r\n vendor_processings_extra_data.Payeer_Deposit_Shop_ID,\r\n vendor_processings_extra_data.Payeer_Deposit_Secret_Key,\r\n vendor_processings_extra_data.Payeer_Withdraw_Enabled,\r\n vendor_processings_extra_data.Payeer_Withdraw_Account_ID,\r\n vendor_processings_extra_data.Payeer_Withdraw_API_ID,\r\n vendor_processings_extra_data.Payeer_Withdraw_API_Key,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_USD_Account_Number,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_Account_Name,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_Alternate_Password,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Enabled,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Account_ID,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_USD_Account,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Account_Password\r\n FROM hm2_processings LEFT JOIN vendor_processings_extra_data\r\n ON hm2_processings.id = vendor_processings_extra_data.hm2_processings_id";
  210. $stmt = $this->PDOConn->query($sql);
  211. $hm2_processings_data = array();
  212.  
  213. while ($row = $stmt->fetch()) {
  214. $hm2_processings_data[$row['id']] = $row;
  215. }
  216.  
  217. return $hm2_processings_data;
  218. }
  219.  
  220. public function getHm2ProcessingsStatuses($hm2_processings_data = null)
  221. {
  222. if ($hm2_processings_data == null) {
  223. $hm2_processings_data = $this->getHm2Processings();
  224. }
  225.  
  226. $processing_status = array();
  227.  
  228. foreach ($hm2_processings_data as $key => $value) {
  229. $processing_status[$value['name']] = $value['status'];
  230. }
  231.  
  232. return $processing_status;
  233. }
  234.  
  235. public function getProcessorByName($ProcessorName)
  236. {
  237. $sql = "SELECT hm2_processings.id,\r\n hm2_processings.name,\r\n hm2_processings.infofields,\r\n hm2_processings.status,\r\n hm2_processings.description,\r\n hm2_processings.verify,\r\n hm2_processings.lang,\r\n vendor_processings_extra_data.id as vendor_processings_extra_data_id,\r\n vendor_processings_extra_data.hm2_processings_id,\r\n vendor_processings_extra_data.Processor,\r\n vendor_processings_extra_data.Coinpayments_Deposit_Merchant_ID,\r\n vendor_processings_extra_data.Coinpayments_Deposit_IPN_Secret,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Enabled,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Public_Key,\r\n vendor_processings_extra_data.Coinpayments_Withdraw_Private_Key,\r\n vendor_processings_extra_data.Coinbase_API_Key,\r\n vendor_processings_extra_data.Coinbase_Shared_Secret,\r\n vendor_processings_extra_data.Paykassa_Deposit_Merchant_ID,\r\n vendor_processings_extra_data.Paykassa_Deposit_Merchant_Password,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Enabled,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Merchant_ID,\r\n vendor_processings_extra_data.Paykassa_Withdraw_API_ID,\r\n vendor_processings_extra_data.Paykassa_Withdraw_API_Password,\r\n vendor_processings_extra_data.Paykassa_Withdraw_Priority,\r\n vendor_processings_extra_data.Payeer_Deposit_Shop_ID,\r\n vendor_processings_extra_data.Payeer_Deposit_Secret_Key,\r\n vendor_processings_extra_data.Payeer_Withdraw_Enabled,\r\n vendor_processings_extra_data.Payeer_Withdraw_Account_ID,\r\n vendor_processings_extra_data.Payeer_Withdraw_API_ID,\r\n vendor_processings_extra_data.Payeer_Withdraw_API_Key,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_USD_Account_Number,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_Account_Name,\r\n vendor_processings_extra_data.Perfectmoney_Deposit_Alternate_Password,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Enabled,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Account_ID,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_USD_Account,\r\n vendor_processings_extra_data.Perfectmoney_Withdraw_Account_Password\r\n FROM hm2_processings LEFT JOIN vendor_processings_extra_data\r\n ON hm2_processings.id = vendor_processings_extra_data.hm2_processings_id\r\n WHERE hm2_processings.name = \"" . $ProcessorName . '"';
  238. $stmt = $this->PDOConn->query($sql);
  239. $_obfuscated_0D120B0704131C290E120604210C311E33251C04223922_ = array();
  240. $data = $stmt->fetchAll(PDO::FETCH_ASSOC);
  241.  
  242. if (isset($data[0])) {
  243. return $data[0];
  244. }
  245.  
  246. return false;
  247. }
  248.  
  249. public function setProcessorStatus($ProcessorID, $Enabled)
  250. {
  251. $sql = 'UPDATE `hm2_processings` SET `status` = ' . $Enabled . ' WHERE id = ' . $ProcessorID;
  252. $stmt = $this->PDOConn->query($sql);
  253. $_obfuscated_0D111F0634303C1815371C38302609052D0A400C350932_ = $this->PDOConn->lastInsertId();
  254. ...........................................................................
  255. ..............................................
  256. .........................
RAW Paste Data