Advertisement
Guest User

Untitled

a guest
Feb 13th, 2012
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 164.75 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function set_refcookie($ciddaeiga = 0, $ceiejchac = false) {
  15. global $x0b;
  16. global $x0c;
  17. global $x0d;
  18. global $x0e;
  19. global $x0f;
  20. global $x10;
  21. global $x11;
  22. global $x12;
  23. global $x13;
  24. global $x14;
  25. global $x15;
  26. global $x16;
  27. global $x17;
  28. global $x18;
  29. global $x19;
  30. global $x1a;
  31. global $x1b;
  32. global $x1c;
  33. global $x1d;
  34. global $x1e;
  35. global $x1f;
  36. global $x20;
  37. global $x21;
  38. global $x22;
  39. global $x23;
  40. global $x24;
  41. global $x25;
  42. global $x26;
  43. global $x27;
  44. global $x28;
  45. global $x29;
  46. global $x2a;
  47. global $x2b;
  48. global $x2c;
  49. global $x2d;
  50. global $x2e;
  51. global $x2f;
  52. global $x30;
  53. global $x31;
  54. global $x32;
  55. global $x33;
  56. global $x34;
  57. global $x35;
  58. global $x36;
  59. global $x37;
  60. global $x38;
  61. global $x39;
  62. global $x3a;
  63. global $x3b;
  64. global $x3c;
  65. global $x3d;
  66. global $x3e;
  67. global $x3f;
  68. global $x40;
  69. global $x41;
  70. global $x42;
  71. global $x43;
  72. global $x44;
  73. global $x45;
  74. global $x46;
  75. global $x47;
  76. global $x48;
  77. global $x49;
  78. global $x4a;
  79. global $x4b;
  80. global $x4c;
  81. global $x4d;
  82. global $x4e;
  83. global $x4f;
  84. global $x50;
  85. global $x51;
  86. global $x52;
  87. global $x53;
  88. global $x54;
  89. global $settings;
  90.  
  91. $fdhjcif = $dhddgedaaf( '+' . $bcgahficac['ref_days'] . ' days' );
  92.  
  93. if (( ( !empty( $ciddaeiga ) && $dchbacbcjc( $ciddaeiga ) ) && ( !isset( $_COOKIE['ref'] ) || $ceiejchac ) )) {
  94. $dgidhebabf( 'ref', $ciddaeiga, $fdhjcif );
  95. return null;
  96. }
  97.  
  98. if (( ( empty( $ciddaeiga ) && ( !isset( $_COOKIE['ref'] ) || $ceiejchac ) ) && $bcgahficac['own_nonref'] )) {
  99. $fdhjcif = ($bcgahficac['own_perpetual'] ? $dhddgedaaf( '+10 years' ) : $fdhjcif);
  100. $dgidhebabf( 'ref', 0, $fdhjcif );
  101. }
  102.  
  103. }
  104.  
  105. function check_logedin($dfjibecdjf = false, $diihebibff = false) {
  106. global $x0b;
  107. global $x0c;
  108. global $x0d;
  109. global $x0e;
  110. global $x0f;
  111. global $x10;
  112. global $x11;
  113. global $x12;
  114. global $x13;
  115. global $x14;
  116. global $x15;
  117. global $x16;
  118. global $x17;
  119. global $x18;
  120. global $x19;
  121. global $x1a;
  122. global $x1b;
  123. global $x1c;
  124. global $x1d;
  125. global $x1e;
  126. global $x1f;
  127. global $x20;
  128. global $x21;
  129. global $x22;
  130. global $x23;
  131. global $x24;
  132. global $x25;
  133. global $x26;
  134. global $x27;
  135. global $x28;
  136. global $x29;
  137. global $x2a;
  138. global $x2b;
  139. global $x2c;
  140. global $x2d;
  141. global $x2e;
  142. global $x2f;
  143. global $x30;
  144. global $x31;
  145. global $x32;
  146. global $x33;
  147. global $x34;
  148. global $x35;
  149. global $x36;
  150. global $x37;
  151. global $x38;
  152. global $x39;
  153. global $x3a;
  154. global $x3b;
  155. global $x3c;
  156. global $x3d;
  157. global $x3e;
  158. global $x3f;
  159. global $x40;
  160. global $x41;
  161. global $x42;
  162. global $x43;
  163. global $x44;
  164. global $x45;
  165. global $x46;
  166. global $x47;
  167. global $x48;
  168. global $x49;
  169. global $x4a;
  170. global $x4b;
  171. global $x4c;
  172. global $x4d;
  173. global $x4e;
  174. global $x4f;
  175. global $x50;
  176. global $x51;
  177. global $x52;
  178. global $x53;
  179. global $x54;
  180.  
  181. x0d( );
  182. global $smarty;
  183. global $session;
  184. global $glob;
  185.  
  186. if (( ( ( empty( $bjicjiadhb ) || ( ( $dfjibecdjf && !$diihebibff ) && $bjicjiadhb['member_id'] != 1 ) ) || ( ( !$dfjibecdjf && !$diihebibff ) && $bjicjiadhb['member_id'] < 2 ) ) || ( $diihebibff && $bjicjiadhb['member_id'] < 1 ) )) {
  187. $bdbcdicijb->display( 'expired.tpl' );
  188. exit( );
  189. }
  190.  
  191. }
  192.  
  193. function get_url() {
  194. global $x0b;
  195. global $x0c;
  196. global $x0d;
  197. global $x0e;
  198. global $x0f;
  199. global $x10;
  200. global $x11;
  201. global $x12;
  202. global $x13;
  203. global $x14;
  204. global $x15;
  205. global $x16;
  206. global $x17;
  207. global $x18;
  208. global $x19;
  209. global $x1a;
  210. global $x1b;
  211. global $x1c;
  212. global $x1d;
  213. global $x1e;
  214. global $x1f;
  215. global $x20;
  216. global $x21;
  217. global $x22;
  218. global $x23;
  219. global $x24;
  220. global $x25;
  221. global $x26;
  222. global $x27;
  223. global $x28;
  224. global $x29;
  225. global $x2a;
  226. global $x2b;
  227. global $x2c;
  228. global $x2d;
  229. global $x2e;
  230. global $x2f;
  231. global $x30;
  232. global $x31;
  233. global $x32;
  234. global $x33;
  235. global $x34;
  236. global $x35;
  237. global $x36;
  238. global $x37;
  239. global $x38;
  240. global $x39;
  241. global $x3a;
  242. global $x3b;
  243. global $x3c;
  244. global $x3d;
  245. global $x3e;
  246. global $x3f;
  247. global $x40;
  248. global $x41;
  249. global $x42;
  250. global $x43;
  251. global $x44;
  252. global $x45;
  253. global $x46;
  254. global $x47;
  255. global $x48;
  256. global $x49;
  257. global $x4a;
  258. global $x4b;
  259. global $x4c;
  260. global $x4d;
  261. global $x4e;
  262. global $x4f;
  263. global $x50;
  264. global $x51;
  265. global $x52;
  266. global $x53;
  267. global $x54;
  268.  
  269. $badiejedje = (( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) ? 'http://' : 'https://');
  270. return $badiejedje . $_SERVER['HTTP_HOST'];
  271. }
  272.  
  273. function read_settings() {
  274. global $x0b;
  275. global $x0c;
  276. global $x0d;
  277. global $x0e;
  278. global $x0f;
  279. global $x10;
  280. global $x11;
  281. global $x12;
  282. global $x13;
  283. global $x14;
  284. global $x15;
  285. global $x16;
  286. global $x17;
  287. global $x18;
  288. global $x19;
  289. global $x1a;
  290. global $x1b;
  291. global $x1c;
  292. global $x1d;
  293. global $x1e;
  294. global $x1f;
  295. global $x20;
  296. global $x21;
  297. global $x22;
  298. global $x23;
  299. global $x24;
  300. global $x25;
  301. global $x26;
  302. global $x27;
  303. global $x28;
  304. global $x29;
  305. global $x2a;
  306. global $x2b;
  307. global $x2c;
  308. global $x2d;
  309. global $x2e;
  310. global $x2f;
  311. global $x30;
  312. global $x31;
  313. global $x32;
  314. global $x33;
  315. global $x34;
  316. global $x35;
  317. global $x36;
  318. global $x37;
  319. global $x38;
  320. global $x39;
  321. global $x3a;
  322. global $x3b;
  323. global $x3c;
  324. global $x3d;
  325. global $x3e;
  326. global $x3f;
  327. global $x40;
  328. global $x41;
  329. global $x42;
  330. global $x43;
  331. global $x44;
  332. global $x45;
  333. global $x46;
  334. global $x47;
  335. global $x48;
  336. global $x49;
  337. global $x4a;
  338. global $x4b;
  339. global $x4c;
  340. global $x4d;
  341. global $x4e;
  342. global $x4f;
  343. global $x50;
  344. global $x51;
  345. global $x52;
  346. global $x53;
  347. global $x54;
  348.  
  349. $bdghccijhg = query_pairs( 'select `key`, value from settings' );
  350. return $bdghccijhg;
  351. }
  352.  
  353. function db_connect() {
  354. global $x0b;
  355. global $x0c;
  356. global $x0d;
  357. global $x0e;
  358. global $x0f;
  359. global $x10;
  360. global $x11;
  361. global $x12;
  362. global $x13;
  363. global $x14;
  364. global $x15;
  365. global $x16;
  366. global $x17;
  367. global $x18;
  368. global $x19;
  369. global $x1a;
  370. global $x1b;
  371. global $x1c;
  372. global $x1d;
  373. global $x1e;
  374. global $x1f;
  375. global $x20;
  376. global $x21;
  377. global $x22;
  378. global $x23;
  379. global $x24;
  380. global $x25;
  381. global $x26;
  382. global $x27;
  383. global $x28;
  384. global $x29;
  385. global $x2a;
  386. global $x2b;
  387. global $x2c;
  388. global $x2d;
  389. global $x2e;
  390. global $x2f;
  391. global $x30;
  392. global $x31;
  393. global $x32;
  394. global $x33;
  395. global $x34;
  396. global $x35;
  397. global $x36;
  398. global $x37;
  399. global $x38;
  400. global $x39;
  401. global $x3a;
  402. global $x3b;
  403. global $x3c;
  404. global $x3d;
  405. global $x3e;
  406. global $x3f;
  407. global $x40;
  408. global $x41;
  409. global $x42;
  410. global $x43;
  411. global $x44;
  412. global $x45;
  413. global $x46;
  414. global $x47;
  415. global $x48;
  416. global $x49;
  417. global $x4a;
  418. global $x4b;
  419. global $x4c;
  420. global $x4d;
  421. global $x4e;
  422. global $x4f;
  423. global $x50;
  424. global $x51;
  425. global $x52;
  426. global $x53;
  427. global $x54;
  428. global $mysql_database;
  429. global $mysql_host;
  430. global $mysql_password;
  431. global $mysql_username;
  432.  
  433. if (!isset( $eacecdbeif )) {
  434. if (!( $eacecdbeif = $diecjdfeha( $cdijhifbie, $didebhedgd, $chddhfejbf ))) {
  435. exit( 'I cannot connect to the database because: ' . $ecjddahacc( ) );
  436. (bool)true;
  437. }
  438.  
  439. $dacdddefjg( $cgigjajba, $eacecdbeif );
  440. }
  441.  
  442. return $eacecdbeif;
  443. }
  444.  
  445. function check_captcha($chcideice) {
  446. global $x0b;
  447. global $x0c;
  448. global $x0d;
  449. global $x0e;
  450. global $x0f;
  451. global $x10;
  452. global $x11;
  453. global $x12;
  454. global $x13;
  455. global $x14;
  456. global $x15;
  457. global $x16;
  458. global $x17;
  459. global $x18;
  460. global $x19;
  461. global $x1a;
  462. global $x1b;
  463. global $x1c;
  464. global $x1d;
  465. global $x1e;
  466. global $x1f;
  467. global $x20;
  468. global $x21;
  469. global $x22;
  470. global $x23;
  471. global $x24;
  472. global $x25;
  473. global $x26;
  474. global $x27;
  475. global $x28;
  476. global $x29;
  477. global $x2a;
  478. global $x2b;
  479. global $x2c;
  480. global $x2d;
  481. global $x2e;
  482. global $x2f;
  483. global $x30;
  484. global $x31;
  485. global $x32;
  486. global $x33;
  487. global $x34;
  488. global $x35;
  489. global $x36;
  490. global $x37;
  491. global $x38;
  492. global $x39;
  493. global $x3a;
  494. global $x3b;
  495. global $x3c;
  496. global $x3d;
  497. global $x3e;
  498. global $x3f;
  499. global $x40;
  500. global $x41;
  501. global $x42;
  502. global $x43;
  503. global $x44;
  504. global $x45;
  505. global $x46;
  506. global $x47;
  507. global $x48;
  508. global $x49;
  509. global $x4a;
  510. global $x4b;
  511. global $x4c;
  512. global $x4d;
  513. global $x4e;
  514. global $x4f;
  515. global $x50;
  516. global $x51;
  517. global $x52;
  518. global $x53;
  519. global $x54;
  520. global $settings;
  521. global $session;
  522.  
  523. if ($bcgahficac['use_turing']) {
  524. if ($daegejgghg( $chcideice ) != $daegejgghg( $dehhifcahi->get( 'code' ) )) {
  525. return false;
  526. }
  527.  
  528. return true;
  529. }
  530.  
  531. return true;
  532. }
  533.  
  534. function login_attempt($diechbfjeh, $cfjaebbbib, $chcideice) {
  535. global $x0b;
  536. global $x0c;
  537. global $x0d;
  538. global $x0e;
  539. global $x0f;
  540. global $x10;
  541. global $x11;
  542. global $x12;
  543. global $x13;
  544. global $x14;
  545. global $x15;
  546. global $x16;
  547. global $x17;
  548. global $x18;
  549. global $x19;
  550. global $x1a;
  551. global $x1b;
  552. global $x1c;
  553. global $x1d;
  554. global $x1e;
  555. global $x1f;
  556. global $x20;
  557. global $x21;
  558. global $x22;
  559. global $x23;
  560. global $x24;
  561. global $x25;
  562. global $x26;
  563. global $x27;
  564. global $x28;
  565. global $x29;
  566. global $x2a;
  567. global $x2b;
  568. global $x2c;
  569. global $x2d;
  570. global $x2e;
  571. global $x2f;
  572. global $x30;
  573. global $x31;
  574. global $x32;
  575. global $x33;
  576. global $x34;
  577. global $x35;
  578. global $x36;
  579. global $x37;
  580. global $x38;
  581. global $x39;
  582. global $x3a;
  583. global $x3b;
  584. global $x3c;
  585. global $x3d;
  586. global $x3e;
  587. global $x3f;
  588. global $x40;
  589. global $x41;
  590. global $x42;
  591. global $x43;
  592. global $x44;
  593. global $x45;
  594. global $x46;
  595. global $x47;
  596. global $x48;
  597. global $x49;
  598. global $x4a;
  599. global $x4b;
  600. global $x4c;
  601. global $x4d;
  602. global $x4e;
  603. global $x4f;
  604. global $x50;
  605. global $x51;
  606. global $x52;
  607. global $x53;
  608. global $x54;
  609. global $settings;
  610. global $session;
  611.  
  612. if (!check_captcha( $chcideice )) {
  613. return LOGIN_WRONGCODE;
  614. }
  615.  
  616. $ihfaeebij = query_row( 'SELECT * FROM members WHERE user_name=\'%s\'', $diechbfjeh );
  617.  
  618. if (empty( $ihfaeebij )) {
  619. return LOGIN_WRONGUSERNAME;
  620. }
  621.  
  622. if ($bcgahficac['use_encryption']) {
  623. if ($ihfaeebij['password'] != $cgcachefei( $cfjaebbbib )) {
  624. return LOGIN_WRONGPASSWORD;
  625. }
  626. } else {
  627. if ($ihfaeebij['password'] != $cfjaebbbib) {
  628. return LOGIN_WRONGPASSWORD;
  629. }
  630. }
  631.  
  632. switch ($ihfaeebij['status']) {
  633. case 'suspended': {
  634. LOGIN_SUSPENDED;
  635. }
  636. }
  637.  
  638. return ;
  639. }
  640.  
  641. function render_errors() {
  642. global $x0b;
  643. global $x0c;
  644. global $x0d;
  645. global $x0e;
  646. global $x0f;
  647. global $x10;
  648. global $x11;
  649. global $x12;
  650. global $x13;
  651. global $x14;
  652. global $x15;
  653. global $x16;
  654. global $x17;
  655. global $x18;
  656. global $x19;
  657. global $x1a;
  658. global $x1b;
  659. global $x1c;
  660. global $x1d;
  661. global $x1e;
  662. global $x1f;
  663. global $x20;
  664. global $x21;
  665. global $x22;
  666. global $x23;
  667. global $x24;
  668. global $x25;
  669. global $x26;
  670. global $x27;
  671. global $x28;
  672. global $x29;
  673. global $x2a;
  674. global $x2b;
  675. global $x2c;
  676. global $x2d;
  677. global $x2e;
  678. global $x2f;
  679. global $x30;
  680. global $x31;
  681. global $x32;
  682. global $x33;
  683. global $x34;
  684. global $x35;
  685. global $x36;
  686. global $x37;
  687. global $x38;
  688. global $x39;
  689. global $x3a;
  690. global $x3b;
  691. global $x3c;
  692. global $x3d;
  693. global $x3e;
  694. global $x3f;
  695. global $x40;
  696. global $x41;
  697. global $x42;
  698. global $x43;
  699. global $x44;
  700. global $x45;
  701. global $x46;
  702. global $x47;
  703. global $x48;
  704. global $x49;
  705. global $x4a;
  706. global $x4b;
  707. global $x4c;
  708. global $x4d;
  709. global $x4e;
  710. global $x4f;
  711. global $x50;
  712. global $x51;
  713. global $x52;
  714. global $x53;
  715. global $x54;
  716. global $err;
  717.  
  718. $chffgagadc = '';
  719.  
  720. if (0 < $bedbahigdc( $djgicideei )) {
  721. $chffgagadc = '<table class="error_box" align="center"><tr><td><img src="images/warning.gif" /></td><td><ul>';
  722.  
  723. foreach ($djgicideei as $eafcfgbgeg) {
  724. $chffgagadc .= '<li>' . $eafcfgbgeg . '</li>';
  725. }
  726.  
  727. $chffgagadc .= '</ul></td></tr></table>';
  728. }
  729.  
  730. return $chffgagadc;
  731. }
  732.  
  733. function insert_data($bjdbhajdbg, $cihcgbdhha, $dgegfhbefj, $cjgfifaejg = true) {
  734. global $x0b;
  735. global $x0c;
  736. global $x0d;
  737. global $x0e;
  738. global $x0f;
  739. global $x10;
  740. global $x11;
  741. global $x12;
  742. global $x13;
  743. global $x14;
  744. global $x15;
  745. global $x16;
  746. global $x17;
  747. global $x18;
  748. global $x19;
  749. global $x1a;
  750. global $x1b;
  751. global $x1c;
  752. global $x1d;
  753. global $x1e;
  754. global $x1f;
  755. global $x20;
  756. global $x21;
  757. global $x22;
  758. global $x23;
  759. global $x24;
  760. global $x25;
  761. global $x26;
  762. global $x27;
  763. global $x28;
  764. global $x29;
  765. global $x2a;
  766. global $x2b;
  767. global $x2c;
  768. global $x2d;
  769. global $x2e;
  770. global $x2f;
  771. global $x30;
  772. global $x31;
  773. global $x32;
  774. global $x33;
  775. global $x34;
  776. global $x35;
  777. global $x36;
  778. global $x37;
  779. global $x38;
  780. global $x39;
  781. global $x3a;
  782. global $x3b;
  783. global $x3c;
  784. global $x3d;
  785. global $x3e;
  786. global $x3f;
  787. global $x40;
  788. global $x41;
  789. global $x42;
  790. global $x43;
  791. global $x44;
  792. global $x45;
  793. global $x46;
  794. global $x47;
  795. global $x48;
  796. global $x49;
  797. global $x4a;
  798. global $x4b;
  799. global $x4c;
  800. global $x4d;
  801. global $x4e;
  802. global $x4f;
  803. global $x50;
  804. global $x51;
  805. global $x52;
  806. global $x53;
  807. global $x54;
  808.  
  809. $faeebjjfc = array( );
  810. $bhbaiihebd = array( );
  811. $eaeiifcgdg = db_connect( );
  812.  
  813. if ($cjgfifaejg) {
  814. $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
  815. }
  816.  
  817. $dfgihejjdj = ( ( ( ( '' . 'I' ) . 'N' ) . 'S' ) . 'ERT INTO ' . $bjdbhajdbg . ' ' );
  818. $eaiddfdjd = '(';
  819. $chjbhdhehh = '(';
  820. $daahfgibfd = false;
  821.  
  822. if ($dgegfhbefj) {
  823. $bhbaiihebd = $chjhcibgjd( $cihcgbdhha, $_POST );
  824. } else {
  825. $bhbaiihebd = $cihcgbdhha;
  826. }
  827.  
  828. $chffgagadc = $bddjhheeeh( ( ( '' . 'S' ) . 'HOW COLUMNS FROM ' . $bjdbhajdbg . ' ' ), $eaeiifcgdg );
  829.  
  830. if (0 < $geaaaegee( $chffgagadc )) {
  831. while ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
  832. if ($bhbaiihebd[$ihfaeebij['Field']] != '') {
  833. $faeebjjfc[$ihfaeebij['Field']] = $bhbaiihebd[$ihfaeebij['Field']];
  834. continue;
  835. }
  836. }
  837. } else {
  838. print 'ERROR: ' . $ecjddahacc( );
  839. }
  840.  
  841.  
  842. foreach ($faeebjjfc as $ecigfiibgf => $djccehejjd) {
  843. if ($daahfgibfd) {
  844. $eaiddfdjd .= ',';
  845. $chjbhdhehh .= ',';
  846. }
  847.  
  848. $eaiddfdjd .= $bbagiecaaf( $ecigfiibgf );
  849. $chjbhdhehh .= '\'' . $bbagiecaaf( $djccehejjd ) . '\'';
  850. $daahfgibfd = true;
  851. }
  852.  
  853. $eaiddfdjd .= ') ';
  854. $chjbhdhehh .= ') ';
  855. $dfgihejjdj .= $eaiddfdjd . ' VALUES ' . $chjbhdhehh;
  856.  
  857. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  858. exit( 'insert failed.: ' . $dfgihejjdj );
  859. (bool)true;
  860. }
  861.  
  862. return $jjegeehdc( );
  863. }
  864.  
  865. function mass_update($bjdbhajdbg, $ecbjhddh, $eagfhjaffg) {
  866. global $x0b;
  867. global $x0c;
  868. global $x0d;
  869. global $x0e;
  870. global $x0f;
  871. global $x10;
  872. global $x11;
  873. global $x12;
  874. global $x13;
  875. global $x14;
  876. global $x15;
  877. global $x16;
  878. global $x17;
  879. global $x18;
  880. global $x19;
  881. global $x1a;
  882. global $x1b;
  883. global $x1c;
  884. global $x1d;
  885. global $x1e;
  886. global $x1f;
  887. global $x20;
  888. global $x21;
  889. global $x22;
  890. global $x23;
  891. global $x24;
  892. global $x25;
  893. global $x26;
  894. global $x27;
  895. global $x28;
  896. global $x29;
  897. global $x2a;
  898. global $x2b;
  899. global $x2c;
  900. global $x2d;
  901. global $x2e;
  902. global $x2f;
  903. global $x30;
  904. global $x31;
  905. global $x32;
  906. global $x33;
  907. global $x34;
  908. global $x35;
  909. global $x36;
  910. global $x37;
  911. global $x38;
  912. global $x39;
  913. global $x3a;
  914. global $x3b;
  915. global $x3c;
  916. global $x3d;
  917. global $x3e;
  918. global $x3f;
  919. global $x40;
  920. global $x41;
  921. global $x42;
  922. global $x43;
  923. global $x44;
  924. global $x45;
  925. global $x46;
  926. global $x47;
  927. global $x48;
  928. global $x49;
  929. global $x4a;
  930. global $x4b;
  931. global $x4c;
  932. global $x4d;
  933. global $x4e;
  934. global $x4f;
  935. global $x50;
  936. global $x51;
  937. global $x52;
  938. global $x53;
  939. global $x54;
  940.  
  941. foreach ($eagfhjaffg as $ecaidcgdha => $eafcfgbgeg) {
  942. query_update( $bjdbhajdbg, $ecbjhddh, $ecaidcgdha, $eafcfgbgeg, false );
  943. }
  944.  
  945. }
  946.  
  947. function query_update($bjdbhajdbg, $ecbjhddh, $dabheeijef, $cihcgbdhha, $dgegfhbefj, $cjgfifaejg = true) {
  948. global $x0b;
  949. global $x0c;
  950. global $x0d;
  951. global $x0e;
  952. global $x0f;
  953. global $x10;
  954. global $x11;
  955. global $x12;
  956. global $x13;
  957. global $x14;
  958. global $x15;
  959. global $x16;
  960. global $x17;
  961. global $x18;
  962. global $x19;
  963. global $x1a;
  964. global $x1b;
  965. global $x1c;
  966. global $x1d;
  967. global $x1e;
  968. global $x1f;
  969. global $x20;
  970. global $x21;
  971. global $x22;
  972. global $x23;
  973. global $x24;
  974. global $x25;
  975. global $x26;
  976. global $x27;
  977. global $x28;
  978. global $x29;
  979. global $x2a;
  980. global $x2b;
  981. global $x2c;
  982. global $x2d;
  983. global $x2e;
  984. global $x2f;
  985. global $x30;
  986. global $x31;
  987. global $x32;
  988. global $x33;
  989. global $x34;
  990. global $x35;
  991. global $x36;
  992. global $x37;
  993. global $x38;
  994. global $x39;
  995. global $x3a;
  996. global $x3b;
  997. global $x3c;
  998. global $x3d;
  999. global $x3e;
  1000. global $x3f;
  1001. global $x40;
  1002. global $x41;
  1003. global $x42;
  1004. global $x43;
  1005. global $x44;
  1006. global $x45;
  1007. global $x46;
  1008. global $x47;
  1009. global $x48;
  1010. global $x49;
  1011. global $x4a;
  1012. global $x4b;
  1013. global $x4c;
  1014. global $x4d;
  1015. global $x4e;
  1016. global $x4f;
  1017. global $x50;
  1018. global $x51;
  1019. global $x52;
  1020. global $x53;
  1021. global $x54;
  1022.  
  1023. $faeebjjfc = array( );
  1024. $ddajehahff = array( );
  1025. $eaeiifcgdg = db_connect( );
  1026. $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
  1027. $dfgihejjdj = '' . 'UPDATE ' . $bjdbhajdbg . ' SET ';
  1028. $eaiddfdjd = '';
  1029. $daahfgibfd = false;
  1030.  
  1031. if ($dgegfhbefj) {
  1032. $ddajehahff = $chjhcibgjd( $cihcgbdhha, $_POST );
  1033. } else {
  1034. $ddajehahff = $cihcgbdhha;
  1035. }
  1036.  
  1037. $chffgagadc = $bddjhheeeh( ( ( '' . 'S' ) . 'HOW COLUMNS FROM ' . $bjdbhajdbg . ' ' ), $eaeiifcgdg );
  1038.  
  1039. if (0 < $geaaaegee( $chffgagadc )) {
  1040. while ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
  1041. if (isset( $ddajehahff[$ihfaeebij['Field']] )) {
  1042. $faeebjjfc[$ihfaeebij['Field']] = $ddajehahff[$ihfaeebij['Field']];
  1043. continue;
  1044. }
  1045. }
  1046. } else {
  1047. print 'ERROR: Table for insert not found: ' . $bjdbhajdbg;
  1048. }
  1049.  
  1050.  
  1051. foreach ($faeebjjfc as $ecigfiibgf => $djccehejjd) {
  1052. if ($daahfgibfd) {
  1053. $eaiddfdjd .= ',';
  1054. }
  1055.  
  1056. $eaiddfdjd .= $bbagiecaaf( $ecigfiibgf ) . '=\'' . $bbagiecaaf( $djccehejjd ) . '\'';
  1057. $daahfgibfd = true;
  1058. }
  1059.  
  1060. $dfgihejjdj .= $eaiddfdjd . ' WHERE ' . $bbagiecaaf( $ecbjhddh ) . '=' . '\'' . $bbagiecaaf( $dabheeijef ) . '\'';
  1061.  
  1062. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1063. exit( 'update failed.: ' . $dfgihejjdj );
  1064. (bool)true;
  1065. }
  1066.  
  1067. return true;
  1068. }
  1069.  
  1070. function send_credentials($bfcdehgicb) {
  1071. global $x0b;
  1072. global $x0c;
  1073. global $x0d;
  1074. global $x0e;
  1075. global $x0f;
  1076. global $x10;
  1077. global $x11;
  1078. global $x12;
  1079. global $x13;
  1080. global $x14;
  1081. global $x15;
  1082. global $x16;
  1083. global $x17;
  1084. global $x18;
  1085. global $x19;
  1086. global $x1a;
  1087. global $x1b;
  1088. global $x1c;
  1089. global $x1d;
  1090. global $x1e;
  1091. global $x1f;
  1092. global $x20;
  1093. global $x21;
  1094. global $x22;
  1095. global $x23;
  1096. global $x24;
  1097. global $x25;
  1098. global $x26;
  1099. global $x27;
  1100. global $x28;
  1101. global $x29;
  1102. global $x2a;
  1103. global $x2b;
  1104. global $x2c;
  1105. global $x2d;
  1106. global $x2e;
  1107. global $x2f;
  1108. global $x30;
  1109. global $x31;
  1110. global $x32;
  1111. global $x33;
  1112. global $x34;
  1113. global $x35;
  1114. global $x36;
  1115. global $x37;
  1116. global $x38;
  1117. global $x39;
  1118. global $x3a;
  1119. global $x3b;
  1120. global $x3c;
  1121. global $x3d;
  1122. global $x3e;
  1123. global $x3f;
  1124. global $x40;
  1125. global $x41;
  1126. global $x42;
  1127. global $x43;
  1128. global $x44;
  1129. global $x45;
  1130. global $x46;
  1131. global $x47;
  1132. global $x48;
  1133. global $x49;
  1134. global $x4a;
  1135. global $x4b;
  1136. global $x4c;
  1137. global $x4d;
  1138. global $x4e;
  1139. global $x4f;
  1140. global $x50;
  1141. global $x51;
  1142. global $x52;
  1143. global $x53;
  1144. global $x54;
  1145. global $settings;
  1146.  
  1147. $eaeiifcgdg = db_connect( );
  1148.  
  1149. if (is_email( $bfcdehgicb )) {
  1150. $dfgihejjdj = 'SELECT user_name, first_name from members where email =\'' . $bfcdehgicb . '\'';
  1151.  
  1152. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1153. exit( 'Query didn\'t work.' );
  1154. (bool)true;
  1155. }
  1156.  
  1157. if ($geaaaegee( $chffgagadc ) < 1) {
  1158. return EMAIL_NOTFOUND;
  1159. }
  1160.  
  1161. $ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC );
  1162. send_email( 'Send Username', $bfcdehgicb, get_mailfrom( ), $ihfaeebij );
  1163. return USERNAME_SENT;
  1164. }
  1165.  
  1166. if (!is_alphanumeric( $bfcdehgicb )) {
  1167. exit( 'Tampering: 338' );
  1168. }
  1169.  
  1170. $dfgihejjdj = 'SELECT member_id, password, email, first_name from members where user_name =\'' . $bfcdehgicb . '\'';
  1171.  
  1172. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1173. exit( 'Query didn\'t work.' );
  1174. (bool)true;
  1175. }
  1176.  
  1177. if ($geaaaegee( $chffgagadc ) < 1) {
  1178. return USERNAME_NOTFOUND;
  1179. }
  1180.  
  1181. $ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC );
  1182. $cfjaebbbib = generate_password( 8 );
  1183. $ihfaeebij['password'] = $cfjaebbbib;
  1184.  
  1185. if ($bcgahficac['use_encryption'] == '1') {
  1186. $cfjaebbbib = $cgcachefei( $cfjaebbbib );
  1187. }
  1188.  
  1189. query_update( 'members', 'member_id', $ihfaeebij['member_id'], array( 'password' => $cfjaebbbib, 'update_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
  1190. send_email( 'Send Password', $ihfaeebij['email'], get_mailfrom( ), $ihfaeebij );
  1191. return PASSWORD_SENT;
  1192. }
  1193.  
  1194. function send_email($cjeffjicgf, $dadjjgejhj, $beciadcdgf, $eaijaafbjg = array( ), $bfhhdgeied = '', $cahajjiege = '') {
  1195. global $x0b;
  1196. global $x0c;
  1197. global $x0d;
  1198. global $x0e;
  1199. global $x0f;
  1200. global $x10;
  1201. global $x11;
  1202. global $x12;
  1203. global $x13;
  1204. global $x14;
  1205. global $x15;
  1206. global $x16;
  1207. global $x17;
  1208. global $x18;
  1209. global $x19;
  1210. global $x1a;
  1211. global $x1b;
  1212. global $x1c;
  1213. global $x1d;
  1214. global $x1e;
  1215. global $x1f;
  1216. global $x20;
  1217. global $x21;
  1218. global $x22;
  1219. global $x23;
  1220. global $x24;
  1221. global $x25;
  1222. global $x26;
  1223. global $x27;
  1224. global $x28;
  1225. global $x29;
  1226. global $x2a;
  1227. global $x2b;
  1228. global $x2c;
  1229. global $x2d;
  1230. global $x2e;
  1231. global $x2f;
  1232. global $x30;
  1233. global $x31;
  1234. global $x32;
  1235. global $x33;
  1236. global $x34;
  1237. global $x35;
  1238. global $x36;
  1239. global $x37;
  1240. global $x38;
  1241. global $x39;
  1242. global $x3a;
  1243. global $x3b;
  1244. global $x3c;
  1245. global $x3d;
  1246. global $x3e;
  1247. global $x3f;
  1248. global $x40;
  1249. global $x41;
  1250. global $x42;
  1251. global $x43;
  1252. global $x44;
  1253. global $x45;
  1254. global $x46;
  1255. global $x47;
  1256. global $x48;
  1257. global $x49;
  1258. global $x4a;
  1259. global $x4b;
  1260. global $x4c;
  1261. global $x4d;
  1262. global $x4e;
  1263. global $x4f;
  1264. global $x50;
  1265. global $x51;
  1266. global $x52;
  1267. global $x53;
  1268. global $x54;
  1269. global $settings;
  1270. global $session;
  1271. global $glob;
  1272.  
  1273. $eaeiifcgdg = db_connect( );
  1274.  
  1275. if ($cahajjiege == '') {
  1276. $dbbcejebbb = '' . 'select * from email_templates where email_id = \'' . $cjeffjicgf . '\'';
  1277. $cdgfaahie = $bddjhheeeh( $dbbcejebbb, $eaeiifcgdg );
  1278. $ihfaeebij = $behijicbaj( $cdgfaahie );
  1279.  
  1280. if (!$ihfaeebij) {
  1281. exit( 'email template not found' );
  1282. return null;
  1283. }
  1284.  
  1285. if (!$ihfaeebij['enabled']) {
  1286. return null;
  1287. }
  1288.  
  1289. $cahajjiege = $ihfaeebij['text'];
  1290. $bfhhdgeied = $ihfaeebij['subject'];
  1291. } else {
  1292. $cahajjiege = $cahajjiege;
  1293. $bfhhdgeied = $bfhhdgeied;
  1294. }
  1295.  
  1296. $dgiedjceea = (( !empty( $bjicjiadhb ) && isset( $bjicjiadhb['user_data'] ) ) ? $bjicjiadhb['user_data'] : array( ));
  1297. $eaijaafbjg = $chjhcibgjd( $dgiedjceea, $eaijaafbjg, array( 'site_name' => $bcgahficac['site_name'], 'site_url' => get_url( ) ) );
  1298.  
  1299. foreach ($eaijaafbjg as $dabifdabdd => $gbdbighdb) {
  1300. if ($dcjbfhhefa( $gbdbighdb )) {
  1301. $gbdbighdb = $gbdbighdb[0];
  1302. }
  1303.  
  1304. $cahajjiege = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $cahajjiege );
  1305. $bfhhdgeied = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $bfhhdgeied );
  1306. }
  1307.  
  1308.  
  1309. if ($ihfaeebij['is_html']) {
  1310. $dibbehedac = 'MIME-Version: 1.0' . '
  1311. ';
  1312. $dibbehedac .= 'Content-type: text/html; charset=iso-8859-1' . '
  1313. ';
  1314. }
  1315.  
  1316. $dibbehedac .= ( ( ( ( '' . 'T' ) . 'o' ) . ':' ) . ' ' ) . $dadjjgejhj . '
  1317. ';
  1318. $dibbehedac .= '' . 'From: ' . $beciadcdgf . '
  1319. ';
  1320. return $djeaijacgg( $dadjjgejhj, $bfhhdgeied, $cahajjiege, $dibbehedac );
  1321. }
  1322.  
  1323. function get_mailfrom() {
  1324. global $x0b;
  1325. global $x0c;
  1326. global $x0d;
  1327. global $x0e;
  1328. global $x0f;
  1329. global $x10;
  1330. global $x11;
  1331. global $x12;
  1332. global $x13;
  1333. global $x14;
  1334. global $x15;
  1335. global $x16;
  1336. global $x17;
  1337. global $x18;
  1338. global $x19;
  1339. global $x1a;
  1340. global $x1b;
  1341. global $x1c;
  1342. global $x1d;
  1343. global $x1e;
  1344. global $x1f;
  1345. global $x20;
  1346. global $x21;
  1347. global $x22;
  1348. global $x23;
  1349. global $x24;
  1350. global $x25;
  1351. global $x26;
  1352. global $x27;
  1353. global $x28;
  1354. global $x29;
  1355. global $x2a;
  1356. global $x2b;
  1357. global $x2c;
  1358. global $x2d;
  1359. global $x2e;
  1360. global $x2f;
  1361. global $x30;
  1362. global $x31;
  1363. global $x32;
  1364. global $x33;
  1365. global $x34;
  1366. global $x35;
  1367. global $x36;
  1368. global $x37;
  1369. global $x38;
  1370. global $x39;
  1371. global $x3a;
  1372. global $x3b;
  1373. global $x3c;
  1374. global $x3d;
  1375. global $x3e;
  1376. global $x3f;
  1377. global $x40;
  1378. global $x41;
  1379. global $x42;
  1380. global $x43;
  1381. global $x44;
  1382. global $x45;
  1383. global $x46;
  1384. global $x47;
  1385. global $x48;
  1386. global $x49;
  1387. global $x4a;
  1388. global $x4b;
  1389. global $x4c;
  1390. global $x4d;
  1391. global $x4e;
  1392. global $x4f;
  1393. global $x50;
  1394. global $x51;
  1395. global $x52;
  1396. global $x53;
  1397. global $x54;
  1398. global $settings;
  1399.  
  1400. return '"' . $bcgahficac['site_name'] . '" <' . $bcgahficac['system_email'] . '>';
  1401. }
  1402.  
  1403. function check_activation($ceiahabjba, $chcideice) {
  1404. global $x0b;
  1405. global $x0c;
  1406. global $x0d;
  1407. global $x0e;
  1408. global $x0f;
  1409. global $x10;
  1410. global $x11;
  1411. global $x12;
  1412. global $x13;
  1413. global $x14;
  1414. global $x15;
  1415. global $x16;
  1416. global $x17;
  1417. global $x18;
  1418. global $x19;
  1419. global $x1a;
  1420. global $x1b;
  1421. global $x1c;
  1422. global $x1d;
  1423. global $x1e;
  1424. global $x1f;
  1425. global $x20;
  1426. global $x21;
  1427. global $x22;
  1428. global $x23;
  1429. global $x24;
  1430. global $x25;
  1431. global $x26;
  1432. global $x27;
  1433. global $x28;
  1434. global $x29;
  1435. global $x2a;
  1436. global $x2b;
  1437. global $x2c;
  1438. global $x2d;
  1439. global $x2e;
  1440. global $x2f;
  1441. global $x30;
  1442. global $x31;
  1443. global $x32;
  1444. global $x33;
  1445. global $x34;
  1446. global $x35;
  1447. global $x36;
  1448. global $x37;
  1449. global $x38;
  1450. global $x39;
  1451. global $x3a;
  1452. global $x3b;
  1453. global $x3c;
  1454. global $x3d;
  1455. global $x3e;
  1456. global $x3f;
  1457. global $x40;
  1458. global $x41;
  1459. global $x42;
  1460. global $x43;
  1461. global $x44;
  1462. global $x45;
  1463. global $x46;
  1464. global $x47;
  1465. global $x48;
  1466. global $x49;
  1467. global $x4a;
  1468. global $x4b;
  1469. global $x4c;
  1470. global $x4d;
  1471. global $x4e;
  1472. global $x4f;
  1473. global $x50;
  1474. global $x51;
  1475. global $x52;
  1476. global $x53;
  1477. global $x54;
  1478.  
  1479. if (!$dchbacbcjc( $ceiahabjba )) {
  1480. exit( 'Tampering: 424' );
  1481. }
  1482.  
  1483. if (!is_numericdash( $chcideice )) {
  1484. exit( 'Tampering: 425' );
  1485. }
  1486.  
  1487. $eaeiifcgdg = db_connect( );
  1488. $dfgihejjdj = '' . 'SELECT activation_code from members where member_id=\'' . $ceiahabjba . '\' and activation_code=\'' . $chcideice . '\'';
  1489.  
  1490. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1491. exit( 'Query didn\'t work.' );
  1492. (bool)true;
  1493. }
  1494.  
  1495. if (0 < $geaaaegee( $chffgagadc )) {
  1496. $dfgihejjdj = 'UPDATE members SET activation_code = NULL, status=\'enabled\', update_on=\'' . $cgbgjjdhaj( 'Y-m-d H:i:s' ) . ( '' . '\' WHERE member_id=' . $ceiahabjba );
  1497.  
  1498. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1499. exit( 'Query didn\'t work.' );
  1500. (bool)true;
  1501. }
  1502.  
  1503. return 1;
  1504. }
  1505.  
  1506. return 0;
  1507. }
  1508.  
  1509. function generate_code() {
  1510. global $x0b;
  1511. global $x0c;
  1512. global $x0d;
  1513. global $x0e;
  1514. global $x0f;
  1515. global $x10;
  1516. global $x11;
  1517. global $x12;
  1518. global $x13;
  1519. global $x14;
  1520. global $x15;
  1521. global $x16;
  1522. global $x17;
  1523. global $x18;
  1524. global $x19;
  1525. global $x1a;
  1526. global $x1b;
  1527. global $x1c;
  1528. global $x1d;
  1529. global $x1e;
  1530. global $x1f;
  1531. global $x20;
  1532. global $x21;
  1533. global $x22;
  1534. global $x23;
  1535. global $x24;
  1536. global $x25;
  1537. global $x26;
  1538. global $x27;
  1539. global $x28;
  1540. global $x29;
  1541. global $x2a;
  1542. global $x2b;
  1543. global $x2c;
  1544. global $x2d;
  1545. global $x2e;
  1546. global $x2f;
  1547. global $x30;
  1548. global $x31;
  1549. global $x32;
  1550. global $x33;
  1551. global $x34;
  1552. global $x35;
  1553. global $x36;
  1554. global $x37;
  1555. global $x38;
  1556. global $x39;
  1557. global $x3a;
  1558. global $x3b;
  1559. global $x3c;
  1560. global $x3d;
  1561. global $x3e;
  1562. global $x3f;
  1563. global $x40;
  1564. global $x41;
  1565. global $x42;
  1566. global $x43;
  1567. global $x44;
  1568. global $x45;
  1569. global $x46;
  1570. global $x47;
  1571. global $x48;
  1572. global $x49;
  1573. global $x4a;
  1574. global $x4b;
  1575. global $x4c;
  1576. global $x4d;
  1577. global $x4e;
  1578. global $x4f;
  1579. global $x50;
  1580. global $x51;
  1581. global $x52;
  1582. global $x53;
  1583. global $x54;
  1584.  
  1585. $bbdgcbchfg = '';
  1586. $diebididgh = 1;
  1587.  
  1588. while ($diebididgh < 5) {
  1589. if ($diebididgh != 1) {
  1590. $bbdgcbchfg .= '-';
  1591. }
  1592.  
  1593. $bbdgcbchfg .= $geacjcdaf( 10000, 99999 );
  1594. ++$diebididgh;
  1595. }
  1596.  
  1597. return $bbdgcbchfg;
  1598. }
  1599.  
  1600. function generate_password($bceaihihjb, $ccahbjhgaa = true, $bfhbjgaebh = true, $biabajcbaa = true) {
  1601. global $x0b;
  1602. global $x0c;
  1603. global $x0d;
  1604. global $x0e;
  1605. global $x0f;
  1606. global $x10;
  1607. global $x11;
  1608. global $x12;
  1609. global $x13;
  1610. global $x14;
  1611. global $x15;
  1612. global $x16;
  1613. global $x17;
  1614. global $x18;
  1615. global $x19;
  1616. global $x1a;
  1617. global $x1b;
  1618. global $x1c;
  1619. global $x1d;
  1620. global $x1e;
  1621. global $x1f;
  1622. global $x20;
  1623. global $x21;
  1624. global $x22;
  1625. global $x23;
  1626. global $x24;
  1627. global $x25;
  1628. global $x26;
  1629. global $x27;
  1630. global $x28;
  1631. global $x29;
  1632. global $x2a;
  1633. global $x2b;
  1634. global $x2c;
  1635. global $x2d;
  1636. global $x2e;
  1637. global $x2f;
  1638. global $x30;
  1639. global $x31;
  1640. global $x32;
  1641. global $x33;
  1642. global $x34;
  1643. global $x35;
  1644. global $x36;
  1645. global $x37;
  1646. global $x38;
  1647. global $x39;
  1648. global $x3a;
  1649. global $x3b;
  1650. global $x3c;
  1651. global $x3d;
  1652. global $x3e;
  1653. global $x3f;
  1654. global $x40;
  1655. global $x41;
  1656. global $x42;
  1657. global $x43;
  1658. global $x44;
  1659. global $x45;
  1660. global $x46;
  1661. global $x47;
  1662. global $x48;
  1663. global $x49;
  1664. global $x4a;
  1665. global $x4b;
  1666. global $x4c;
  1667. global $x4d;
  1668. global $x4e;
  1669. global $x4f;
  1670. global $x50;
  1671. global $x51;
  1672. global $x52;
  1673. global $x53;
  1674. global $x54;
  1675.  
  1676. $cfjaebbbib = '';
  1677.  
  1678. while ($behjgejeae( $cfjaebbbib ) < $bceaihihjb) {
  1679. switch ($geacjcdaf( 0, 2 )) {
  1680. case 0: {
  1681. if ($ccahbjhgaa) {
  1682. $cfjaebbbib .= $geacjcdaf( 0, 9 );
  1683. }
  1684.  
  1685. break;
  1686. }
  1687.  
  1688. case 1: {
  1689. if ($bfhbjgaebh) {
  1690. $cfjaebbbib .= $chchicafbi( $geacjcdaf( 97, 122 ) );
  1691. }
  1692.  
  1693. break;
  1694. }
  1695.  
  1696. case 2: {
  1697. if ($biabajcbaa) {
  1698. $cfjaebbbib .= $chchicafbi( $geacjcdaf( 65, 90 ) );
  1699. }
  1700. }
  1701. }
  1702. }
  1703.  
  1704. return $cfjaebbbib;
  1705. }
  1706.  
  1707. function check_unique($gcdgijcgd, $hejfhacb) {
  1708. global $x0b;
  1709. global $x0c;
  1710. global $x0d;
  1711. global $x0e;
  1712. global $x0f;
  1713. global $x10;
  1714. global $x11;
  1715. global $x12;
  1716. global $x13;
  1717. global $x14;
  1718. global $x15;
  1719. global $x16;
  1720. global $x17;
  1721. global $x18;
  1722. global $x19;
  1723. global $x1a;
  1724. global $x1b;
  1725. global $x1c;
  1726. global $x1d;
  1727. global $x1e;
  1728. global $x1f;
  1729. global $x20;
  1730. global $x21;
  1731. global $x22;
  1732. global $x23;
  1733. global $x24;
  1734. global $x25;
  1735. global $x26;
  1736. global $x27;
  1737. global $x28;
  1738. global $x29;
  1739. global $x2a;
  1740. global $x2b;
  1741. global $x2c;
  1742. global $x2d;
  1743. global $x2e;
  1744. global $x2f;
  1745. global $x30;
  1746. global $x31;
  1747. global $x32;
  1748. global $x33;
  1749. global $x34;
  1750. global $x35;
  1751. global $x36;
  1752. global $x37;
  1753. global $x38;
  1754. global $x39;
  1755. global $x3a;
  1756. global $x3b;
  1757. global $x3c;
  1758. global $x3d;
  1759. global $x3e;
  1760. global $x3f;
  1761. global $x40;
  1762. global $x41;
  1763. global $x42;
  1764. global $x43;
  1765. global $x44;
  1766. global $x45;
  1767. global $x46;
  1768. global $x47;
  1769. global $x48;
  1770. global $x49;
  1771. global $x4a;
  1772. global $x4b;
  1773. global $x4c;
  1774. global $x4d;
  1775. global $x4e;
  1776. global $x4f;
  1777. global $x50;
  1778. global $x51;
  1779. global $x52;
  1780. global $x53;
  1781. global $x54;
  1782.  
  1783. if (!is_email( $gcdgijcgd )) {
  1784. exit( 'Tampering: 477' );
  1785. }
  1786.  
  1787. if (!is_alphanumeric( $hejfhacb )) {
  1788. exit( 'Tampering: 478' );
  1789. }
  1790.  
  1791. $eaeiifcgdg = db_connect( );
  1792. $dfgihejjdj = ( ( '' . 'S' ) . 'E' ) . 'LECT email, user_name from members where email=\'' . $gcdgijcgd . '\' or user_name=\'' . $hejfhacb . '\'';
  1793.  
  1794. if (!( $chffgagadc = $bddjhheeeh( $dfgihejjdj, $eaeiifcgdg ))) {
  1795. exit( 'Query didn\'t work.' );
  1796. (bool)true;
  1797. }
  1798.  
  1799. if (0 < $geaaaegee( $chffgagadc )) {
  1800. $ihfaeebij = $ecbdbcfhda( $chffgagadc );
  1801.  
  1802. if ($ihfaeebij['email'] == $gcdgijcgd) {
  1803. return DUPLICATE_EMAIL;
  1804. }
  1805.  
  1806. if ($ihfaeebij['user_name'] == $hejfhacb) {
  1807. return DUPLICATE_USERNAME;
  1808. }
  1809. }
  1810.  
  1811. return 0;
  1812. }
  1813.  
  1814. function send_activation_code($ceiahabjba) {
  1815. global $x0b;
  1816. global $x0c;
  1817. global $x0d;
  1818. global $x0e;
  1819. global $x0f;
  1820. global $x10;
  1821. global $x11;
  1822. global $x12;
  1823. global $x13;
  1824. global $x14;
  1825. global $x15;
  1826. global $x16;
  1827. global $x17;
  1828. global $x18;
  1829. global $x19;
  1830. global $x1a;
  1831. global $x1b;
  1832. global $x1c;
  1833. global $x1d;
  1834. global $x1e;
  1835. global $x1f;
  1836. global $x20;
  1837. global $x21;
  1838. global $x22;
  1839. global $x23;
  1840. global $x24;
  1841. global $x25;
  1842. global $x26;
  1843. global $x27;
  1844. global $x28;
  1845. global $x29;
  1846. global $x2a;
  1847. global $x2b;
  1848. global $x2c;
  1849. global $x2d;
  1850. global $x2e;
  1851. global $x2f;
  1852. global $x30;
  1853. global $x31;
  1854. global $x32;
  1855. global $x33;
  1856. global $x34;
  1857. global $x35;
  1858. global $x36;
  1859. global $x37;
  1860. global $x38;
  1861. global $x39;
  1862. global $x3a;
  1863. global $x3b;
  1864. global $x3c;
  1865. global $x3d;
  1866. global $x3e;
  1867. global $x3f;
  1868. global $x40;
  1869. global $x41;
  1870. global $x42;
  1871. global $x43;
  1872. global $x44;
  1873. global $x45;
  1874. global $x46;
  1875. global $x47;
  1876. global $x48;
  1877. global $x49;
  1878. global $x4a;
  1879. global $x4b;
  1880. global $x4c;
  1881. global $x4d;
  1882. global $x4e;
  1883. global $x4f;
  1884. global $x50;
  1885. global $x51;
  1886. global $x52;
  1887. global $x53;
  1888. global $x54;
  1889.  
  1890. if ($ceiahabjba < 1) {
  1891. exit( 'Tampering: 496' );
  1892. }
  1893.  
  1894. $ihfaeebij = query_row( 'SELECT member_id, first_name, activation_code, email from members where member_id=%s', $ceiahabjba );
  1895.  
  1896. if (!send_email( 'activation required', $ihfaeebij['email'], get_mailfrom( ), $ihfaeebij )) {
  1897. print 'Send email with activation code failed.';
  1898. }
  1899.  
  1900. }
  1901.  
  1902. function db_command($ebaiefheid) {
  1903. global $x0b;
  1904. global $x0c;
  1905. global $x0d;
  1906. global $x0e;
  1907. global $x0f;
  1908. global $x10;
  1909. global $x11;
  1910. global $x12;
  1911. global $x13;
  1912. global $x14;
  1913. global $x15;
  1914. global $x16;
  1915. global $x17;
  1916. global $x18;
  1917. global $x19;
  1918. global $x1a;
  1919. global $x1b;
  1920. global $x1c;
  1921. global $x1d;
  1922. global $x1e;
  1923. global $x1f;
  1924. global $x20;
  1925. global $x21;
  1926. global $x22;
  1927. global $x23;
  1928. global $x24;
  1929. global $x25;
  1930. global $x26;
  1931. global $x27;
  1932. global $x28;
  1933. global $x29;
  1934. global $x2a;
  1935. global $x2b;
  1936. global $x2c;
  1937. global $x2d;
  1938. global $x2e;
  1939. global $x2f;
  1940. global $x30;
  1941. global $x31;
  1942. global $x32;
  1943. global $x33;
  1944. global $x34;
  1945. global $x35;
  1946. global $x36;
  1947. global $x37;
  1948. global $x38;
  1949. global $x39;
  1950. global $x3a;
  1951. global $x3b;
  1952. global $x3c;
  1953. global $x3d;
  1954. global $x3e;
  1955. global $x3f;
  1956. global $x40;
  1957. global $x41;
  1958. global $x42;
  1959. global $x43;
  1960. global $x44;
  1961. global $x45;
  1962. global $x46;
  1963. global $x47;
  1964. global $x48;
  1965. global $x49;
  1966. global $x4a;
  1967. global $x4b;
  1968. global $x4c;
  1969. global $x4d;
  1970. global $x4e;
  1971. global $x4f;
  1972. global $x50;
  1973. global $x51;
  1974. global $x52;
  1975. global $x53;
  1976. global $x54;
  1977.  
  1978. $eaeiifcgdg = db_connect( );
  1979.  
  1980. if (!( $bddjhheeeh( $ebaiefheid, $eaeiifcgdg ))) {
  1981. exit( '' . 'query failed: ' . $ebaiefheid . '. The error was: ' . $ecjddahacc( ) );
  1982. (bool)true;
  1983. }
  1984.  
  1985. return $dbijhbjjgj( );
  1986. }
  1987.  
  1988. function escape_array($eagfhjaffg) {
  1989. global $x0b;
  1990. global $x0c;
  1991. global $x0d;
  1992. global $x0e;
  1993. global $x0f;
  1994. global $x10;
  1995. global $x11;
  1996. global $x12;
  1997. global $x13;
  1998. global $x14;
  1999. global $x15;
  2000. global $x16;
  2001. global $x17;
  2002. global $x18;
  2003. global $x19;
  2004. global $x1a;
  2005. global $x1b;
  2006. global $x1c;
  2007. global $x1d;
  2008. global $x1e;
  2009. global $x1f;
  2010. global $x20;
  2011. global $x21;
  2012. global $x22;
  2013. global $x23;
  2014. global $x24;
  2015. global $x25;
  2016. global $x26;
  2017. global $x27;
  2018. global $x28;
  2019. global $x29;
  2020. global $x2a;
  2021. global $x2b;
  2022. global $x2c;
  2023. global $x2d;
  2024. global $x2e;
  2025. global $x2f;
  2026. global $x30;
  2027. global $x31;
  2028. global $x32;
  2029. global $x33;
  2030. global $x34;
  2031. global $x35;
  2032. global $x36;
  2033. global $x37;
  2034. global $x38;
  2035. global $x39;
  2036. global $x3a;
  2037. global $x3b;
  2038. global $x3c;
  2039. global $x3d;
  2040. global $x3e;
  2041. global $x3f;
  2042. global $x40;
  2043. global $x41;
  2044. global $x42;
  2045. global $x43;
  2046. global $x44;
  2047. global $x45;
  2048. global $x46;
  2049. global $x47;
  2050. global $x48;
  2051. global $x49;
  2052. global $x4a;
  2053. global $x4b;
  2054. global $x4c;
  2055. global $x4d;
  2056. global $x4e;
  2057. global $x4f;
  2058. global $x50;
  2059. global $x51;
  2060. global $x52;
  2061. global $x53;
  2062. global $x54;
  2063.  
  2064. $chffgagadc = array( );
  2065.  
  2066. foreach ($eagfhjaffg as $eafcfgbgeg) {
  2067. $chffgagadc[] = $bbagiecaaf( $eafcfgbgeg );
  2068. }
  2069.  
  2070. return $chffgagadc;
  2071. }
  2072.  
  2073. function query_main($ebaiefheid, $dbaifjadif, $baedjacjef = MYSQL_BOTH, $jadeeffdf = false) {
  2074. global $x0b;
  2075. global $x0c;
  2076. global $x0d;
  2077. global $x0e;
  2078. global $x0f;
  2079. global $x10;
  2080. global $x11;
  2081. global $x12;
  2082. global $x13;
  2083. global $x14;
  2084. global $x15;
  2085. global $x16;
  2086. global $x17;
  2087. global $x18;
  2088. global $x19;
  2089. global $x1a;
  2090. global $x1b;
  2091. global $x1c;
  2092. global $x1d;
  2093. global $x1e;
  2094. global $x1f;
  2095. global $x20;
  2096. global $x21;
  2097. global $x22;
  2098. global $x23;
  2099. global $x24;
  2100. global $x25;
  2101. global $x26;
  2102. global $x27;
  2103. global $x28;
  2104. global $x29;
  2105. global $x2a;
  2106. global $x2b;
  2107. global $x2c;
  2108. global $x2d;
  2109. global $x2e;
  2110. global $x2f;
  2111. global $x30;
  2112. global $x31;
  2113. global $x32;
  2114. global $x33;
  2115. global $x34;
  2116. global $x35;
  2117. global $x36;
  2118. global $x37;
  2119. global $x38;
  2120. global $x39;
  2121. global $x3a;
  2122. global $x3b;
  2123. global $x3c;
  2124. global $x3d;
  2125. global $x3e;
  2126. global $x3f;
  2127. global $x40;
  2128. global $x41;
  2129. global $x42;
  2130. global $x43;
  2131. global $x44;
  2132. global $x45;
  2133. global $x46;
  2134. global $x47;
  2135. global $x48;
  2136. global $x49;
  2137. global $x4a;
  2138. global $x4b;
  2139. global $x4c;
  2140. global $x4d;
  2141. global $x4e;
  2142. global $x4f;
  2143. global $x50;
  2144. global $x51;
  2145. global $x52;
  2146. global $x53;
  2147. global $x54;
  2148.  
  2149. $eaeiifcgdg = db_connect( );
  2150. $cjcbddejeb = null;
  2151.  
  2152. if (!$dcjbfhhefa( $dbaifjadif )) {
  2153. $ebaiefheid = $dgbicgejbc( '%s', $bbagiecaaf( $dbaifjadif ), $ebaiefheid );
  2154. } else {
  2155. if (!empty( $dbaifjadif )) {
  2156. $dbaifjadif = escape_array( $dbaifjadif );
  2157. $ebaiefheid = $dcjedjgjif( $ebaiefheid, $dbaifjadif );
  2158. }
  2159. }
  2160.  
  2161.  
  2162. if (!( $chffgagadc = $bddjhheeeh( $ebaiefheid, $eaeiifcgdg ))) {
  2163. exit( 'Query didn\'t work: ' . $ebaiefheid . ' Error: ' . $ecjddahacc( ) );
  2164. (bool)true;
  2165. }
  2166.  
  2167. return $chffgagadc;
  2168. }
  2169.  
  2170. function query_array($ebaiefheid, $dbaifjadif = array( )) {
  2171. global $x0b;
  2172. global $x0c;
  2173. global $x0d;
  2174. global $x0e;
  2175. global $x0f;
  2176. global $x10;
  2177. global $x11;
  2178. global $x12;
  2179. global $x13;
  2180. global $x14;
  2181. global $x15;
  2182. global $x16;
  2183. global $x17;
  2184. global $x18;
  2185. global $x19;
  2186. global $x1a;
  2187. global $x1b;
  2188. global $x1c;
  2189. global $x1d;
  2190. global $x1e;
  2191. global $x1f;
  2192. global $x20;
  2193. global $x21;
  2194. global $x22;
  2195. global $x23;
  2196. global $x24;
  2197. global $x25;
  2198. global $x26;
  2199. global $x27;
  2200. global $x28;
  2201. global $x29;
  2202. global $x2a;
  2203. global $x2b;
  2204. global $x2c;
  2205. global $x2d;
  2206. global $x2e;
  2207. global $x2f;
  2208. global $x30;
  2209. global $x31;
  2210. global $x32;
  2211. global $x33;
  2212. global $x34;
  2213. global $x35;
  2214. global $x36;
  2215. global $x37;
  2216. global $x38;
  2217. global $x39;
  2218. global $x3a;
  2219. global $x3b;
  2220. global $x3c;
  2221. global $x3d;
  2222. global $x3e;
  2223. global $x3f;
  2224. global $x40;
  2225. global $x41;
  2226. global $x42;
  2227. global $x43;
  2228. global $x44;
  2229. global $x45;
  2230. global $x46;
  2231. global $x47;
  2232. global $x48;
  2233. global $x49;
  2234. global $x4a;
  2235. global $x4b;
  2236. global $x4c;
  2237. global $x4d;
  2238. global $x4e;
  2239. global $x4f;
  2240. global $x50;
  2241. global $x51;
  2242. global $x52;
  2243. global $x53;
  2244. global $x54;
  2245.  
  2246. $cjcbddejeb = array( );
  2247. $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
  2248. $bdajeabifd = $bbhajdjdh( $chffgagadc, 0 );
  2249.  
  2250. while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_ASSOC )) {
  2251. $cjcbddejeb[$ihfaeebij[$bdajeabifd]] = $ihfaeebij;
  2252. }
  2253.  
  2254. return $cjcbddejeb;
  2255. }
  2256.  
  2257. function query_value($ebaiefheid, $dbaifjadif = array( )) {
  2258. global $x0b;
  2259. global $x0c;
  2260. global $x0d;
  2261. global $x0e;
  2262. global $x0f;
  2263. global $x10;
  2264. global $x11;
  2265. global $x12;
  2266. global $x13;
  2267. global $x14;
  2268. global $x15;
  2269. global $x16;
  2270. global $x17;
  2271. global $x18;
  2272. global $x19;
  2273. global $x1a;
  2274. global $x1b;
  2275. global $x1c;
  2276. global $x1d;
  2277. global $x1e;
  2278. global $x1f;
  2279. global $x20;
  2280. global $x21;
  2281. global $x22;
  2282. global $x23;
  2283. global $x24;
  2284. global $x25;
  2285. global $x26;
  2286. global $x27;
  2287. global $x28;
  2288. global $x29;
  2289. global $x2a;
  2290. global $x2b;
  2291. global $x2c;
  2292. global $x2d;
  2293. global $x2e;
  2294. global $x2f;
  2295. global $x30;
  2296. global $x31;
  2297. global $x32;
  2298. global $x33;
  2299. global $x34;
  2300. global $x35;
  2301. global $x36;
  2302. global $x37;
  2303. global $x38;
  2304. global $x39;
  2305. global $x3a;
  2306. global $x3b;
  2307. global $x3c;
  2308. global $x3d;
  2309. global $x3e;
  2310. global $x3f;
  2311. global $x40;
  2312. global $x41;
  2313. global $x42;
  2314. global $x43;
  2315. global $x44;
  2316. global $x45;
  2317. global $x46;
  2318. global $x47;
  2319. global $x48;
  2320. global $x49;
  2321. global $x4a;
  2322. global $x4b;
  2323. global $x4c;
  2324. global $x4d;
  2325. global $x4e;
  2326. global $x4f;
  2327. global $x50;
  2328. global $x51;
  2329. global $x52;
  2330. global $x53;
  2331. global $x54;
  2332.  
  2333. $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
  2334.  
  2335. if ($ihfaeebij = $djfbcheejh( $chffgagadc )) {
  2336. return $ihfaeebij[0];
  2337. }
  2338.  
  2339. return null;
  2340. }
  2341.  
  2342. function query_row($ebaiefheid, $dbaifjadif = array( )) {
  2343. global $x0b;
  2344. global $x0c;
  2345. global $x0d;
  2346. global $x0e;
  2347. global $x0f;
  2348. global $x10;
  2349. global $x11;
  2350. global $x12;
  2351. global $x13;
  2352. global $x14;
  2353. global $x15;
  2354. global $x16;
  2355. global $x17;
  2356. global $x18;
  2357. global $x19;
  2358. global $x1a;
  2359. global $x1b;
  2360. global $x1c;
  2361. global $x1d;
  2362. global $x1e;
  2363. global $x1f;
  2364. global $x20;
  2365. global $x21;
  2366. global $x22;
  2367. global $x23;
  2368. global $x24;
  2369. global $x25;
  2370. global $x26;
  2371. global $x27;
  2372. global $x28;
  2373. global $x29;
  2374. global $x2a;
  2375. global $x2b;
  2376. global $x2c;
  2377. global $x2d;
  2378. global $x2e;
  2379. global $x2f;
  2380. global $x30;
  2381. global $x31;
  2382. global $x32;
  2383. global $x33;
  2384. global $x34;
  2385. global $x35;
  2386. global $x36;
  2387. global $x37;
  2388. global $x38;
  2389. global $x39;
  2390. global $x3a;
  2391. global $x3b;
  2392. global $x3c;
  2393. global $x3d;
  2394. global $x3e;
  2395. global $x3f;
  2396. global $x40;
  2397. global $x41;
  2398. global $x42;
  2399. global $x43;
  2400. global $x44;
  2401. global $x45;
  2402. global $x46;
  2403. global $x47;
  2404. global $x48;
  2405. global $x49;
  2406. global $x4a;
  2407. global $x4b;
  2408. global $x4c;
  2409. global $x4d;
  2410. global $x4e;
  2411. global $x4f;
  2412. global $x50;
  2413. global $x51;
  2414. global $x52;
  2415. global $x53;
  2416. global $x54;
  2417.  
  2418. $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
  2419.  
  2420. if ($ihfaeebij = $ecbdbcfhda( $chffgagadc )) {
  2421. return $ihfaeebij;
  2422. }
  2423.  
  2424. return array( );
  2425. }
  2426.  
  2427. function query_pairs($ebaiefheid, $dbaifjadif = array( )) {
  2428. global $x0b;
  2429. global $x0c;
  2430. global $x0d;
  2431. global $x0e;
  2432. global $x0f;
  2433. global $x10;
  2434. global $x11;
  2435. global $x12;
  2436. global $x13;
  2437. global $x14;
  2438. global $x15;
  2439. global $x16;
  2440. global $x17;
  2441. global $x18;
  2442. global $x19;
  2443. global $x1a;
  2444. global $x1b;
  2445. global $x1c;
  2446. global $x1d;
  2447. global $x1e;
  2448. global $x1f;
  2449. global $x20;
  2450. global $x21;
  2451. global $x22;
  2452. global $x23;
  2453. global $x24;
  2454. global $x25;
  2455. global $x26;
  2456. global $x27;
  2457. global $x28;
  2458. global $x29;
  2459. global $x2a;
  2460. global $x2b;
  2461. global $x2c;
  2462. global $x2d;
  2463. global $x2e;
  2464. global $x2f;
  2465. global $x30;
  2466. global $x31;
  2467. global $x32;
  2468. global $x33;
  2469. global $x34;
  2470. global $x35;
  2471. global $x36;
  2472. global $x37;
  2473. global $x38;
  2474. global $x39;
  2475. global $x3a;
  2476. global $x3b;
  2477. global $x3c;
  2478. global $x3d;
  2479. global $x3e;
  2480. global $x3f;
  2481. global $x40;
  2482. global $x41;
  2483. global $x42;
  2484. global $x43;
  2485. global $x44;
  2486. global $x45;
  2487. global $x46;
  2488. global $x47;
  2489. global $x48;
  2490. global $x49;
  2491. global $x4a;
  2492. global $x4b;
  2493. global $x4c;
  2494. global $x4d;
  2495. global $x4e;
  2496. global $x4f;
  2497. global $x50;
  2498. global $x51;
  2499. global $x52;
  2500. global $x53;
  2501. global $x54;
  2502.  
  2503. $cjcbddejeb = array( );
  2504. $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
  2505.  
  2506. while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_NUM )) {
  2507. $cjcbddejeb[$ihfaeebij[0]] = $ihfaeebij[1];
  2508. }
  2509.  
  2510. return $cjcbddejeb;
  2511. }
  2512.  
  2513. function query_values($ebaiefheid, $dbaifjadif = array( )) {
  2514. global $x0b;
  2515. global $x0c;
  2516. global $x0d;
  2517. global $x0e;
  2518. global $x0f;
  2519. global $x10;
  2520. global $x11;
  2521. global $x12;
  2522. global $x13;
  2523. global $x14;
  2524. global $x15;
  2525. global $x16;
  2526. global $x17;
  2527. global $x18;
  2528. global $x19;
  2529. global $x1a;
  2530. global $x1b;
  2531. global $x1c;
  2532. global $x1d;
  2533. global $x1e;
  2534. global $x1f;
  2535. global $x20;
  2536. global $x21;
  2537. global $x22;
  2538. global $x23;
  2539. global $x24;
  2540. global $x25;
  2541. global $x26;
  2542. global $x27;
  2543. global $x28;
  2544. global $x29;
  2545. global $x2a;
  2546. global $x2b;
  2547. global $x2c;
  2548. global $x2d;
  2549. global $x2e;
  2550. global $x2f;
  2551. global $x30;
  2552. global $x31;
  2553. global $x32;
  2554. global $x33;
  2555. global $x34;
  2556. global $x35;
  2557. global $x36;
  2558. global $x37;
  2559. global $x38;
  2560. global $x39;
  2561. global $x3a;
  2562. global $x3b;
  2563. global $x3c;
  2564. global $x3d;
  2565. global $x3e;
  2566. global $x3f;
  2567. global $x40;
  2568. global $x41;
  2569. global $x42;
  2570. global $x43;
  2571. global $x44;
  2572. global $x45;
  2573. global $x46;
  2574. global $x47;
  2575. global $x48;
  2576. global $x49;
  2577. global $x4a;
  2578. global $x4b;
  2579. global $x4c;
  2580. global $x4d;
  2581. global $x4e;
  2582. global $x4f;
  2583. global $x50;
  2584. global $x51;
  2585. global $x52;
  2586. global $x53;
  2587. global $x54;
  2588.  
  2589. $cjcbddejeb = array( );
  2590. $chffgagadc = query_main( $ebaiefheid, $dbaifjadif );
  2591.  
  2592. while ($ihfaeebij = $behijicbaj( $chffgagadc, MYSQL_NUM )) {
  2593. $cjcbddejeb[] = $ihfaeebij[0];
  2594. }
  2595.  
  2596. return $cjcbddejeb;
  2597. }
  2598.  
  2599. function query_delete($bjdbhajdbg, $ecbjhddh, $jjfgfcigj) {
  2600. global $x0b;
  2601. global $x0c;
  2602. global $x0d;
  2603. global $x0e;
  2604. global $x0f;
  2605. global $x10;
  2606. global $x11;
  2607. global $x12;
  2608. global $x13;
  2609. global $x14;
  2610. global $x15;
  2611. global $x16;
  2612. global $x17;
  2613. global $x18;
  2614. global $x19;
  2615. global $x1a;
  2616. global $x1b;
  2617. global $x1c;
  2618. global $x1d;
  2619. global $x1e;
  2620. global $x1f;
  2621. global $x20;
  2622. global $x21;
  2623. global $x22;
  2624. global $x23;
  2625. global $x24;
  2626. global $x25;
  2627. global $x26;
  2628. global $x27;
  2629. global $x28;
  2630. global $x29;
  2631. global $x2a;
  2632. global $x2b;
  2633. global $x2c;
  2634. global $x2d;
  2635. global $x2e;
  2636. global $x2f;
  2637. global $x30;
  2638. global $x31;
  2639. global $x32;
  2640. global $x33;
  2641. global $x34;
  2642. global $x35;
  2643. global $x36;
  2644. global $x37;
  2645. global $x38;
  2646. global $x39;
  2647. global $x3a;
  2648. global $x3b;
  2649. global $x3c;
  2650. global $x3d;
  2651. global $x3e;
  2652. global $x3f;
  2653. global $x40;
  2654. global $x41;
  2655. global $x42;
  2656. global $x43;
  2657. global $x44;
  2658. global $x45;
  2659. global $x46;
  2660. global $x47;
  2661. global $x48;
  2662. global $x49;
  2663. global $x4a;
  2664. global $x4b;
  2665. global $x4c;
  2666. global $x4d;
  2667. global $x4e;
  2668. global $x4f;
  2669. global $x50;
  2670. global $x51;
  2671. global $x52;
  2672. global $x53;
  2673. global $x54;
  2674.  
  2675. $bjdbhajdbg = $bbagiecaaf( $bjdbhajdbg );
  2676. $ecbjhddh = $bbagiecaaf( $ecbjhddh );
  2677.  
  2678. if ($dcjbfhhefa( $jjfgfcigj )) {
  2679. $jdeigfad = $dhaghibhcb( ',', $jjfgfcigj );
  2680. $ccaiefjcbh = db_command( ( ( ( ( '' . 'DELETE FROM ' . $bjdbhajdbg . ' ' ) . 'W' ) . 'HERE ' . $ecbjhddh . ' IN (' . $jdeigfad . ')' ) . ';' ) );
  2681. } else {
  2682. $jjfgfcigj = $bbagiecaaf( $jjfgfcigj );
  2683. $ccaiefjcbh = db_command( ( '' . 'DELETE FROM ' . $bjdbhajdbg . ' WHERE ' . $ecbjhddh . '=' . $jjfgfcigj . ';' ) );
  2684. }
  2685.  
  2686. return $ccaiefjcbh;
  2687. }
  2688.  
  2689. function get_dropdown($ebaiefheid, $bjfadjadjd = '', $dbaifjadif = array( )) {
  2690. global $x0b;
  2691. global $x0c;
  2692. global $x0d;
  2693. global $x0e;
  2694. global $x0f;
  2695. global $x10;
  2696. global $x11;
  2697. global $x12;
  2698. global $x13;
  2699. global $x14;
  2700. global $x15;
  2701. global $x16;
  2702. global $x17;
  2703. global $x18;
  2704. global $x19;
  2705. global $x1a;
  2706. global $x1b;
  2707. global $x1c;
  2708. global $x1d;
  2709. global $x1e;
  2710. global $x1f;
  2711. global $x20;
  2712. global $x21;
  2713. global $x22;
  2714. global $x23;
  2715. global $x24;
  2716. global $x25;
  2717. global $x26;
  2718. global $x27;
  2719. global $x28;
  2720. global $x29;
  2721. global $x2a;
  2722. global $x2b;
  2723. global $x2c;
  2724. global $x2d;
  2725. global $x2e;
  2726. global $x2f;
  2727. global $x30;
  2728. global $x31;
  2729. global $x32;
  2730. global $x33;
  2731. global $x34;
  2732. global $x35;
  2733. global $x36;
  2734. global $x37;
  2735. global $x38;
  2736. global $x39;
  2737. global $x3a;
  2738. global $x3b;
  2739. global $x3c;
  2740. global $x3d;
  2741. global $x3e;
  2742. global $x3f;
  2743. global $x40;
  2744. global $x41;
  2745. global $x42;
  2746. global $x43;
  2747. global $x44;
  2748. global $x45;
  2749. global $x46;
  2750. global $x47;
  2751. global $x48;
  2752. global $x49;
  2753. global $x4a;
  2754. global $x4b;
  2755. global $x4c;
  2756. global $x4d;
  2757. global $x4e;
  2758. global $x4f;
  2759. global $x50;
  2760. global $x51;
  2761. global $x52;
  2762. global $x53;
  2763. global $x54;
  2764.  
  2765. $cjcbddejeb = array( );
  2766.  
  2767. if ($bjfadjadjd) {
  2768. $cjcbddejeb[] = $bjfadjadjd;
  2769. }
  2770.  
  2771. $dcbafdiabc = query_pairs( $ebaiefheid, $dbaifjadif );
  2772.  
  2773. if ($dcjbfhhefa( $dcbafdiabc )) {
  2774. $cjcbddejeb = $cjcbddejeb + $dcbafdiabc;
  2775. }
  2776.  
  2777. return $cjcbddejeb;
  2778. }
  2779.  
  2780. function get_enum($jehcidbdi, $ddahjejghd) {
  2781. global $x0b;
  2782. global $x0c;
  2783. global $x0d;
  2784. global $x0e;
  2785. global $x0f;
  2786. global $x10;
  2787. global $x11;
  2788. global $x12;
  2789. global $x13;
  2790. global $x14;
  2791. global $x15;
  2792. global $x16;
  2793. global $x17;
  2794. global $x18;
  2795. global $x19;
  2796. global $x1a;
  2797. global $x1b;
  2798. global $x1c;
  2799. global $x1d;
  2800. global $x1e;
  2801. global $x1f;
  2802. global $x20;
  2803. global $x21;
  2804. global $x22;
  2805. global $x23;
  2806. global $x24;
  2807. global $x25;
  2808. global $x26;
  2809. global $x27;
  2810. global $x28;
  2811. global $x29;
  2812. global $x2a;
  2813. global $x2b;
  2814. global $x2c;
  2815. global $x2d;
  2816. global $x2e;
  2817. global $x2f;
  2818. global $x30;
  2819. global $x31;
  2820. global $x32;
  2821. global $x33;
  2822. global $x34;
  2823. global $x35;
  2824. global $x36;
  2825. global $x37;
  2826. global $x38;
  2827. global $x39;
  2828. global $x3a;
  2829. global $x3b;
  2830. global $x3c;
  2831. global $x3d;
  2832. global $x3e;
  2833. global $x3f;
  2834. global $x40;
  2835. global $x41;
  2836. global $x42;
  2837. global $x43;
  2838. global $x44;
  2839. global $x45;
  2840. global $x46;
  2841. global $x47;
  2842. global $x48;
  2843. global $x49;
  2844. global $x4a;
  2845. global $x4b;
  2846. global $x4c;
  2847. global $x4d;
  2848. global $x4e;
  2849. global $x4f;
  2850. global $x50;
  2851. global $x51;
  2852. global $x52;
  2853. global $x53;
  2854. global $x54;
  2855.  
  2856. $gicfhhefh = array( );
  2857. $ihfaeebij = query_row( 'SHOW COLUMNS FROM %s LIKE \'%s\'', array( $jehcidbdi, $ddahjejghd ) );
  2858. $bfbccjbdij( '/\'(.*?)\'/', $ihfaeebij['Type'], $gicfhhefh );
  2859. return $gicfhhefh[1];
  2860. }
  2861.  
  2862. function get_balances($ceiahabjba) {
  2863. global $x0b;
  2864. global $x0c;
  2865. global $x0d;
  2866. global $x0e;
  2867. global $x0f;
  2868. global $x10;
  2869. global $x11;
  2870. global $x12;
  2871. global $x13;
  2872. global $x14;
  2873. global $x15;
  2874. global $x16;
  2875. global $x17;
  2876. global $x18;
  2877. global $x19;
  2878. global $x1a;
  2879. global $x1b;
  2880. global $x1c;
  2881. global $x1d;
  2882. global $x1e;
  2883. global $x1f;
  2884. global $x20;
  2885. global $x21;
  2886. global $x22;
  2887. global $x23;
  2888. global $x24;
  2889. global $x25;
  2890. global $x26;
  2891. global $x27;
  2892. global $x28;
  2893. global $x29;
  2894. global $x2a;
  2895. global $x2b;
  2896. global $x2c;
  2897. global $x2d;
  2898. global $x2e;
  2899. global $x2f;
  2900. global $x30;
  2901. global $x31;
  2902. global $x32;
  2903. global $x33;
  2904. global $x34;
  2905. global $x35;
  2906. global $x36;
  2907. global $x37;
  2908. global $x38;
  2909. global $x39;
  2910. global $x3a;
  2911. global $x3b;
  2912. global $x3c;
  2913. global $x3d;
  2914. global $x3e;
  2915. global $x3f;
  2916. global $x40;
  2917. global $x41;
  2918. global $x42;
  2919. global $x43;
  2920. global $x44;
  2921. global $x45;
  2922. global $x46;
  2923. global $x47;
  2924. global $x48;
  2925. global $x49;
  2926. global $x4a;
  2927. global $x4b;
  2928. global $x4c;
  2929. global $x4d;
  2930. global $x4e;
  2931. global $x4f;
  2932. global $x50;
  2933. global $x51;
  2934. global $x52;
  2935. global $x53;
  2936. global $x54;
  2937.  
  2938. if ($ceiahabjba < 1) {
  2939. exit( 'Tampering: 588' );
  2940. }
  2941.  
  2942. $bcaggbcgj['balances'] = query_array( 'select c.currency_id, c.currency_name, b.balance from balances as b inner join currencies as c on b.currency_id = c.currency_id where b.balance <> 0 and b.member_id =%s', $ceiahabjba );
  2943. $behjcjgdcd = query_value( 'select sum(balance) as total from balances where member_id =%s', $ceiahabjba );
  2944. $bcaggbcgj['total'] = ($behjcjgdcd == '' ? '0.00' : $behjcjgdcd);
  2945. return $bcaggbcgj;
  2946. }
  2947.  
  2948. function check_balance($ceiahabjba, $ccaicjgccg) {
  2949. global $x0b;
  2950. global $x0c;
  2951. global $x0d;
  2952. global $x0e;
  2953. global $x0f;
  2954. global $x10;
  2955. global $x11;
  2956. global $x12;
  2957. global $x13;
  2958. global $x14;
  2959. global $x15;
  2960. global $x16;
  2961. global $x17;
  2962. global $x18;
  2963. global $x19;
  2964. global $x1a;
  2965. global $x1b;
  2966. global $x1c;
  2967. global $x1d;
  2968. global $x1e;
  2969. global $x1f;
  2970. global $x20;
  2971. global $x21;
  2972. global $x22;
  2973. global $x23;
  2974. global $x24;
  2975. global $x25;
  2976. global $x26;
  2977. global $x27;
  2978. global $x28;
  2979. global $x29;
  2980. global $x2a;
  2981. global $x2b;
  2982. global $x2c;
  2983. global $x2d;
  2984. global $x2e;
  2985. global $x2f;
  2986. global $x30;
  2987. global $x31;
  2988. global $x32;
  2989. global $x33;
  2990. global $x34;
  2991. global $x35;
  2992. global $x36;
  2993. global $x37;
  2994. global $x38;
  2995. global $x39;
  2996. global $x3a;
  2997. global $x3b;
  2998. global $x3c;
  2999. global $x3d;
  3000. global $x3e;
  3001. global $x3f;
  3002. global $x40;
  3003. global $x41;
  3004. global $x42;
  3005. global $x43;
  3006. global $x44;
  3007. global $x45;
  3008. global $x46;
  3009. global $x47;
  3010. global $x48;
  3011. global $x49;
  3012. global $x4a;
  3013. global $x4b;
  3014. global $x4c;
  3015. global $x4d;
  3016. global $x4e;
  3017. global $x4f;
  3018. global $x50;
  3019. global $x51;
  3020. global $x52;
  3021. global $x53;
  3022. global $x54;
  3023.  
  3024. if (( $ceiahabjba < 1 || $ccaicjgccg < 1 )) {
  3025. exit( 'Tampering: 600' );
  3026. }
  3027.  
  3028. $behjcjgdcd = query_value( 'select balance from balances where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
  3029. return (0 < $behjcjgdcd ? $behjcjgdcd : 0);
  3030. }
  3031.  
  3032. function transfer_funds($dibidjbcjg, $fgbgbiga, $djaciebhdj, $djiedbbdde, $caijeedgjc) {
  3033. global $x0b;
  3034. global $x0c;
  3035. global $x0d;
  3036. global $x0e;
  3037. global $x0f;
  3038. global $x10;
  3039. global $x11;
  3040. global $x12;
  3041. global $x13;
  3042. global $x14;
  3043. global $x15;
  3044. global $x16;
  3045. global $x17;
  3046. global $x18;
  3047. global $x19;
  3048. global $x1a;
  3049. global $x1b;
  3050. global $x1c;
  3051. global $x1d;
  3052. global $x1e;
  3053. global $x1f;
  3054. global $x20;
  3055. global $x21;
  3056. global $x22;
  3057. global $x23;
  3058. global $x24;
  3059. global $x25;
  3060. global $x26;
  3061. global $x27;
  3062. global $x28;
  3063. global $x29;
  3064. global $x2a;
  3065. global $x2b;
  3066. global $x2c;
  3067. global $x2d;
  3068. global $x2e;
  3069. global $x2f;
  3070. global $x30;
  3071. global $x31;
  3072. global $x32;
  3073. global $x33;
  3074. global $x34;
  3075. global $x35;
  3076. global $x36;
  3077. global $x37;
  3078. global $x38;
  3079. global $x39;
  3080. global $x3a;
  3081. global $x3b;
  3082. global $x3c;
  3083. global $x3d;
  3084. global $x3e;
  3085. global $x3f;
  3086. global $x40;
  3087. global $x41;
  3088. global $x42;
  3089. global $x43;
  3090. global $x44;
  3091. global $x45;
  3092. global $x46;
  3093. global $x47;
  3094. global $x48;
  3095. global $x49;
  3096. global $x4a;
  3097. global $x4b;
  3098. global $x4c;
  3099. global $x4d;
  3100. global $x4e;
  3101. global $x4f;
  3102. global $x50;
  3103. global $x51;
  3104. global $x52;
  3105. global $x53;
  3106. global $x54;
  3107.  
  3108. if (check_balance( $dibidjbcjg, $djiedbbdde ) < $djaciebhdj) {
  3109. exit( 'Non sufficient funds for the transfer.' );
  3110. return null;
  3111. }
  3112.  
  3113. if (!change_balance( $dibidjbcjg, $djiedbbdde, 0 - $djaciebhdj )) {
  3114. exit( 'Error changing balance for sender.' );
  3115. }
  3116.  
  3117. if (!change_balance( $fgbgbiga, $djiedbbdde, $djaciebhdj )) {
  3118. exit( 'Error changing balance for recipient.' );
  3119. }
  3120.  
  3121. $dicacggdjf = query_value( 'select user_name from members where member_id=%s', $fgbgbiga );
  3122. insert_data( 'transactions', array( 'member_id' => $dibidjbcjg, 'currency_id' => $djiedbbdde, 'amount' => $djaciebhdj, 'type' => 'user_transfer', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cdcaaiffe( ) ), 'description' => 'Transfered $' . $djaciebhdj . ' to member ' . $dicacggdjf . '. Memo: ' . $caijeedgjc ), false );
  3123. $dicacggdjf = query_value( 'select user_name from members where member_id=%s', $dibidjbcjg );
  3124. insert_data( 'transactions', array( 'member_id' => $fgbgbiga, 'currency_id' => $djiedbbdde, 'amount' => $djaciebhdj, 'type' => 'user_transfer', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cdcaaiffe( ) ), 'description' => 'Received $' . $djaciebhdj . ' from member ' . $dicacggdjf . '. Memo: ' . $caijeedgjc ), false );
  3125. }
  3126.  
  3127. function get_enabled_currencies($ecgfiiaiac) {
  3128. global $x0b;
  3129. global $x0c;
  3130. global $x0d;
  3131. global $x0e;
  3132. global $x0f;
  3133. global $x10;
  3134. global $x11;
  3135. global $x12;
  3136. global $x13;
  3137. global $x14;
  3138. global $x15;
  3139. global $x16;
  3140. global $x17;
  3141. global $x18;
  3142. global $x19;
  3143. global $x1a;
  3144. global $x1b;
  3145. global $x1c;
  3146. global $x1d;
  3147. global $x1e;
  3148. global $x1f;
  3149. global $x20;
  3150. global $x21;
  3151. global $x22;
  3152. global $x23;
  3153. global $x24;
  3154. global $x25;
  3155. global $x26;
  3156. global $x27;
  3157. global $x28;
  3158. global $x29;
  3159. global $x2a;
  3160. global $x2b;
  3161. global $x2c;
  3162. global $x2d;
  3163. global $x2e;
  3164. global $x2f;
  3165. global $x30;
  3166. global $x31;
  3167. global $x32;
  3168. global $x33;
  3169. global $x34;
  3170. global $x35;
  3171. global $x36;
  3172. global $x37;
  3173. global $x38;
  3174. global $x39;
  3175. global $x3a;
  3176. global $x3b;
  3177. global $x3c;
  3178. global $x3d;
  3179. global $x3e;
  3180. global $x3f;
  3181. global $x40;
  3182. global $x41;
  3183. global $x42;
  3184. global $x43;
  3185. global $x44;
  3186. global $x45;
  3187. global $x46;
  3188. global $x47;
  3189. global $x48;
  3190. global $x49;
  3191. global $x4a;
  3192. global $x4b;
  3193. global $x4c;
  3194. global $x4d;
  3195. global $x4e;
  3196. global $x4f;
  3197. global $x50;
  3198. global $x51;
  3199. global $x52;
  3200. global $x53;
  3201. global $x54;
  3202.  
  3203. return query_array( 'select currencies.currency_id as id, concat(\'%s\',currency_id) as currency_id, currency_name from currencies where enabled = 1', $ecgfiiaiac );
  3204. }
  3205.  
  3206. function make_deposit($ceiahabjba, $bbjccgbdbi, $djaciebhdj, $beiiicdacc, $ccaicjgccg, $difhaiajgj, $cbihbbiiib) {
  3207. global $x0b;
  3208. global $x0c;
  3209. global $x0d;
  3210. global $x0e;
  3211. global $x0f;
  3212. global $x10;
  3213. global $x11;
  3214. global $x12;
  3215. global $x13;
  3216. global $x14;
  3217. global $x15;
  3218. global $x16;
  3219. global $x17;
  3220. global $x18;
  3221. global $x19;
  3222. global $x1a;
  3223. global $x1b;
  3224. global $x1c;
  3225. global $x1d;
  3226. global $x1e;
  3227. global $x1f;
  3228. global $x20;
  3229. global $x21;
  3230. global $x22;
  3231. global $x23;
  3232. global $x24;
  3233. global $x25;
  3234. global $x26;
  3235. global $x27;
  3236. global $x28;
  3237. global $x29;
  3238. global $x2a;
  3239. global $x2b;
  3240. global $x2c;
  3241. global $x2d;
  3242. global $x2e;
  3243. global $x2f;
  3244. global $x30;
  3245. global $x31;
  3246. global $x32;
  3247. global $x33;
  3248. global $x34;
  3249. global $x35;
  3250. global $x36;
  3251. global $x37;
  3252. global $x38;
  3253. global $x39;
  3254. global $x3a;
  3255. global $x3b;
  3256. global $x3c;
  3257. global $x3d;
  3258. global $x3e;
  3259. global $x3f;
  3260. global $x40;
  3261. global $x41;
  3262. global $x42;
  3263. global $x43;
  3264. global $x44;
  3265. global $x45;
  3266. global $x46;
  3267. global $x47;
  3268. global $x48;
  3269. global $x49;
  3270. global $x4a;
  3271. global $x4b;
  3272. global $x4c;
  3273. global $x4d;
  3274. global $x4e;
  3275. global $x4f;
  3276. global $x50;
  3277. global $x51;
  3278. global $x52;
  3279. global $x53;
  3280. global $x54;
  3281. global $lang;
  3282. global $settings;
  3283. global $session;
  3284.  
  3285. x0d( );
  3286. $hjadjddei = 0;
  3287. $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
  3288.  
  3289. if ($djaciebhdj <= 0) {
  3290. return false;
  3291. }
  3292.  
  3293. if ($beiiicdacc == SOURCE_EXTERNAL) {
  3294. $ecaaeaijeb = query_array( 'select * from deposits where trans_id=\'%s\' and currency_id=\'%s\'', array( $cbihbbiiib, $ccaicjgccg ) );
  3295.  
  3296. if (!empty( $ecaaeaijeb )) {
  3297. return false;
  3298. }
  3299. }
  3300.  
  3301. $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE enabled=1 AND program_id=%s', $bbjccgbdbi );
  3302. $djiedbbdde = query_row( 'SELECT * FROM currencies WHERE enabled=1 AND currency_id=%s', $ccaicjgccg );
  3303.  
  3304. if (( empty( $bfbjaddgbg ) || empty( $djiedbbdde ) )) {
  3305. return false;
  3306. }
  3307.  
  3308. if (( ( $bcgahficac['pending_deposits'] && $beiiicdacc == SOURCE_EXTERNAL ) || $beiiicdacc == SOURCE_MANUAL )) {
  3309. if ($beiiicdacc == SOURCE_MANUAL) {
  3310. $dfeeiajhhi = 'custom';
  3311. } else {
  3312. $dfeeiajhhi = 'trans_id';
  3313. }
  3314.  
  3315. $bdbacfifbi = insert_data( 'deposits', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $djaciebhdj, 'original_amount' => $djaciebhdj, 'program_id' => $bbjccgbdbi, 'compound' => $difhaiajgj, 'pending_date' => $cehgeiggfh, 'status' => 'pending', $dfeeiajhhi => $cbihbbiiib ), false );
  3316. return true;
  3317. }
  3318.  
  3319. if ($beiiicdacc == SOURCE_BALANCE) {
  3320. if (!change_balance( $ceiahabjba, $ccaicjgccg, 0 - $djaciebhdj )) {
  3321. return false;
  3322. }
  3323.  
  3324. $caijeedgjc = lang_wildcard( $cegcbcjjff[157], array( 'program_name' => $bfbjaddgbg['program_name'], 'currency_name' => $djiedbbdde['currency_name'] ) );
  3325. $baedjacjef = 'deposit_balance';
  3326. $bbgdgaejje = 'balance_referals';
  3327. } else {
  3328. if ($beiiicdacc == SOURCE_EXTERNAL) {
  3329. $caijeedgjc = lang_wildcard( $cegcbcjjff[158], array( 'program_name' => $bfbjaddgbg['program_name'], 'currency_name' => $djiedbbdde['currency_name'] ) );
  3330. $baedjacjef = 'deposit';
  3331. $bbgdgaejje = 'deposit_referals';
  3332. } else {
  3333. if ($beiiicdacc == SOURCE_BONUS) {
  3334. $caijeedgjc = lang_wildcard( $cegcbcjjff[159], array( 'program_name' => $bfbjaddgbg['program_name'] ) );
  3335. $baedjacjef = 'deposit_bonus';
  3336. $bbgdgaejje = 'bonus_referals';
  3337. }
  3338. }
  3339. }
  3340.  
  3341.  
  3342. if (0 < $bfbjaddgbg['deposit_bonus']) {
  3343. $ceifijhigd = $djaciebhdj * ( $bfbjaddgbg['deposit_bonus'] / 100 );
  3344. $hjadjddei = $djaciebhdj + $ceifijhigd;
  3345. $caijeedgjc .= lang_wildcard( $cegcbcjjff[160], array( 'bonus' => $ceifijhigd, 'deposit_bonus' => $bfbjaddgbg['deposit_bonus'] ) );
  3346. } else {
  3347. $hjadjddei = $djaciebhdj;
  3348. }
  3349.  
  3350. $bdbacfifbi = insert_data( 'deposits', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $hjadjddei, 'original_amount' => $hjadjddei, 'program_id' => $bbjccgbdbi, 'compound' => $difhaiajgj, 'pending_date' => $cehgeiggfh, 'deposit_date' => $cehgeiggfh, 'last_payout' => $cehgeiggfh, 'status' => 'enabled', 'trans_id' => $cbihbbiiib ), false );
  3351. $cgjdjacjbh = insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $djaciebhdj, 'type' => $baedjacjef, 'date' => $cehgeiggfh, 'deposit_id' => $bdbacfifbi, 'description' => $caijeedgjc ), false );
  3352. pay_referral( $ceiahabjba, $djaciebhdj, $ccaicjgccg, $cehgeiggfh, $bbgdgaejje );
  3353. $decgaggbba = query_row( 'select * from members where member_id=%s', $ceiahabjba );
  3354. return true;
  3355. }
  3356.  
  3357. function pay_referral($ceiahabjba, $djaciebhdj, $ccaicjgccg, $cehgeiggfh = '', $bbgdgaejje = 'deposit_referals') {
  3358. global $x0b;
  3359. global $x0c;
  3360. global $x0d;
  3361. global $x0e;
  3362. global $x0f;
  3363. global $x10;
  3364. global $x11;
  3365. global $x12;
  3366. global $x13;
  3367. global $x14;
  3368. global $x15;
  3369. global $x16;
  3370. global $x17;
  3371. global $x18;
  3372. global $x19;
  3373. global $x1a;
  3374. global $x1b;
  3375. global $x1c;
  3376. global $x1d;
  3377. global $x1e;
  3378. global $x1f;
  3379. global $x20;
  3380. global $x21;
  3381. global $x22;
  3382. global $x23;
  3383. global $x24;
  3384. global $x25;
  3385. global $x26;
  3386. global $x27;
  3387. global $x28;
  3388. global $x29;
  3389. global $x2a;
  3390. global $x2b;
  3391. global $x2c;
  3392. global $x2d;
  3393. global $x2e;
  3394. global $x2f;
  3395. global $x30;
  3396. global $x31;
  3397. global $x32;
  3398. global $x33;
  3399. global $x34;
  3400. global $x35;
  3401. global $x36;
  3402. global $x37;
  3403. global $x38;
  3404. global $x39;
  3405. global $x3a;
  3406. global $x3b;
  3407. global $x3c;
  3408. global $x3d;
  3409. global $x3e;
  3410. global $x3f;
  3411. global $x40;
  3412. global $x41;
  3413. global $x42;
  3414. global $x43;
  3415. global $x44;
  3416. global $x45;
  3417. global $x46;
  3418. global $x47;
  3419. global $x48;
  3420. global $x49;
  3421. global $x4a;
  3422. global $x4b;
  3423. global $x4c;
  3424. global $x4d;
  3425. global $x4e;
  3426. global $x4f;
  3427. global $x50;
  3428. global $x51;
  3429. global $x52;
  3430. global $x53;
  3431. global $x54;
  3432. global $lang;
  3433. global $settings;
  3434. global $session;
  3435.  
  3436. if ($cehgeiggfh == '') {
  3437. $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
  3438. }
  3439.  
  3440. if (!are_numeric( array( $ceiahabjba, $djaciebhdj, $ccaicjgccg ) )) {
  3441. exit( 'Tampering: 691' );
  3442. }
  3443.  
  3444. $decgaggbba = query_row( 'select * from members where member_id=%s', $ceiahabjba );
  3445.  
  3446. if (( $bcgahficac[$bbgdgaejje] == '1' && 0 < $decgaggbba['referal_id'] )) {
  3447. $edbcfhdef = query_array( 'select * from referal_levels order by referal_level' );
  3448. $cicgjihgah = $ceiahabjba;
  3449. $hejfhacb = $decgaggbba['user_name'];
  3450.  
  3451. foreach ($edbcfhdef as $dcjchchjfc) {
  3452. if (0 < $decgaggbba['referal_id']) {
  3453. $decgaggbba = query_row( 'select * from members where member_id=%s', $decgaggbba['referal_id'] );
  3454.  
  3455. if (( $decgaggbba['status'] == 'enabled' && $decgaggbba['referral_commission'] )) {
  3456. $hahdaaaeh = $djaciebhdj * ( $dcjchchjfc['percentage'] / 100 );
  3457. $caijeedgjc = lang_wildcard( $cegcbcjjff[161], array( 'amount' => $djaciebhdj, 'user_name' => $hejfhacb, 'percentage' => $dcjchchjfc['percentage'], 'level' => $dcjchchjfc['referal_level'] ) );
  3458. insert_data( 'transactions', array( 'member_id' => $decgaggbba['member_id'], 'currency_id' => $ccaicjgccg, 'amount' => $hahdaaaeh, 'type' => 'commission', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
  3459. change_balance( $decgaggbba['member_id'], $ccaicjgccg, $hahdaaaeh );
  3460. continue;
  3461. }
  3462.  
  3463. continue;
  3464. }
  3465.  
  3466. break;
  3467. }
  3468. }
  3469.  
  3470. }
  3471.  
  3472. function change_balance($ceiahabjba, $ccaicjgccg, $djaciebhdj, $bhdgfcbaa = true) {
  3473. global $x0b;
  3474. global $x0c;
  3475. global $x0d;
  3476. global $x0e;
  3477. global $x0f;
  3478. global $x10;
  3479. global $x11;
  3480. global $x12;
  3481. global $x13;
  3482. global $x14;
  3483. global $x15;
  3484. global $x16;
  3485. global $x17;
  3486. global $x18;
  3487. global $x19;
  3488. global $x1a;
  3489. global $x1b;
  3490. global $x1c;
  3491. global $x1d;
  3492. global $x1e;
  3493. global $x1f;
  3494. global $x20;
  3495. global $x21;
  3496. global $x22;
  3497. global $x23;
  3498. global $x24;
  3499. global $x25;
  3500. global $x26;
  3501. global $x27;
  3502. global $x28;
  3503. global $x29;
  3504. global $x2a;
  3505. global $x2b;
  3506. global $x2c;
  3507. global $x2d;
  3508. global $x2e;
  3509. global $x2f;
  3510. global $x30;
  3511. global $x31;
  3512. global $x32;
  3513. global $x33;
  3514. global $x34;
  3515. global $x35;
  3516. global $x36;
  3517. global $x37;
  3518. global $x38;
  3519. global $x39;
  3520. global $x3a;
  3521. global $x3b;
  3522. global $x3c;
  3523. global $x3d;
  3524. global $x3e;
  3525. global $x3f;
  3526. global $x40;
  3527. global $x41;
  3528. global $x42;
  3529. global $x43;
  3530. global $x44;
  3531. global $x45;
  3532. global $x46;
  3533. global $x47;
  3534. global $x48;
  3535. global $x49;
  3536. global $x4a;
  3537. global $x4b;
  3538. global $x4c;
  3539. global $x4d;
  3540. global $x4e;
  3541. global $x4f;
  3542. global $x50;
  3543. global $x51;
  3544. global $x52;
  3545. global $x53;
  3546. global $x54;
  3547.  
  3548. if (!are_numeric( array( $ceiahabjba, $djaciebhdj, $ccaicjgccg ) )) {
  3549. exit( 'Tampering: 720' );
  3550. }
  3551.  
  3552. x0d( );
  3553. $behjcjgdcd = query_row( 'select * from balances where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
  3554.  
  3555. if (empty( $behjcjgdcd )) {
  3556. if (( $djaciebhdj < 0 && $bhdgfcbaa )) {
  3557. return false;
  3558. }
  3559.  
  3560. insert_data( 'balances', array( 'currency_id' => $ccaicjgccg, 'member_id' => $ceiahabjba, 'balance' => $djaciebhdj, 'last_update' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
  3561. return true;
  3562. }
  3563.  
  3564. if (( ( $djaciebhdj < 0 && $behjcjgdcd['balance'] + $djaciebhdj < 0 ) && $bhdgfcbaa )) {
  3565. return false;
  3566. }
  3567.  
  3568. query_update( 'balances', 'balance_id', $behjcjgdcd['balance_id'], array( 'balance' => $behjcjgdcd['balance'] + $djaciebhdj, 'last_update' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
  3569. return true;
  3570. }
  3571.  
  3572. function get_program_limits($bbjccgbdbi) {
  3573. global $x0b;
  3574. global $x0c;
  3575. global $x0d;
  3576. global $x0e;
  3577. global $x0f;
  3578. global $x10;
  3579. global $x11;
  3580. global $x12;
  3581. global $x13;
  3582. global $x14;
  3583. global $x15;
  3584. global $x16;
  3585. global $x17;
  3586. global $x18;
  3587. global $x19;
  3588. global $x1a;
  3589. global $x1b;
  3590. global $x1c;
  3591. global $x1d;
  3592. global $x1e;
  3593. global $x1f;
  3594. global $x20;
  3595. global $x21;
  3596. global $x22;
  3597. global $x23;
  3598. global $x24;
  3599. global $x25;
  3600. global $x26;
  3601. global $x27;
  3602. global $x28;
  3603. global $x29;
  3604. global $x2a;
  3605. global $x2b;
  3606. global $x2c;
  3607. global $x2d;
  3608. global $x2e;
  3609. global $x2f;
  3610. global $x30;
  3611. global $x31;
  3612. global $x32;
  3613. global $x33;
  3614. global $x34;
  3615. global $x35;
  3616. global $x36;
  3617. global $x37;
  3618. global $x38;
  3619. global $x39;
  3620. global $x3a;
  3621. global $x3b;
  3622. global $x3c;
  3623. global $x3d;
  3624. global $x3e;
  3625. global $x3f;
  3626. global $x40;
  3627. global $x41;
  3628. global $x42;
  3629. global $x43;
  3630. global $x44;
  3631. global $x45;
  3632. global $x46;
  3633. global $x47;
  3634. global $x48;
  3635. global $x49;
  3636. global $x4a;
  3637. global $x4b;
  3638. global $x4c;
  3639. global $x4d;
  3640. global $x4e;
  3641. global $x4f;
  3642. global $x50;
  3643. global $x51;
  3644. global $x52;
  3645. global $x53;
  3646. global $x54;
  3647.  
  3648. $dbdebbhdfj = array( );
  3649.  
  3650. if (!are_numeric( array( $bbjccgbdbi ) )) {
  3651. exit( 'Tampering: 749' );
  3652. }
  3653.  
  3654. $ihfaeebij = query_row( 'select MAX(max_amount), MIN(min_amount), MIN(max_amount) from program_levels where program_id=%s', $bbjccgbdbi );
  3655. $dbdebbhdfj = $ihfaeebij;
  3656. $ihfaeebij = query_row( 'select percentage from program_levels where program_id=%s and ISNULL(max_amount)', $bbjccgbdbi );
  3657.  
  3658. if (0 < $bedbahigdc( $ihfaeebij )) {
  3659. $dbdebbhdfj['max_amount'] = 0;
  3660. }
  3661.  
  3662. return $dbdebbhdfj;
  3663. }
  3664.  
  3665. function check_payouts() {
  3666. global $x0b;
  3667. global $x0c;
  3668. global $x0d;
  3669. global $x0e;
  3670. global $x0f;
  3671. global $x10;
  3672. global $x11;
  3673. global $x12;
  3674. global $x13;
  3675. global $x14;
  3676. global $x15;
  3677. global $x16;
  3678. global $x17;
  3679. global $x18;
  3680. global $x19;
  3681. global $x1a;
  3682. global $x1b;
  3683. global $x1c;
  3684. global $x1d;
  3685. global $x1e;
  3686. global $x1f;
  3687. global $x20;
  3688. global $x21;
  3689. global $x22;
  3690. global $x23;
  3691. global $x24;
  3692. global $x25;
  3693. global $x26;
  3694. global $x27;
  3695. global $x28;
  3696. global $x29;
  3697. global $x2a;
  3698. global $x2b;
  3699. global $x2c;
  3700. global $x2d;
  3701. global $x2e;
  3702. global $x2f;
  3703. global $x30;
  3704. global $x31;
  3705. global $x32;
  3706. global $x33;
  3707. global $x34;
  3708. global $x35;
  3709. global $x36;
  3710. global $x37;
  3711. global $x38;
  3712. global $x39;
  3713. global $x3a;
  3714. global $x3b;
  3715. global $x3c;
  3716. global $x3d;
  3717. global $x3e;
  3718. global $x3f;
  3719. global $x40;
  3720. global $x41;
  3721. global $x42;
  3722. global $x43;
  3723. global $x44;
  3724. global $x45;
  3725. global $x46;
  3726. global $x47;
  3727. global $x48;
  3728. global $x49;
  3729. global $x4a;
  3730. global $x4b;
  3731. global $x4c;
  3732. global $x4d;
  3733. global $x4e;
  3734. global $x4f;
  3735. global $x50;
  3736. global $x51;
  3737. global $x52;
  3738. global $x53;
  3739. global $x54;
  3740.  
  3741. $ccifdggcif = false;
  3742.  
  3743. if ($dhddgedaaf( query_value( 'SELECT value FROM settings WHERE `key`=\'next_payout\';' ) ) < $cdcaaiffe( )) {
  3744. db_command( 'LOCK TABLE settings WRITE;' );
  3745. $ccifdggcif = db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 5 MINUTE) WHERE `key`=\'next_payout\' AND value < NOW()' );
  3746. db_command( 'UNLOCK TABLES;' );
  3747.  
  3748. if ($ccifdggcif == 1) {
  3749. schedule( 'auto_payouts' );
  3750. }
  3751. }
  3752.  
  3753. $ccifdggcif = false;
  3754.  
  3755. if (0 < query_value( 'SELECT COUNT(*) FROM payments WHERE status=\'Scheduled\' AND schedule<=\'%s\';', $cgbgjjdhaj( 'Y-m-d H:i:s' ) )) {
  3756. db_command( 'LOCK TABLE payments WRITE;' );
  3757.  
  3758. if (0 < query_value( 'SELECT COUNT(*) FROM payments WHERE status=\'Scheduled\' AND schedule<=\'%s\';', $cgbgjjdhaj( 'Y-m-d H:i:s' ) )) {
  3759. db_command( 'UPDATE payments SET status=\'Processing\' WHERE status=\'Scheduled\' AND (schedule + 0) <= (NOW() + 0);' );
  3760. $ccifdggcif = true;
  3761. }
  3762.  
  3763. db_command( 'UNLOCK TABLES;' );
  3764.  
  3765. if ($ccifdggcif) {
  3766. schedule( 'sched_payouts' );
  3767. }
  3768. }
  3769.  
  3770. }
  3771.  
  3772. function schedule($ddadifjacj) {
  3773. global $x0b;
  3774. global $x0c;
  3775. global $x0d;
  3776. global $x0e;
  3777. global $x0f;
  3778. global $x10;
  3779. global $x11;
  3780. global $x12;
  3781. global $x13;
  3782. global $x14;
  3783. global $x15;
  3784. global $x16;
  3785. global $x17;
  3786. global $x18;
  3787. global $x19;
  3788. global $x1a;
  3789. global $x1b;
  3790. global $x1c;
  3791. global $x1d;
  3792. global $x1e;
  3793. global $x1f;
  3794. global $x20;
  3795. global $x21;
  3796. global $x22;
  3797. global $x23;
  3798. global $x24;
  3799. global $x25;
  3800. global $x26;
  3801. global $x27;
  3802. global $x28;
  3803. global $x29;
  3804. global $x2a;
  3805. global $x2b;
  3806. global $x2c;
  3807. global $x2d;
  3808. global $x2e;
  3809. global $x2f;
  3810. global $x30;
  3811. global $x31;
  3812. global $x32;
  3813. global $x33;
  3814. global $x34;
  3815. global $x35;
  3816. global $x36;
  3817. global $x37;
  3818. global $x38;
  3819. global $x39;
  3820. global $x3a;
  3821. global $x3b;
  3822. global $x3c;
  3823. global $x3d;
  3824. global $x3e;
  3825. global $x3f;
  3826. global $x40;
  3827. global $x41;
  3828. global $x42;
  3829. global $x43;
  3830. global $x44;
  3831. global $x45;
  3832. global $x46;
  3833. global $x47;
  3834. global $x48;
  3835. global $x49;
  3836. global $x4a;
  3837. global $x4b;
  3838. global $x4c;
  3839. global $x4d;
  3840. global $x4e;
  3841. global $x4f;
  3842. global $x50;
  3843. global $x51;
  3844. global $x52;
  3845. global $x53;
  3846. global $x54;
  3847.  
  3848. $jdhhhegcc = build_token( );
  3849. $ecgjagebc = get_url( ) . ( '' . '/scheduler.php?c=' . $ddadifjacj . '&t=' . $jdhhhegcc );
  3850. $cihegfjbif = $bhabaiicdf( );
  3851. $hijfajai( $cihegfjbif, CURLOPT_URL, $ecgjagebc );
  3852. $hijfajai( $cihegfjbif, CURLOPT_FRESH_CONNECT, true );
  3853. $hijfajai( $cihegfjbif, CURLOPT_RETURNTRANSFER, true );
  3854. $hijfajai( $cihegfjbif, CURLOPT_SSL_VERIFYPEER, false );
  3855. $hijfajai( $cihegfjbif, CURLOPT_TIMEOUT, 1 );
  3856. $chaedehdbg( $cihegfjbif );
  3857. $bgdiaefjdd( $cihegfjbif );
  3858. }
  3859.  
  3860. function build_token() {
  3861. global $x0b;
  3862. global $x0c;
  3863. global $x0d;
  3864. global $x0e;
  3865. global $x0f;
  3866. global $x10;
  3867. global $x11;
  3868. global $x12;
  3869. global $x13;
  3870. global $x14;
  3871. global $x15;
  3872. global $x16;
  3873. global $x17;
  3874. global $x18;
  3875. global $x19;
  3876. global $x1a;
  3877. global $x1b;
  3878. global $x1c;
  3879. global $x1d;
  3880. global $x1e;
  3881. global $x1f;
  3882. global $x20;
  3883. global $x21;
  3884. global $x22;
  3885. global $x23;
  3886. global $x24;
  3887. global $x25;
  3888. global $x26;
  3889. global $x27;
  3890. global $x28;
  3891. global $x29;
  3892. global $x2a;
  3893. global $x2b;
  3894. global $x2c;
  3895. global $x2d;
  3896. global $x2e;
  3897. global $x2f;
  3898. global $x30;
  3899. global $x31;
  3900. global $x32;
  3901. global $x33;
  3902. global $x34;
  3903. global $x35;
  3904. global $x36;
  3905. global $x37;
  3906. global $x38;
  3907. global $x39;
  3908. global $x3a;
  3909. global $x3b;
  3910. global $x3c;
  3911. global $x3d;
  3912. global $x3e;
  3913. global $x3f;
  3914. global $x40;
  3915. global $x41;
  3916. global $x42;
  3917. global $x43;
  3918. global $x44;
  3919. global $x45;
  3920. global $x46;
  3921. global $x47;
  3922. global $x48;
  3923. global $x49;
  3924. global $x4a;
  3925. global $x4b;
  3926. global $x4c;
  3927. global $x4d;
  3928. global $x4e;
  3929. global $x4f;
  3930. global $x50;
  3931. global $x51;
  3932. global $x52;
  3933. global $x53;
  3934. global $x54;
  3935.  
  3936. $biafiifhcc = $cgbgjjdhaj( 'H' ) . get_url( );
  3937. $befgcfchbf = query_value( 'SELECT value FROM settings WHERE `key`=\'next_payout\'' );
  3938. return $cgcachefei( $biafiifhcc . $befgcfchbf );
  3939. }
  3940.  
  3941. function process_payouts() {
  3942. global $x0b;
  3943. global $x0c;
  3944. global $x0d;
  3945. global $x0e;
  3946. global $x0f;
  3947. global $x10;
  3948. global $x11;
  3949. global $x12;
  3950. global $x13;
  3951. global $x14;
  3952. global $x15;
  3953. global $x16;
  3954. global $x17;
  3955. global $x18;
  3956. global $x19;
  3957. global $x1a;
  3958. global $x1b;
  3959. global $x1c;
  3960. global $x1d;
  3961. global $x1e;
  3962. global $x1f;
  3963. global $x20;
  3964. global $x21;
  3965. global $x22;
  3966. global $x23;
  3967. global $x24;
  3968. global $x25;
  3969. global $x26;
  3970. global $x27;
  3971. global $x28;
  3972. global $x29;
  3973. global $x2a;
  3974. global $x2b;
  3975. global $x2c;
  3976. global $x2d;
  3977. global $x2e;
  3978. global $x2f;
  3979. global $x30;
  3980. global $x31;
  3981. global $x32;
  3982. global $x33;
  3983. global $x34;
  3984. global $x35;
  3985. global $x36;
  3986. global $x37;
  3987. global $x38;
  3988. global $x39;
  3989. global $x3a;
  3990. global $x3b;
  3991. global $x3c;
  3992. global $x3d;
  3993. global $x3e;
  3994. global $x3f;
  3995. global $x40;
  3996. global $x41;
  3997. global $x42;
  3998. global $x43;
  3999. global $x44;
  4000. global $x45;
  4001. global $x46;
  4002. global $x47;
  4003. global $x48;
  4004. global $x49;
  4005. global $x4a;
  4006. global $x4b;
  4007. global $x4c;
  4008. global $x4d;
  4009. global $x4e;
  4010. global $x4f;
  4011. global $x50;
  4012. global $x51;
  4013. global $x52;
  4014. global $x53;
  4015. global $x54;
  4016.  
  4017. $chibbbjjg = 0;
  4018. $bfbjaddgbg = array( );
  4019. $dciaiagaih = 0;
  4020. $ebedfiddc = $dhddgedaaf( '+30 minutes', $cdcaaiffe( ) );
  4021. x0d( );
  4022. db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 1 MONTH) WHERE `key`=\'next_payout\'' );
  4023. $cgehidgfbe = array( 1 => '+1 hour', 2 => '+1 day', 3 => '+1 week', 4 => '+2 weeks', 5 => '+1 month', 6 => '+2 months', 7 => '+3 months', 8 => '+4 months', 9 => '+6 months', 10 => '+1 year' );
  4024. $dajdcieif = array( 1 => '1 HOUR', 2 => '1 DAY', 3 => '1 WEEK', 4 => '2 WEEK', 5 => '1 MONTH', 6 => '2 MONTH', 7 => '3 MONTH', 8 => '4 MONTH', 9 => '6 MONTH', 10 => '1 YEAR' );
  4025. $chgcaeabcg = query_array( 'SELECT * FROM programs' );
  4026.  
  4027. foreach ($chgcaeabcg as $bfbjaddgbg) {
  4028. if ($bfbjaddgbg['payment_period'] == 11) {
  4029. $ebgdghihfc = 'DATE_ADD(d.deposit_date, INTERVAL ' . $bfbjaddgbg['duration'] . ' DAY)';
  4030. } else {
  4031. $ebgdghihfc = 'DATE_ADD(d.last_payout, INTERVAL ' . $dajdcieif[$bfbjaddgbg['payment_period']] . ')';
  4032. }
  4033.  
  4034. $ebaiefheid = '
  4035.  
  4036. SELECT
  4037. d.deposit_id, d.status, d.member_id, d.program_id, d.deposit_date, d.last_payout, d.amount, d.original_amount, d.currency_id, d.compound, d.trans_id, d.pending_date, %s AS next_payout
  4038. FROM deposits AS d
  4039. INNER JOIN members AS m ON d.member_id = m.member_id
  4040. WHERE d.status=\'enabled\' AND m.status=\'enabled\'
  4041. AND %s < NOW()
  4042.  
  4043. AND program_id=%s
  4044.  
  4045. ORDER BY program_id, last_payout asc';
  4046. $cgaeifbfjj = query_array( $ebaiefheid, array( $ebgdghihfc, $ebgdghihfc, $bfbjaddgbg['program_id'] ) );
  4047.  
  4048. foreach ($cgaeifbfjj as $cjdjcgijdj) {
  4049. if ($bfbjaddgbg['automated']) {
  4050. $eabgbfdfaj( 50 );
  4051. $bfjcdggddg = $dhddgedaaf( $cjdjcgijdj['next_payout'] );
  4052.  
  4053. if (( $bfbjaddgbg['payment_period'] != 11 && !empty( $bfbjaddgbg['delay_earnings'] ) )) {
  4054. $cfdigieffj = $dhddgedaaf( '+' . $bfbjaddgbg['delay_earnings'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
  4055. $bfjcdggddg = ($cfdigieffj < $bfjcdggddg ? $bfjcdggddg : $cfdigieffj);
  4056. }
  4057.  
  4058.  
  4059. while ($bfjcdggddg < $cdcaaiffe( )) {
  4060. $dehegcjfgd = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
  4061.  
  4062. if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $bfjcdggddg )) {
  4063. end_deposit( $bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd );
  4064. break;
  4065. }
  4066.  
  4067. if (( ( ( $bfbjaddgbg['payment_period'] == 1 || $bfbjaddgbg['payment_period'] == 2 ) && $bfbjaddgbg['earns_workdays'] == 1 ) && ( $cgbgjjdhaj( 'w', $bfjcdggddg ) == 0 || $cgbgjjdhaj( 'w', $bfjcdggddg ) == 6 ) )) {
  4068. } else {
  4069. $cjhjgbhaeb = pay_earnings( $cjdjcgijdj, $bfjcdggddg, 0, '', 'Percentage', $bfbjaddgbg );
  4070. $cjdjcgijdj['amount'] += $cjhjgbhaeb;
  4071. }
  4072.  
  4073.  
  4074. if ($bfbjaddgbg['payment_period'] == 11) {
  4075. $bfjcdggddg = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' days', $bfjcdggddg );
  4076. } else {
  4077. $bfjcdggddg = $dhddgedaaf( $cgehidgfbe[$bfbjaddgbg['payment_period']], $bfjcdggddg );
  4078. }
  4079.  
  4080.  
  4081. if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $bfjcdggddg )) {
  4082. $bfjcdggddg = $dhddgedaaf( '+1 second', $dehegcjfgd );
  4083. }
  4084.  
  4085. if (( $cdcaaiffe( ) < $bfjcdggddg && $bfjcdggddg < $ebedfiddc )) {
  4086. $ebedfiddc = $bfjcdggddg;
  4087. continue;
  4088. }
  4089. }
  4090.  
  4091. continue;
  4092. }
  4093.  
  4094. jmp;
  4095. $dehegcjfgd = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
  4096.  
  4097. if (( 0 < $bfbjaddgbg['duration'] && $dehegcjfgd < $cdcaaiffe( ) )) {
  4098. end_deposit( $bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd );
  4099. continue;
  4100. }
  4101. }
  4102. }
  4103.  
  4104. db_command( 'UPDATE `settings` SET value=DATE_ADD(NOW(), INTERVAL 1 HOUR) WHERE `key`=\'next_payout\'' );
  4105. }
  4106.  
  4107. function end_deposit($bfbjaddgbg, $cjdjcgijdj, $dehegcjfgd) {
  4108. global $x0b;
  4109. global $x0c;
  4110. global $x0d;
  4111. global $x0e;
  4112. global $x0f;
  4113. global $x10;
  4114. global $x11;
  4115. global $x12;
  4116. global $x13;
  4117. global $x14;
  4118. global $x15;
  4119. global $x16;
  4120. global $x17;
  4121. global $x18;
  4122. global $x19;
  4123. global $x1a;
  4124. global $x1b;
  4125. global $x1c;
  4126. global $x1d;
  4127. global $x1e;
  4128. global $x1f;
  4129. global $x20;
  4130. global $x21;
  4131. global $x22;
  4132. global $x23;
  4133. global $x24;
  4134. global $x25;
  4135. global $x26;
  4136. global $x27;
  4137. global $x28;
  4138. global $x29;
  4139. global $x2a;
  4140. global $x2b;
  4141. global $x2c;
  4142. global $x2d;
  4143. global $x2e;
  4144. global $x2f;
  4145. global $x30;
  4146. global $x31;
  4147. global $x32;
  4148. global $x33;
  4149. global $x34;
  4150. global $x35;
  4151. global $x36;
  4152. global $x37;
  4153. global $x38;
  4154. global $x39;
  4155. global $x3a;
  4156. global $x3b;
  4157. global $x3c;
  4158. global $x3d;
  4159. global $x3e;
  4160. global $x3f;
  4161. global $x40;
  4162. global $x41;
  4163. global $x42;
  4164. global $x43;
  4165. global $x44;
  4166. global $x45;
  4167. global $x46;
  4168. global $x47;
  4169. global $x48;
  4170. global $x49;
  4171. global $x4a;
  4172. global $x4b;
  4173. global $x4c;
  4174. global $x4d;
  4175. global $x4e;
  4176. global $x4f;
  4177. global $x50;
  4178. global $x51;
  4179. global $x52;
  4180. global $x53;
  4181. global $x54;
  4182. global $lang;
  4183.  
  4184. if ($bfbjaddgbg['return_principal'] == 1) {
  4185. $ebdbbgaifa = $cjdjcgijdj['amount'] - $cjdjcgijdj['amount'] * ( $bfbjaddgbg['admin_fee'] / 100 );
  4186. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[162], array( 'program_name' => $bfbjaddgbg['program_name'], 'duration' => $bfbjaddgbg['duration'], 'amount' => $cjdjcgijdj['amount'] ) );
  4187.  
  4188. if (0 < $bfbjaddgbg['admin_fee']) {
  4189. $bfgbdjgdj .= lang_wildcard( $cegcbcjjff[163], array( 'admin_fee' => $bfbjaddgbg['admin_fee'] ) );
  4190. }
  4191.  
  4192. $bfgbdjgdj .= $cegcbcjjff[164];
  4193. insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $ebdbbgaifa, 'type' => 'release_deposit', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $dehegcjfgd ), 'description' => $bfgbdjgdj ), false );
  4194. change_balance( $cjdjcgijdj['member_id'], $cjdjcgijdj['currency_id'], $ebdbbgaifa );
  4195. } else {
  4196. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[165], array( 'program_name' => $bfbjaddgbg['program_name'], 'duration' => $bfbjaddgbg['duration'] ) );
  4197. insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => '0', 'type' => 'program_ended', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $dehegcjfgd ), 'description' => $bfgbdjgdj ), false );
  4198. }
  4199.  
  4200. query_update( 'deposits', 'deposit_id', $cjdjcgijdj['deposit_id'], array( 'status' => 'ended' ), false );
  4201. }
  4202.  
  4203. function x0b() {
  4204. global $x0b;
  4205. global $x0c;
  4206. global $x0d;
  4207. global $x0e;
  4208. global $x0f;
  4209. global $x10;
  4210. global $x11;
  4211. global $x12;
  4212. global $x13;
  4213. global $x14;
  4214. global $x15;
  4215. global $x16;
  4216. global $x17;
  4217. global $x18;
  4218. global $x19;
  4219. global $x1a;
  4220. global $x1b;
  4221. global $x1c;
  4222. global $x1d;
  4223. global $x1e;
  4224. global $x1f;
  4225. global $x20;
  4226. global $x21;
  4227. global $x22;
  4228. global $x23;
  4229. global $x24;
  4230. global $x25;
  4231. global $x26;
  4232. global $x27;
  4233. global $x28;
  4234. global $x29;
  4235. global $x2a;
  4236. global $x2b;
  4237. global $x2c;
  4238. global $x2d;
  4239. global $x2e;
  4240. global $x2f;
  4241. global $x30;
  4242. global $x31;
  4243. global $x32;
  4244. global $x33;
  4245. global $x34;
  4246. global $x35;
  4247. global $x36;
  4248. global $x37;
  4249. global $x38;
  4250. global $x39;
  4251. global $x3a;
  4252. global $x3b;
  4253. global $x3c;
  4254. global $x3d;
  4255. global $x3e;
  4256. global $x3f;
  4257. global $x40;
  4258. global $x41;
  4259. global $x42;
  4260. global $x43;
  4261. global $x44;
  4262. global $x45;
  4263. global $x46;
  4264. global $x47;
  4265. global $x48;
  4266. global $x49;
  4267. global $x4a;
  4268. global $x4b;
  4269. global $x4c;
  4270. global $x4d;
  4271. global $x4e;
  4272. global $x4f;
  4273. global $x50;
  4274. global $x51;
  4275. global $x52;
  4276. global $x53;
  4277. global $x54;
  4278. global $smarty;
  4279. global $r2d2;
  4280. global $fdfd;
  4281. global $session;
  4282. global $settings;
  4283.  
  4284. $bgdefebidg = '';
  4285. $efgbicjgi = 'lalhf6&IGkbUtr&$ruh74757FJj8585*%^*';
  4286.  
  4287. if (!$dehhifcahi->get( 'd44' )) {
  4288. $dhddciecbi = $dffiaefjbg( 'store.cache' );
  4289. } else {
  4290. $dhddciecbi = $dehhifcahi->get( 'd44' );
  4291. }
  4292.  
  4293. $ciiicaceb = 24;
  4294. $bbhhedhcji = $bcgahficac['lic'];
  4295.  
  4296. if (!empty( $dhddciecbi )) {
  4297. $daggjeedjh = decrypt( $dhddciecbi, $efgbicjgi );
  4298. $ddbfaachga = $bfaddhcbhi( '|', $daggjeedjh );
  4299.  
  4300. if ($bedbahigdc( $ddbfaachga ) < 3) {
  4301. $chigahfdda = 0;
  4302. } else {
  4303. if ($ddbfaachga[1] != $_SERVER['HTTP_HOST']) {
  4304. $chigahfdda = 0;
  4305. } else {
  4306. $chigahfdda = $ddbfaachga[0];
  4307. }
  4308. }
  4309. } else {
  4310. $chigahfdda = 0;
  4311. }
  4312.  
  4313.  
  4314. if (( ( empty( $chigahfdda ) || $ciiicaceb * 60 * 60 < $cdcaaiffe( ) - $chigahfdda ) || $cdcaaiffe( ) - $chigahfdda < 0 )) {
  4315. $cicgehfbeg = 'http://www.tomacero.com/ck.php';
  4316. $gbdbighdb = $daegejgghg( $dcbhjhghib( 'VALID_LICENSE-' . $cgbgjjdhaj( 'd', $cdcaaiffe( ) - $cgbgjjdhaj( 'Z', $cdcaaiffe( ) ) ) . '-' . $ddgeegdcia ) );
  4317. $ciafiehjgb = false;
  4318. $cihegfjbif = $bhabaiicdf( );
  4319. $eaeiifcgdg = $_SERVER['HTTP_HOST'] . ':1:' . 'iOi7Yh7s5$fscv$dDH6sr$32h^';
  4320. $dbbcejebbb = 'l=' . $fcihjhfei( $bbhhedhcji ) . '&c=' . $daegejgghg( $dcbhjhghib( $eaeiifcgdg ) ) . ':1';
  4321. $bgdefebidg = url_get( $cicgehfbeg, $dbbcejebbb );
  4322.  
  4323. if (( !empty( $bgdefebidg ) && $bgdefebidg == $gbdbighdb )) {
  4324. if (!( $cahieefjji = @$cgjbbfaija( 'store.cache', 'w' ))) {
  4325. exit( $cdhaiejgfi );
  4326. (bool)true;
  4327. }
  4328.  
  4329. $dehhifcahi->set( 'd44', encrypt( '' . $cdcaaiffe( ) . '|' . $_SERVER['HTTP_HOST'] . '|' . $efgbicjgi, $efgbicjgi ) );
  4330. $diggfiaece( $cahieefjji, $dehhifcahi->get( 'd44' ) );
  4331. $bfaehghcij( $cahieefjji );
  4332. $ciafiehjgb = true;
  4333. return null;
  4334. }
  4335.  
  4336. $bdbcdicijb->assign( 'result', $bgdefebidg );
  4337. $bdbcdicijb->display( 'invalid.tpl' );
  4338. exit( );
  4339. } else {
  4340. return null;
  4341. }
  4342.  
  4343. exit( );
  4344. }
  4345.  
  4346. function x0c() {
  4347. global $x0b;
  4348. global $x0c;
  4349. global $x0d;
  4350. global $x0e;
  4351. global $x0f;
  4352. global $x10;
  4353. global $x11;
  4354. global $x12;
  4355. global $x13;
  4356. global $x14;
  4357. global $x15;
  4358. global $x16;
  4359. global $x17;
  4360. global $x18;
  4361. global $x19;
  4362. global $x1a;
  4363. global $x1b;
  4364. global $x1c;
  4365. global $x1d;
  4366. global $x1e;
  4367. global $x1f;
  4368. global $x20;
  4369. global $x21;
  4370. global $x22;
  4371. global $x23;
  4372. global $x24;
  4373. global $x25;
  4374. global $x26;
  4375. global $x27;
  4376. global $x28;
  4377. global $x29;
  4378. global $x2a;
  4379. global $x2b;
  4380. global $x2c;
  4381. global $x2d;
  4382. global $x2e;
  4383. global $x2f;
  4384. global $x30;
  4385. global $x31;
  4386. global $x32;
  4387. global $x33;
  4388. global $x34;
  4389. global $x35;
  4390. global $x36;
  4391. global $x37;
  4392. global $x38;
  4393. global $x39;
  4394. global $x3a;
  4395. global $x3b;
  4396. global $x3c;
  4397. global $x3d;
  4398. global $x3e;
  4399. global $x3f;
  4400. global $x40;
  4401. global $x41;
  4402. global $x42;
  4403. global $x43;
  4404. global $x44;
  4405. global $x45;
  4406. global $x46;
  4407. global $x47;
  4408. global $x48;
  4409. global $x49;
  4410. global $x4a;
  4411. global $x4b;
  4412. global $x4c;
  4413. global $x4d;
  4414. global $x4e;
  4415. global $x4f;
  4416. global $x50;
  4417. global $x51;
  4418. global $x52;
  4419. global $x53;
  4420. global $x54;
  4421.  
  4422. x0b( );
  4423. }
  4424.  
  4425. function send_money($djaciebhdj, $ccaicjgccg, $caijeedgjc, $ceiahabjba = 0) {
  4426. global $x0b;
  4427. global $x0c;
  4428. global $x0d;
  4429. global $x0e;
  4430. global $x0f;
  4431. global $x10;
  4432. global $x11;
  4433. global $x12;
  4434. global $x13;
  4435. global $x14;
  4436. global $x15;
  4437. global $x16;
  4438. global $x17;
  4439. global $x18;
  4440. global $x19;
  4441. global $x1a;
  4442. global $x1b;
  4443. global $x1c;
  4444. global $x1d;
  4445. global $x1e;
  4446. global $x1f;
  4447. global $x20;
  4448. global $x21;
  4449. global $x22;
  4450. global $x23;
  4451. global $x24;
  4452. global $x25;
  4453. global $x26;
  4454. global $x27;
  4455. global $x28;
  4456. global $x29;
  4457. global $x2a;
  4458. global $x2b;
  4459. global $x2c;
  4460. global $x2d;
  4461. global $x2e;
  4462. global $x2f;
  4463. global $x30;
  4464. global $x31;
  4465. global $x32;
  4466. global $x33;
  4467. global $x34;
  4468. global $x35;
  4469. global $x36;
  4470. global $x37;
  4471. global $x38;
  4472. global $x39;
  4473. global $x3a;
  4474. global $x3b;
  4475. global $x3c;
  4476. global $x3d;
  4477. global $x3e;
  4478. global $x3f;
  4479. global $x40;
  4480. global $x41;
  4481. global $x42;
  4482. global $x43;
  4483. global $x44;
  4484. global $x45;
  4485. global $x46;
  4486. global $x47;
  4487. global $x48;
  4488. global $x49;
  4489. global $x4a;
  4490. global $x4b;
  4491. global $x4c;
  4492. global $x4d;
  4493. global $x4e;
  4494. global $x4f;
  4495. global $x50;
  4496. global $x51;
  4497. global $x52;
  4498. global $x53;
  4499. global $x54;
  4500. global $lang;
  4501. global $session;
  4502. global $settings;
  4503. global $glob;
  4504.  
  4505. if (!are_numeric( array( $djaciebhdj, $ccaicjgccg, $ceiahabjba ) )) {
  4506. exit( 'Tampering: 1404' );
  4507. }
  4508.  
  4509. x0d( );
  4510. $cdjhbcjgeb = ($ceiahabjba == 0 ? $bjicjiadhb['member_id'] : $ceiahabjba);
  4511. $cebfegiega = query_row( 'select * from member_accounts where currency_id=%s and member_id=%s', array( $ccaicjgccg, $cdjhbcjgeb ) );
  4512. $ecigaciagh = $cebfegiega['account'];
  4513. $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $ccaicjgccg );
  4514. $bhhgjhifia = $djiedbbdde['param_1'];
  4515. $cfjaebbbib = decrypt( $djiedbbdde['autopay_password'] );
  4516. $cffeagiii = '';
  4517. $decgcachic = '';
  4518.  
  4519. if ($djiedbbdde['autopay_enabled'] != 1) {
  4520. return array( 0 => '0', 1 => $cegcbcjjff[176] . $djiedbbdde['currency_name'] );
  4521. }
  4522.  
  4523. if (( ( !isset( $ecigaciagh ) || $debaggdfeh( $ecigaciagh ) == '' ) || ( $dchbacbcjc( $ecigaciagh ) && $ecigaciagh == 0 ) )) {
  4524. return array( 0 => '0', 1 => $cegcbcjjff[177] . $djiedbbdde['currency_name'] );
  4525. }
  4526.  
  4527. if (!$dfhhgdcddf( 'curl_init' )) {
  4528. return array( 0, 'Curl functions are not available' );
  4529. }
  4530.  
  4531. $cihegfjbif = $bhabaiicdf( );
  4532. $caijeedgjc = $fcihjhfei( $caijeedgjc );
  4533.  
  4534. if ($ccaicjgccg == 1) {
  4535. $dbjjbgfbjh = new Egold( $bhhgjhifia, '', $cfjaebbbib );
  4536. $chffgagadc = $dbjjbgfbjh->send_money( $ecigaciagh, $djaciebhdj, $caijeedgjc );
  4537. $cffeagiii = $chffgagadc['batch'];
  4538. $decgcachic = $chffgagadc['error'];
  4539. } else {
  4540. if ($ccaicjgccg == 2) {
  4541. $ciacdacihg = new Pecunix( $bhhgjhifia, '', $cfjaebbbib );
  4542.  
  4543. if ($djiedbbdde['param_2'] == 'PAYER') {
  4544. $ccgegehcig = 'Payee';
  4545. } else {
  4546. $ccgegehcig = 'Payer';
  4547. }
  4548.  
  4549. $ciacdacihg->add_payment( '', $ecigaciagh, $djaciebhdj, $caijeedgjc, 'USD', $ccgegehcig );
  4550. $chffgagadc = $ciacdacihg->send_money( );
  4551.  
  4552. if ($chffgagadc['Receipt']['ReceiptId'] != '') {
  4553. $cffeagiii = $chffgagadc['Receipt']['ReceiptId'];
  4554. } else {
  4555. $decgcachic = $chffgagadc['Text'] . ' - ' . $chffgagadc['Additional'];
  4556. }
  4557. } else {
  4558. if ($ccaicjgccg == 3) {
  4559. $bbbccjjjc = new LibertyReserve( $djiedbbdde['param_1'], '', '', $djiedbbdde['param_3'], $cfjaebbbib );
  4560. $bbbccjjjc->add_payment( '', $ecigaciagh, $djaciebhdj, $caijeedgjc );
  4561. $chffgagadc = $bbbccjjjc->send_money( );
  4562.  
  4563. if (!empty( $chffgagadc['Error']['Text'] )) {
  4564. $decgcachic = $chffgagadc['Error']['Text'];
  4565. } else {
  4566. $cffeagiii = $chffgagadc['Receipt']['ReceiptId'];
  4567. }
  4568. } else {
  4569. if ($ccaicjgccg == 4) {
  4570. $cddbffgadj = new $bieccigbce( $bcgahficac['gpg_path'] )( , './templates_c', $djiedbbdde['param_1'], decrypt( $djiedbbdde['param_4'] ), decrypt( $djiedbbdde['param_5'] ) );
  4571. $cddbffgadj->add_payment( $ecigaciagh, $djaciebhdj, $cfbbbgghgh( $caijeedgjc ) );
  4572. $chffgagadc = $cddbffgadj->send_money( );
  4573.  
  4574. if ($chffgagadc['verified.list']['transaction']['id'] != '') {
  4575. $cffeagiii = $chffgagadc['verified.list']['transaction']['id'];
  4576. } else {
  4577. $decgcachic = $chffgagadc['errorresponse.list']['errorresponse']['error']['text'] . ' - ' . $chffgagadc['errorresponse.list']['errorresponse']['error']['additional'];
  4578. }
  4579. } else {
  4580. if ($ccaicjgccg == 7) {
  4581. $cfbhbeihha = decrypt( $djiedbbdde['param_5'] );
  4582. $beijgijada = new Vmoney( $bhhgjhifia, '', $cfjaebbbib, $cfbhbeihha );
  4583. $beijgijada->add_payment( 1, $ecigaciagh, $djaciebhdj, $caijeedgjc );
  4584. $chffgagadc = $beijgijada->send_money( );
  4585.  
  4586. if ($chffgagadc['Status']['Code'] == 'Success') {
  4587. $cffeagiii = $chffgagadc['Transfers']['Transfer']['Batch'];
  4588. } else {
  4589. $decgcachic = $chffgagadc['Transfers']['Transfer']['Status']['Message'];
  4590. }
  4591. } else {
  4592. if ($ccaicjgccg == 21) {
  4593. $bfjibgcbjg = new AlterGold( );
  4594. $bfjibgcbjg->add_payment( $ecigaciagh, $djaciebhdj, 'USD', '', $caijeedgjc );
  4595. $chffgagadc = $bfjibgcbjg->send_payments( $bhhgjhifia, $cfjaebbbib, $djiedbbdde['param_2'] );
  4596.  
  4597. if ($chffgagadc[0]['STATUS'] == 'ERROR') {
  4598. $decgcachic = $chffgagadc[0]['RESPONSE'];
  4599. } else {
  4600. $cffeagiii = $chffgagadc[0]['RESPONSE'];
  4601. }
  4602. } else {
  4603. if ($ccaicjgccg == 22) {
  4604. $dcadjgggaa = new PerfectMoney( );
  4605. $dcadjgggaa->add_payment( $ecigaciagh, $djaciebhdj, 'USD', 'USD', $caijeedgjc );
  4606. $chffgagadc = $dcadjgggaa->send_payments( $djiedbbdde['param_5'], $bhhgjhifia, $cfjaebbbib );
  4607.  
  4608. if ($chffgagadc[0]['STATUS'] == 'ERROR') {
  4609. $decgcachic = $chffgagadc[0]['RESPONSE'];
  4610. } else {
  4611. $cffeagiii = $chffgagadc[0]['RESPONSE'];
  4612. }
  4613. } else {
  4614. return array( 0, $cegcbcjjff[178] );
  4615. }
  4616. }
  4617. }
  4618. }
  4619. }
  4620. }
  4621. }
  4622.  
  4623.  
  4624. if ($decgcachic != '') {
  4625. return array( 0, $decgcachic );
  4626. }
  4627.  
  4628. return array( 1, $cffeagiii );
  4629. }
  4630.  
  4631. function pay_earnings($bdbacfifbi, $cgehidgfbe = '', $ecbfdefehb = 'NOT', $caijeedgjc = '', $dfiefaeaag = 'Percentage', $bfbjaddgbg = null) {
  4632. global $x0b;
  4633. global $x0c;
  4634. global $x0d;
  4635. global $x0e;
  4636. global $x0f;
  4637. global $x10;
  4638. global $x11;
  4639. global $x12;
  4640. global $x13;
  4641. global $x14;
  4642. global $x15;
  4643. global $x16;
  4644. global $x17;
  4645. global $x18;
  4646. global $x19;
  4647. global $x1a;
  4648. global $x1b;
  4649. global $x1c;
  4650. global $x1d;
  4651. global $x1e;
  4652. global $x1f;
  4653. global $x20;
  4654. global $x21;
  4655. global $x22;
  4656. global $x23;
  4657. global $x24;
  4658. global $x25;
  4659. global $x26;
  4660. global $x27;
  4661. global $x28;
  4662. global $x29;
  4663. global $x2a;
  4664. global $x2b;
  4665. global $x2c;
  4666. global $x2d;
  4667. global $x2e;
  4668. global $x2f;
  4669. global $x30;
  4670. global $x31;
  4671. global $x32;
  4672. global $x33;
  4673. global $x34;
  4674. global $x35;
  4675. global $x36;
  4676. global $x37;
  4677. global $x38;
  4678. global $x39;
  4679. global $x3a;
  4680. global $x3b;
  4681. global $x3c;
  4682. global $x3d;
  4683. global $x3e;
  4684. global $x3f;
  4685. global $x40;
  4686. global $x41;
  4687. global $x42;
  4688. global $x43;
  4689. global $x44;
  4690. global $x45;
  4691. global $x46;
  4692. global $x47;
  4693. global $x48;
  4694. global $x49;
  4695. global $x4a;
  4696. global $x4b;
  4697. global $x4c;
  4698. global $x4d;
  4699. global $x4e;
  4700. global $x4f;
  4701. global $x50;
  4702. global $x51;
  4703. global $x52;
  4704. global $x53;
  4705. global $x54;
  4706. global $lang;
  4707. global $settings;
  4708.  
  4709. if ($cgehidgfbe == '') {
  4710. $cgehidgfbe = $cdcaaiffe( );
  4711. }
  4712.  
  4713. $cciacfijhg = 0;
  4714. $bdaaecjehi = 0;
  4715. $hjadjddei = 0;
  4716. $ebjdeaaie = 0;
  4717.  
  4718. if ($dchbacbcjc( $bdbacfifbi )) {
  4719. $cjdjcgijdj = query_row( 'SELECT * FROM deposits WHERE deposit_id=%s', $bdbacfifbi );
  4720. } else {
  4721. $cjdjcgijdj = $bdbacfifbi;
  4722. }
  4723.  
  4724.  
  4725. if (empty( $bfbjaddgbg )) {
  4726. $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE program_id=%s', $cjdjcgijdj['program_id'] );
  4727. }
  4728.  
  4729. if ($ecbfdefehb == 'NOT') {
  4730. $ecbfdefehb = get_level( $cjdjcgijdj['amount'], $bfbjaddgbg['program_id'] );
  4731. }
  4732.  
  4733. if ($dfiefaeaag == 'Percentage') {
  4734. $cciacfijhg = $cjdjcgijdj['amount'] * $ecbfdefehb / 100;
  4735. } else {
  4736. $cciacfijhg = $ecbfdefehb;
  4737. }
  4738.  
  4739. $chffgagadc = check_compounding( $bfbjaddgbg, $cjdjcgijdj['compound'] );
  4740.  
  4741. if (( $chffgagadc[0] == 'OK' || $chffgagadc[0] == 'FORCED' )) {
  4742. $cefciagdeh = $chffgagadc[1];
  4743. } else {
  4744. $cefciagdeh = 0;
  4745. }
  4746.  
  4747.  
  4748. if (0 < $cefciagdeh) {
  4749. $bdaaecjehi = $cciacfijhg * ( $cefciagdeh / 100 );
  4750.  
  4751. if (( ( !$bfbjaddgbg['force_compounding'] && $bfbjaddgbg['compounding_max_amount'] < $bdaaecjehi ) && 0 < $bfbjaddgbg['compounding_max_amount'] )) {
  4752. $hjadjddei = $bfbjaddgbg['compounding_max_amount'];
  4753. $ebjdeaaie = $cciacfijhg - $hjadjddei;
  4754. } else {
  4755. $hjadjddei = $bdaaecjehi;
  4756. $ebjdeaaie = $cciacfijhg - $bdaaecjehi;
  4757. }
  4758. } else {
  4759. $ebjdeaaie = $cciacfijhg;
  4760. $hjadjddei = 0;
  4761. }
  4762.  
  4763.  
  4764. if (( $caijeedgjc == '' && $dfiefaeaag == 'Percentage' )) {
  4765. $caijeedgjc = lang_wildcard( $cegcbcjjff[166], array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
  4766. } else {
  4767. if (( $caijeedgjc == '' && $dfiefaeaag == 'Amount' )) {
  4768. $caijeedgjc = lang_wildcard( $cegcbcjjff[167], array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
  4769. } else {
  4770. $caijeedgjc = lang_wildcard( $caijeedgjc, array( 'deposit_amount' => $cjdjcgijdj['amount'], 'program_name' => $bfbjaddgbg['program_name'], 'percentage' => $ecbfdefehb ) );
  4771. }
  4772. }
  4773.  
  4774. $beadbbagdd = insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cciacfijhg, 'type' => 'earnings', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $caijeedgjc ), false );
  4775.  
  4776. if ($ebjdeaaie != 0) {
  4777. if (0 < $ebjdeaaie) {
  4778. $cjbbbagcif = autopay_available( $cjdjcgijdj['currency_id'], $cjdjcgijdj['member_id'], $ebjdeaaie );
  4779. }
  4780.  
  4781. if (0 < $cjbbbagcif) {
  4782. $chffgagadc = send_money( $cjbbbagcif, $cjdjcgijdj['currency_id'], $cegcbcjjff[168] . $bcgahficac['site_name'], $cjdjcgijdj['member_id'] );
  4783.  
  4784. if ($chffgagadc[0] == 0) {
  4785. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[169], array( 'autopay' => $cjbbbagcif, 'currency_id' => $cjdjcgijdj['currency_id'] ) ) . $chffgagadc[1];
  4786. insert_data( 'transactions', array( 'member_id' => 1, 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cjbbbagcif, 'type' => 'error', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
  4787. $cjbbbagcif = 0;
  4788. } else {
  4789. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[170], array( 'earning_id' => $beadbbagdd, 'autopay' => $cjbbbagcif ) ) . $chffgagadc[1];
  4790. insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $cjbbbagcif, 'type' => 'withdrawal_auto', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
  4791. $ebjdeaaie -= $cjbbbagcif;
  4792. }
  4793. }
  4794.  
  4795. if ($ebjdeaaie != 0) {
  4796. $bfgbdjgdj = $cegcbcjjff[171] . $beadbbagdd . $cegcbcjjff[172];
  4797. insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $ebjdeaaie, 'type' => 'to_account', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
  4798. change_balance( $cjdjcgijdj['member_id'], $cjdjcgijdj['currency_id'], $ebjdeaaie, false );
  4799. }
  4800. }
  4801.  
  4802. if ($hjadjddei != 0) {
  4803. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[173], array( 'earning_id' => $beadbbagdd, 'program_name' => $bfbjaddgbg['program_name'] ) );
  4804. insert_data( 'transactions', array( 'member_id' => $cjdjcgijdj['member_id'], 'currency_id' => $cjdjcgijdj['currency_id'], 'amount' => $hjadjddei, 'type' => 'deposit_compound', 'date' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ), 'description' => $bfgbdjgdj ), false );
  4805. $cjdjcgijdj['amount'] += $hjadjddei;
  4806. }
  4807.  
  4808. query_update( 'deposits', 'deposit_id', $cjdjcgijdj['deposit_id'], array( 'amount' => $cjdjcgijdj['amount'], 'last_payout' => $cgbgjjdhaj( 'Y-m-d H:i:s', $cgehidgfbe ) ), false );
  4809. return $hjadjddei;
  4810. }
  4811.  
  4812. function check_compounding($bfbjaddgbg, $djaciebhdj) {
  4813. global $x0b;
  4814. global $x0c;
  4815. global $x0d;
  4816. global $x0e;
  4817. global $x0f;
  4818. global $x10;
  4819. global $x11;
  4820. global $x12;
  4821. global $x13;
  4822. global $x14;
  4823. global $x15;
  4824. global $x16;
  4825. global $x17;
  4826. global $x18;
  4827. global $x19;
  4828. global $x1a;
  4829. global $x1b;
  4830. global $x1c;
  4831. global $x1d;
  4832. global $x1e;
  4833. global $x1f;
  4834. global $x20;
  4835. global $x21;
  4836. global $x22;
  4837. global $x23;
  4838. global $x24;
  4839. global $x25;
  4840. global $x26;
  4841. global $x27;
  4842. global $x28;
  4843. global $x29;
  4844. global $x2a;
  4845. global $x2b;
  4846. global $x2c;
  4847. global $x2d;
  4848. global $x2e;
  4849. global $x2f;
  4850. global $x30;
  4851. global $x31;
  4852. global $x32;
  4853. global $x33;
  4854. global $x34;
  4855. global $x35;
  4856. global $x36;
  4857. global $x37;
  4858. global $x38;
  4859. global $x39;
  4860. global $x3a;
  4861. global $x3b;
  4862. global $x3c;
  4863. global $x3d;
  4864. global $x3e;
  4865. global $x3f;
  4866. global $x40;
  4867. global $x41;
  4868. global $x42;
  4869. global $x43;
  4870. global $x44;
  4871. global $x45;
  4872. global $x46;
  4873. global $x47;
  4874. global $x48;
  4875. global $x49;
  4876. global $x4a;
  4877. global $x4b;
  4878. global $x4c;
  4879. global $x4d;
  4880. global $x4e;
  4881. global $x4f;
  4882. global $x50;
  4883. global $x51;
  4884. global $x52;
  4885. global $x53;
  4886. global $x54;
  4887.  
  4888. $dageeajhga = 0;
  4889.  
  4890. if (( !$bfbjaddgbg['allow_compounding'] && $djaciebhdj == 0 )) {
  4891. return array( 'OK', 0 );
  4892. }
  4893.  
  4894. if (( !$bfbjaddgbg['allow_compounding'] && 0 < $djaciebhdj )) {
  4895. return array( 'NOT_ALLOWED', 0 );
  4896. }
  4897.  
  4898. if ($bfbjaddgbg['compounding_fixed_percents']) {
  4899. $dbfjdcebhf = $bfaddhcbhi( ',', $bfbjaddgbg['compounding_fixed_percents'] );
  4900.  
  4901. if (0 < $djaciebhdj) {
  4902. if ($cajchcaff( $djaciebhdj, $dbfjdcebhf )) {
  4903. return array( 'OK', $djaciebhdj );
  4904. }
  4905.  
  4906. if ($bfbjaddgbg['force_compounding']) {
  4907. return array( 'INVALID_FIXED', $cegfiaejgi( $dbfjdcebhf ) );
  4908. }
  4909.  
  4910. return array( 'INVALID_FIXED', 0 );
  4911. }
  4912.  
  4913. if ($bfbjaddgbg['force_compounding']) {
  4914. return array( 'FORCED', $cegfiaejgi( $dbfjdcebhf ) );
  4915. }
  4916.  
  4917. return array( 'OK', 0 );
  4918. }
  4919.  
  4920. if (0 < $djaciebhdj) {
  4921. if (( $bfbjaddgbg['compounding_min_percent'] <= $djaciebhdj && $djaciebhdj <= $bfbjaddgbg['compounding_max_percent'] )) {
  4922. return array( 'OK', $djaciebhdj );
  4923. }
  4924.  
  4925. if (( $djaciebhdj < $bfbjaddgbg['compounding_min_percent'] && $bfbjaddgbg['force_compounding'] )) {
  4926. return array( 'FORCED', $bfbjaddgbg['compounding_min_percent'] );
  4927. }
  4928.  
  4929. if (( $djaciebhdj < $bfbjaddgbg['compounding_min_percent'] && !$bfbjaddgbg['force_compounding'] )) {
  4930. return array( 'LOW', $bfbjaddgbg['compounding_min_percent'] );
  4931. }
  4932.  
  4933. return array( 'HIGH', $bfbjaddgbg['compounding_max_percent'] );
  4934. }
  4935.  
  4936. if ($bfbjaddgbg['force_compounding']) {
  4937. return array( 'FORCED', $bfbjaddgbg['compounding_min_percent'] );
  4938. }
  4939.  
  4940. return array( 'OK', 0 );
  4941. }
  4942.  
  4943. function get_level($djaciebhdj, $bbjccgbdbi, $bjcgcfbda = false) {
  4944. global $x0b;
  4945. global $x0c;
  4946. global $x0d;
  4947. global $x0e;
  4948. global $x0f;
  4949. global $x10;
  4950. global $x11;
  4951. global $x12;
  4952. global $x13;
  4953. global $x14;
  4954. global $x15;
  4955. global $x16;
  4956. global $x17;
  4957. global $x18;
  4958. global $x19;
  4959. global $x1a;
  4960. global $x1b;
  4961. global $x1c;
  4962. global $x1d;
  4963. global $x1e;
  4964. global $x1f;
  4965. global $x20;
  4966. global $x21;
  4967. global $x22;
  4968. global $x23;
  4969. global $x24;
  4970. global $x25;
  4971. global $x26;
  4972. global $x27;
  4973. global $x28;
  4974. global $x29;
  4975. global $x2a;
  4976. global $x2b;
  4977. global $x2c;
  4978. global $x2d;
  4979. global $x2e;
  4980. global $x2f;
  4981. global $x30;
  4982. global $x31;
  4983. global $x32;
  4984. global $x33;
  4985. global $x34;
  4986. global $x35;
  4987. global $x36;
  4988. global $x37;
  4989. global $x38;
  4990. global $x39;
  4991. global $x3a;
  4992. global $x3b;
  4993. global $x3c;
  4994. global $x3d;
  4995. global $x3e;
  4996. global $x3f;
  4997. global $x40;
  4998. global $x41;
  4999. global $x42;
  5000. global $x43;
  5001. global $x44;
  5002. global $x45;
  5003. global $x46;
  5004. global $x47;
  5005. global $x48;
  5006. global $x49;
  5007. global $x4a;
  5008. global $x4b;
  5009. global $x4c;
  5010. global $x4d;
  5011. global $x4e;
  5012. global $x4f;
  5013. global $x50;
  5014. global $x51;
  5015. global $x52;
  5016. global $x53;
  5017. global $x54;
  5018.  
  5019. $ebaiefheid = 'SELECT percentage
  5020.  
  5021. FROM `program_levels`
  5022. WHERE program_id =%s
  5023. AND (( %s BETWEEN min_amount AND max_amount )
  5024.  
  5025. OR ( %s >= min_amount AND ISNULL( max_amount )) ';
  5026.  
  5027. if (!$bjcgcfbda) {
  5028. $ebaiefheid .= '
  5029.  
  5030. OR ( %s >= min_amount
  5031. AND %s >= max_amount ) ';
  5032. }
  5033.  
  5034. $ebaiefheid .= ') ORDER BY min_amount DESC
  5035.  
  5036. LIMIT 1 ;';
  5037. return query_value( $ebaiefheid, array( $bbjccgbdbi, $djaciebhdj, $djaciebhdj, $djaciebhdj, $djaciebhdj ) );
  5038. }
  5039.  
  5040. function encrypt($baghbijhjj, $bbbegiache = '') {
  5041. global $x0b;
  5042. global $x0c;
  5043. global $x0d;
  5044. global $x0e;
  5045. global $x0f;
  5046. global $x10;
  5047. global $x11;
  5048. global $x12;
  5049. global $x13;
  5050. global $x14;
  5051. global $x15;
  5052. global $x16;
  5053. global $x17;
  5054. global $x18;
  5055. global $x19;
  5056. global $x1a;
  5057. global $x1b;
  5058. global $x1c;
  5059. global $x1d;
  5060. global $x1e;
  5061. global $x1f;
  5062. global $x20;
  5063. global $x21;
  5064. global $x22;
  5065. global $x23;
  5066. global $x24;
  5067. global $x25;
  5068. global $x26;
  5069. global $x27;
  5070. global $x28;
  5071. global $x29;
  5072. global $x2a;
  5073. global $x2b;
  5074. global $x2c;
  5075. global $x2d;
  5076. global $x2e;
  5077. global $x2f;
  5078. global $x30;
  5079. global $x31;
  5080. global $x32;
  5081. global $x33;
  5082. global $x34;
  5083. global $x35;
  5084. global $x36;
  5085. global $x37;
  5086. global $x38;
  5087. global $x39;
  5088. global $x3a;
  5089. global $x3b;
  5090. global $x3c;
  5091. global $x3d;
  5092. global $x3e;
  5093. global $x3f;
  5094. global $x40;
  5095. global $x41;
  5096. global $x42;
  5097. global $x43;
  5098. global $x44;
  5099. global $x45;
  5100. global $x46;
  5101. global $x47;
  5102. global $x48;
  5103. global $x49;
  5104. global $x4a;
  5105. global $x4b;
  5106. global $x4c;
  5107. global $x4d;
  5108. global $x4e;
  5109. global $x4f;
  5110. global $x50;
  5111. global $x51;
  5112. global $x52;
  5113. global $x53;
  5114. global $x54;
  5115. global $r2d2;
  5116. global $bf;
  5117.  
  5118. if (empty( $bbbegiache )) {
  5119. $bbbegiache = $ddgeegdcia;
  5120. }
  5121.  
  5122. $gaijaiche->setKey( $bbbegiache );
  5123. return $bdbhjeebje( $gaijaiche->encrypt( $baghbijhjj ) );
  5124. }
  5125.  
  5126. function decrypt($baghbijhjj, $bbbegiache = '') {
  5127. global $x0b;
  5128. global $x0c;
  5129. global $x0d;
  5130. global $x0e;
  5131. global $x0f;
  5132. global $x10;
  5133. global $x11;
  5134. global $x12;
  5135. global $x13;
  5136. global $x14;
  5137. global $x15;
  5138. global $x16;
  5139. global $x17;
  5140. global $x18;
  5141. global $x19;
  5142. global $x1a;
  5143. global $x1b;
  5144. global $x1c;
  5145. global $x1d;
  5146. global $x1e;
  5147. global $x1f;
  5148. global $x20;
  5149. global $x21;
  5150. global $x22;
  5151. global $x23;
  5152. global $x24;
  5153. global $x25;
  5154. global $x26;
  5155. global $x27;
  5156. global $x28;
  5157. global $x29;
  5158. global $x2a;
  5159. global $x2b;
  5160. global $x2c;
  5161. global $x2d;
  5162. global $x2e;
  5163. global $x2f;
  5164. global $x30;
  5165. global $x31;
  5166. global $x32;
  5167. global $x33;
  5168. global $x34;
  5169. global $x35;
  5170. global $x36;
  5171. global $x37;
  5172. global $x38;
  5173. global $x39;
  5174. global $x3a;
  5175. global $x3b;
  5176. global $x3c;
  5177. global $x3d;
  5178. global $x3e;
  5179. global $x3f;
  5180. global $x40;
  5181. global $x41;
  5182. global $x42;
  5183. global $x43;
  5184. global $x44;
  5185. global $x45;
  5186. global $x46;
  5187. global $x47;
  5188. global $x48;
  5189. global $x49;
  5190. global $x4a;
  5191. global $x4b;
  5192. global $x4c;
  5193. global $x4d;
  5194. global $x4e;
  5195. global $x4f;
  5196. global $x50;
  5197. global $x51;
  5198. global $x52;
  5199. global $x53;
  5200. global $x54;
  5201. global $r2d2;
  5202. global $bf;
  5203.  
  5204. if (empty( $bbbegiache )) {
  5205. $bbbegiache = $ddgeegdcia;
  5206. }
  5207.  
  5208. $gaijaiche->setKey( $bbbegiache );
  5209. return $debaggdfeh( $gaijaiche->decrypt( $cffedfaabj( $baghbijhjj ) ) );
  5210. }
  5211.  
  5212. function parsexml($ejcbaihji) {
  5213. global $x0b;
  5214. global $x0c;
  5215. global $x0d;
  5216. global $x0e;
  5217. global $x0f;
  5218. global $x10;
  5219. global $x11;
  5220. global $x12;
  5221. global $x13;
  5222. global $x14;
  5223. global $x15;
  5224. global $x16;
  5225. global $x17;
  5226. global $x18;
  5227. global $x19;
  5228. global $x1a;
  5229. global $x1b;
  5230. global $x1c;
  5231. global $x1d;
  5232. global $x1e;
  5233. global $x1f;
  5234. global $x20;
  5235. global $x21;
  5236. global $x22;
  5237. global $x23;
  5238. global $x24;
  5239. global $x25;
  5240. global $x26;
  5241. global $x27;
  5242. global $x28;
  5243. global $x29;
  5244. global $x2a;
  5245. global $x2b;
  5246. global $x2c;
  5247. global $x2d;
  5248. global $x2e;
  5249. global $x2f;
  5250. global $x30;
  5251. global $x31;
  5252. global $x32;
  5253. global $x33;
  5254. global $x34;
  5255. global $x35;
  5256. global $x36;
  5257. global $x37;
  5258. global $x38;
  5259. global $x39;
  5260. global $x3a;
  5261. global $x3b;
  5262. global $x3c;
  5263. global $x3d;
  5264. global $x3e;
  5265. global $x3f;
  5266. global $x40;
  5267. global $x41;
  5268. global $x42;
  5269. global $x43;
  5270. global $x44;
  5271. global $x45;
  5272. global $x46;
  5273. global $x47;
  5274. global $x48;
  5275. global $x49;
  5276. global $x4a;
  5277. global $x4b;
  5278. global $x4c;
  5279. global $x4d;
  5280. global $x4e;
  5281. global $x4f;
  5282. global $x50;
  5283. global $x51;
  5284. global $x52;
  5285. global $x53;
  5286. global $x54;
  5287.  
  5288. $dcgjbhibag = array( );
  5289. $fafbdccia = getelement( $ejcbaihji, 'balanceresponse.list' );
  5290.  
  5291. if ($fafbdccia != '') {
  5292. $dcgjbhibag['status'] = 'balance';
  5293. $dghcibhdhg = false;
  5294.  
  5295. if ($chdedeaji = $dejaahdhaa( $fafbdccia, '<balance>' ) === false) {
  5296. $dghcibhdhg = true;
  5297. } else {
  5298. $bghcfafdd = $behjgejeae( $fafbdccia ) - $behjgejeae( $chdedeaji );
  5299. }
  5300.  
  5301.  
  5302. if ($daaebfdeeb = $dejaahdhaa( $fafbdccia, '</balance>' ) === false) {
  5303. $dghcibhdhg = true;
  5304. } else {
  5305. $bcagifecci = $behjgejeae( $fafbdccia ) - $behjgejeae( $daaebfdeeb );
  5306. }
  5307.  
  5308.  
  5309. if (!$dghcibhdhg) {
  5310. $fhhebajii = $debaggdfeh( $dfiacgeceb( $fafbdccia, $bghcfafdd + 9, $bcagifecci - 9 ) );
  5311. $fafbdccia = $debaggdfeh( $dfiacgeceb( $fafbdccia, $bcagifecci + 10 ) );
  5312. $dcgjbhibag['amount'] = getelement( $fhhebajii, 'amount' );
  5313.  
  5314. if ($chdedeaji = $dejaahdhaa( $fafbdccia, '<balance>' ) === false) {
  5315. $dghcibhdhg = true;
  5316. } else {
  5317. $bghcfafdd = $behjgejeae( $fafbdccia ) - $behjgejeae( $chdedeaji );
  5318. }
  5319.  
  5320.  
  5321. if ($daaebfdeeb = $dejaahdhaa( $fafbdccia, '</balance>' ) === false) {
  5322. $dghcibhdhg = true;
  5323. continue;
  5324. }
  5325.  
  5326. $bcagifecci = $behjgejeae( $fafbdccia ) - $behjgejeae( $daaebfdeeb );
  5327. continue;
  5328. }
  5329. }
  5330.  
  5331. $bjadcfabgh = getelement( $ejcbaihji, 'verified.list' );
  5332.  
  5333. if ($bjadcfabgh != '') {
  5334. $dcgjbhibag['status'] = 'ok';
  5335. $dghcibhdhg = false;
  5336.  
  5337. if ($chdedeaji = $dejaahdhaa( $bjadcfabgh, '<transaction>' ) === false) {
  5338. $dghcibhdhg = true;
  5339. } else {
  5340. $bghcfafdd = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $chdedeaji );
  5341. }
  5342.  
  5343.  
  5344. if ($daaebfdeeb = $dejaahdhaa( $bjadcfabgh, '</transaction>' ) === false) {
  5345. $dghcibhdhg = true;
  5346. } else {
  5347. $bcagifecci = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $daaebfdeeb );
  5348. }
  5349.  
  5350.  
  5351. if (!$dghcibhdhg) {
  5352. $ibiijhcah = $debaggdfeh( $dfiacgeceb( $bjadcfabgh, $bghcfafdd + 13, $bcagifecci - 13 ) );
  5353. $bjadcfabgh = $debaggdfeh( $dfiacgeceb( $bjadcfabgh, $bcagifecci + 14 ) );
  5354. $dcgjbhibag['batch'] = getelement( $ibiijhcah, 'id' );
  5355. $dcgjbhibag['payee'] = getelement( $ibiijhcah, 'payee' );
  5356. $dcgjbhibag['payer'] = getelement( $ibiijhcah, 'payer' );
  5357. $dcgjbhibag['amount'] = getelement( $ibiijhcah, 'amount' );
  5358. $dcgjbhibag['metal'] = getelement( $ibiijhcah, 'metal' );
  5359. $dcgjbhibag['unit'] = getelement( $ibiijhcah, 'unit' );
  5360. $dcgjbhibag['memo'] = getelement( $ibiijhcah, 'memo' );
  5361. $dcgjbhibag['exchange'] = getelement( $ibiijhcah, 'exchange' );
  5362. $dcgjbhibag['fee'] = getelement( $ibiijhcah, 'fee' );
  5363.  
  5364. if ($chdedeaji = $dejaahdhaa( $bjadcfabgh, '<transaction>' ) === false) {
  5365. $dghcibhdhg = true;
  5366. } else {
  5367. $bghcfafdd = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $chdedeaji );
  5368. }
  5369.  
  5370.  
  5371. if ($daaebfdeeb = $dejaahdhaa( $bjadcfabgh, '</transaction>' ) === false) {
  5372. $dghcibhdhg = true;
  5373. continue;
  5374. }
  5375.  
  5376. $bcagifecci = $behjgejeae( $bjadcfabgh ) - $behjgejeae( $daaebfdeeb );
  5377. continue;
  5378. }
  5379. }
  5380.  
  5381. $dcbgdfcbgg = getelement( $ejcbaihji, 'failed.list' );
  5382.  
  5383. if ($dcbgdfcbgg != '') {
  5384. $dcgjbhibag['status'] = 'error';
  5385. $dghcibhdhg = false;
  5386.  
  5387. if ($chdedeaji = $dejaahdhaa( $dcbgdfcbgg, '<failed>' ) === false) {
  5388. $dghcibhdhg = true;
  5389. } else {
  5390. $bghcfafdd = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $chdedeaji );
  5391. }
  5392.  
  5393.  
  5394. if ($daaebfdeeb = $dejaahdhaa( $dcbgdfcbgg, '</failed>' ) === false) {
  5395. $dghcibhdhg = true;
  5396. } else {
  5397. $bcagifecci = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $daaebfdeeb );
  5398. }
  5399.  
  5400.  
  5401. if (!$dghcibhdhg) {
  5402. $dbhdiibebe = $debaggdfeh( $dfiacgeceb( $dcbgdfcbgg, $bghcfafdd + 13, $bcagifecci - 13 ) );
  5403. $dcbgdfcbgg = $debaggdfeh( $dfiacgeceb( $dcbgdfcbgg, $bcagifecci + 14 ) );
  5404. $dcgjbhibag['text'] = getelement( $dbhdiibebe, 'error' );
  5405.  
  5406. if ($chdedeaji = $dejaahdhaa( $dcbgdfcbgg, '<failed>' ) === false) {
  5407. $dghcibhdhg = true;
  5408. } else {
  5409. $bghcfafdd = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $chdedeaji );
  5410. }
  5411.  
  5412.  
  5413. if ($daaebfdeeb = $dejaahdhaa( $dcbgdfcbgg, '</failed>' ) === false) {
  5414. $dghcibhdhg = true;
  5415. continue;
  5416. }
  5417.  
  5418. $bcagifecci = $behjgejeae( $dcbgdfcbgg ) - $behjgejeae( $daaebfdeeb );
  5419. continue;
  5420. }
  5421. }
  5422.  
  5423. $bffigghbgc = getelement( $ejcbaihji, 'errorresponse.list' );
  5424.  
  5425. if ($bffigghbgc != '') {
  5426. $dcgjbhibag['status'] = 'error';
  5427. $dghcibhdhg = false;
  5428.  
  5429. if ($chdedeaji = $dejaahdhaa( $bffigghbgc, '<errorresponse>' ) === false) {
  5430. $dghcibhdhg = true;
  5431. } else {
  5432. $bghcfafdd = $behjgejeae( $bffigghbgc ) - $behjgejeae( $chdedeaji );
  5433. }
  5434.  
  5435.  
  5436. if ($daaebfdeeb = $dejaahdhaa( $bffigghbgc, '</errorresponse>' ) === false) {
  5437. $dghcibhdhg = true;
  5438. } else {
  5439. $bcagifecci = $behjgejeae( $bffigghbgc ) - $behjgejeae( $daaebfdeeb );
  5440. }
  5441.  
  5442.  
  5443. if (!$dghcibhdhg) {
  5444. $ddgeddgfgg = $debaggdfeh( $dfiacgeceb( $bffigghbgc, $bghcfafdd + 15, $bcagifecci - 15 ) );
  5445. $didegccdci = false;
  5446.  
  5447. if ($chhjcfciie = $dejaahdhaa( $ddgeddgfgg, '<error>' ) === false) {
  5448. $didegccdci = true;
  5449. } else {
  5450. $djggaijdff = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $chhjcfciie );
  5451. }
  5452.  
  5453.  
  5454. if ($dgbcifjcdh = $dejaahdhaa( $ddgeddgfgg, '</error>' ) === false) {
  5455. $didegccdci = true;
  5456. } else {
  5457. $cjijgbcacd = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $dgbcifjcdh );
  5458. }
  5459.  
  5460.  
  5461. if (!$didegccdci) {
  5462. $bdbihcec = $debaggdfeh( $dfiacgeceb( $ddgeddgfgg, $djggaijdff + 7, $cjijgbcacd - 7 ) );
  5463. $ddgeddgfgg = $debaggdfeh( $dfiacgeceb( $ddgeddgfgg, $cjijgbcacd + 8 ) );
  5464. $dcgjbhibag['text'] = getelement( $bdbihcec, 'text' );
  5465. $dcgjbhibag['additional'] = getelement( $bdbihcec, 'additional' );
  5466.  
  5467. if ($chhjcfciie = $dejaahdhaa( $ddgeddgfgg, '<error>' ) === false) {
  5468. $didegccdci = true;
  5469. } else {
  5470. $djggaijdff = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $chhjcfciie );
  5471. }
  5472.  
  5473.  
  5474. if ($dgbcifjcdh = $dejaahdhaa( $ddgeddgfgg, '</error>' ) === false) {
  5475. $didegccdci = true;
  5476. continue;
  5477. }
  5478.  
  5479. $cjijgbcacd = $behjgejeae( $ddgeddgfgg ) - $behjgejeae( $dgbcifjcdh );
  5480. continue;
  5481. }
  5482.  
  5483. $bffigghbgc = $debaggdfeh( $dfiacgeceb( $bffigghbgc, $bcagifecci + 16 ) );
  5484.  
  5485. if ($chdedeaji = $dejaahdhaa( $bffigghbgc, '<errorresponse>' ) === false) {
  5486. $dghcibhdhg = true;
  5487. } else {
  5488. $bghcfafdd = $behjgejeae( $bffigghbgc ) - $behjgejeae( $chdedeaji );
  5489. }
  5490.  
  5491.  
  5492. if ($daaebfdeeb = $dejaahdhaa( $bffigghbgc, '</errorresponse>' ) === false) {
  5493. $dghcibhdhg = true;
  5494. continue;
  5495. }
  5496.  
  5497. $bcagifecci = $behjgejeae( $bffigghbgc ) - $behjgejeae( $daaebfdeeb );
  5498. continue;
  5499. }
  5500. }
  5501.  
  5502. return $dcgjbhibag;
  5503. }
  5504.  
  5505. function getelement($ghaehjgeb, $dcjhhcjiai) {
  5506. global $x0b;
  5507. global $x0c;
  5508. global $x0d;
  5509. global $x0e;
  5510. global $x0f;
  5511. global $x10;
  5512. global $x11;
  5513. global $x12;
  5514. global $x13;
  5515. global $x14;
  5516. global $x15;
  5517. global $x16;
  5518. global $x17;
  5519. global $x18;
  5520. global $x19;
  5521. global $x1a;
  5522. global $x1b;
  5523. global $x1c;
  5524. global $x1d;
  5525. global $x1e;
  5526. global $x1f;
  5527. global $x20;
  5528. global $x21;
  5529. global $x22;
  5530. global $x23;
  5531. global $x24;
  5532. global $x25;
  5533. global $x26;
  5534. global $x27;
  5535. global $x28;
  5536. global $x29;
  5537. global $x2a;
  5538. global $x2b;
  5539. global $x2c;
  5540. global $x2d;
  5541. global $x2e;
  5542. global $x2f;
  5543. global $x30;
  5544. global $x31;
  5545. global $x32;
  5546. global $x33;
  5547. global $x34;
  5548. global $x35;
  5549. global $x36;
  5550. global $x37;
  5551. global $x38;
  5552. global $x39;
  5553. global $x3a;
  5554. global $x3b;
  5555. global $x3c;
  5556. global $x3d;
  5557. global $x3e;
  5558. global $x3f;
  5559. global $x40;
  5560. global $x41;
  5561. global $x42;
  5562. global $x43;
  5563. global $x44;
  5564. global $x45;
  5565. global $x46;
  5566. global $x47;
  5567. global $x48;
  5568. global $x49;
  5569. global $x4a;
  5570. global $x4b;
  5571. global $x4c;
  5572. global $x4d;
  5573. global $x4e;
  5574. global $x4f;
  5575. global $x50;
  5576. global $x51;
  5577. global $x52;
  5578. global $x53;
  5579. global $x54;
  5580.  
  5581. $ccacaiegjd = $behjgejeae( $dcjhhcjiai ) + 2;
  5582. $bghcfafdd = $cbhcjdfhih( $ghaehjgeb, '<' . $dcjhhcjiai . '>' );
  5583. $bcagifecci = $cbhcjdfhih( $ghaehjgeb, '</' . $dcjhhcjiai . '>' );
  5584.  
  5585. if (( $bghcfafdd == false || $bcagifecci == false )) {
  5586. return '';
  5587. }
  5588.  
  5589. $eafcfgbgeg = $debaggdfeh( $dfiacgeceb( $ghaehjgeb, $bghcfafdd + $ccacaiegjd, $bcagifecci - ( $bghcfafdd + $ccacaiegjd ) ) );
  5590. return $eafcfgbgeg;
  5591. }
  5592.  
  5593. function autopay_available($djiedbbdde, $ceiahabjba, $djaciebhdj) {
  5594. global $x0b;
  5595. global $x0c;
  5596. global $x0d;
  5597. global $x0e;
  5598. global $x0f;
  5599. global $x10;
  5600. global $x11;
  5601. global $x12;
  5602. global $x13;
  5603. global $x14;
  5604. global $x15;
  5605. global $x16;
  5606. global $x17;
  5607. global $x18;
  5608. global $x19;
  5609. global $x1a;
  5610. global $x1b;
  5611. global $x1c;
  5612. global $x1d;
  5613. global $x1e;
  5614. global $x1f;
  5615. global $x20;
  5616. global $x21;
  5617. global $x22;
  5618. global $x23;
  5619. global $x24;
  5620. global $x25;
  5621. global $x26;
  5622. global $x27;
  5623. global $x28;
  5624. global $x29;
  5625. global $x2a;
  5626. global $x2b;
  5627. global $x2c;
  5628. global $x2d;
  5629. global $x2e;
  5630. global $x2f;
  5631. global $x30;
  5632. global $x31;
  5633. global $x32;
  5634. global $x33;
  5635. global $x34;
  5636. global $x35;
  5637. global $x36;
  5638. global $x37;
  5639. global $x38;
  5640. global $x39;
  5641. global $x3a;
  5642. global $x3b;
  5643. global $x3c;
  5644. global $x3d;
  5645. global $x3e;
  5646. global $x3f;
  5647. global $x40;
  5648. global $x41;
  5649. global $x42;
  5650. global $x43;
  5651. global $x44;
  5652. global $x45;
  5653. global $x46;
  5654. global $x47;
  5655. global $x48;
  5656. global $x49;
  5657. global $x4a;
  5658. global $x4b;
  5659. global $x4c;
  5660. global $x4d;
  5661. global $x4e;
  5662. global $x4f;
  5663. global $x50;
  5664. global $x51;
  5665. global $x52;
  5666. global $x53;
  5667. global $x54;
  5668.  
  5669. if (!are_numeric( array( $ceiahabjba, $djaciebhdj ) )) {
  5670. exit( 'Tampering: 1291' );
  5671. }
  5672.  
  5673. if (!$dcjbfhhefa( $djiedbbdde )) {
  5674. if (!are_numeric( array( $djiedbbdde ) )) {
  5675. exit( 'Tampering: 1293' );
  5676. }
  5677.  
  5678. $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $djiedbbdde );
  5679. }
  5680.  
  5681. $ecigaciagh = query_row( 'select * from member_accounts where member_id=%s and currency_id=%s', array( $ceiahabjba, $djiedbbdde['currency_id'] ) );
  5682.  
  5683. if (( $djiedbbdde['withdraw_enabled'] == 1 && !empty( $ecigaciagh ) )) {
  5684. if ($djiedbbdde['withdraw_dailymax'] == 0) {
  5685. return $djaciebhdj;
  5686. }
  5687.  
  5688. $cfcdahjigg = $djiedbbdde['withdraw_dailymax'] - query_value( 'select sum(amount) from transactions where member_id=%s and `type`=\'withdrawal_auto\' and currency_id=%s and SUBSTRING(`date` FROM 1 FOR 10)=SUBSTRING(CURRENT_DATE FROM 1 FOR 10)', array( $ceiahabjba, $djiedbbdde['currency_id'] ) );
  5689. return ($cfcdahjigg < $djaciebhdj ? $cfcdahjigg : $djaciebhdj);
  5690. }
  5691.  
  5692. return 0;
  5693. }
  5694.  
  5695. function process_withdrawal($ccaicjgccg, $djaciebhdj, $caijeedgjc) {
  5696. global $x0b;
  5697. global $x0c;
  5698. global $x0d;
  5699. global $x0e;
  5700. global $x0f;
  5701. global $x10;
  5702. global $x11;
  5703. global $x12;
  5704. global $x13;
  5705. global $x14;
  5706. global $x15;
  5707. global $x16;
  5708. global $x17;
  5709. global $x18;
  5710. global $x19;
  5711. global $x1a;
  5712. global $x1b;
  5713. global $x1c;
  5714. global $x1d;
  5715. global $x1e;
  5716. global $x1f;
  5717. global $x20;
  5718. global $x21;
  5719. global $x22;
  5720. global $x23;
  5721. global $x24;
  5722. global $x25;
  5723. global $x26;
  5724. global $x27;
  5725. global $x28;
  5726. global $x29;
  5727. global $x2a;
  5728. global $x2b;
  5729. global $x2c;
  5730. global $x2d;
  5731. global $x2e;
  5732. global $x2f;
  5733. global $x30;
  5734. global $x31;
  5735. global $x32;
  5736. global $x33;
  5737. global $x34;
  5738. global $x35;
  5739. global $x36;
  5740. global $x37;
  5741. global $x38;
  5742. global $x39;
  5743. global $x3a;
  5744. global $x3b;
  5745. global $x3c;
  5746. global $x3d;
  5747. global $x3e;
  5748. global $x3f;
  5749. global $x40;
  5750. global $x41;
  5751. global $x42;
  5752. global $x43;
  5753. global $x44;
  5754. global $x45;
  5755. global $x46;
  5756. global $x47;
  5757. global $x48;
  5758. global $x49;
  5759. global $x4a;
  5760. global $x4b;
  5761. global $x4c;
  5762. global $x4d;
  5763. global $x4e;
  5764. global $x4f;
  5765. global $x50;
  5766. global $x51;
  5767. global $x52;
  5768. global $x53;
  5769. global $x54;
  5770. global $lang;
  5771. global $session;
  5772. global $settings;
  5773. global $glob;
  5774.  
  5775. if (!are_numeric( array( $ccaicjgccg, $djaciebhdj ) )) {
  5776. exit( 'Tampering: 1314' );
  5777. }
  5778.  
  5779. x0b( );
  5780. $cehgeiggfh = $cgbgjjdhaj( 'Y-m-d H:i:s' );
  5781. $cjcbddejeb = array( );
  5782. $ceiahabjba = $bjicjiadhb['member_id'];
  5783. $fafdiihej = 0;
  5784. $cffebghega = 0;
  5785. $djiedbbdde = query_row( 'select * from currencies where currency_id=%s', $ccaicjgccg );
  5786. $ecigaciagh = query_row( 'select * from member_accounts where member_id=%s and currency_id=%s', array( $ceiahabjba, $ccaicjgccg ) );
  5787. $gcjdjgafh = 'Withdrawal from ' . $bcgahficac['site_name'];
  5788. $behjcjgdcd = query_value( 'select balance from balances where currency_id=%s and member_id=%s', array( $ccaicjgccg, $ceiahabjba ) );
  5789.  
  5790. if ($behjcjgdcd < $djaciebhdj) {
  5791. exit( 'balance error' );
  5792. }
  5793.  
  5794. $fafdiihej = autopay_available( $djiedbbdde, $ceiahabjba, $djaciebhdj );
  5795. $cffebghega = $djaciebhdj - $fafdiihej;
  5796.  
  5797. if (0 < $fafdiihej) {
  5798. $chffgagadc = send_money( $fafdiihej, $ccaicjgccg, $gcjdjgafh );
  5799.  
  5800. if ($chffgagadc[0] == 0) {
  5801. $caijeedgjc = lang_wildcard( $cegcbcjjff[174], array( 'autopay_total' => $fafdiihej, 'currency_name' . $djiedbbdde['currency_name'], 'user_name' => $bjicjiadhb['user_name'] ) ) . $chffgagadc[1];
  5802. insert_data( 'transactions', array( 'member_id' => 1, 'currency_id' => $ccaicjgccg, 'amount' => $fafdiihej, 'type' => 'error', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
  5803. $cffebghega += $fafdiihej;
  5804. $fafdiihej = 0;
  5805. } else {
  5806. change_balance( $ceiahabjba, $ccaicjgccg, 0 - $fafdiihej, false );
  5807. $bfgbdjgdj = lang_wildcard( $cegcbcjjff[175], array( 'autopay_total' => $fafdiihej, 'amount' => $djaciebhdj, 'currency_name' => $djiedbbdde['currency_name'] ) ) . $chffgagadc[1];
  5808. insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $fafdiihej, 'type' => 'withdrawal_auto', 'date' => $cehgeiggfh, 'description' => $bfgbdjgdj ), false );
  5809. }
  5810. }
  5811.  
  5812. if (0 < $cffebghega) {
  5813. if (!change_balance( $ceiahabjba, $ccaicjgccg, 0 - $cffebghega )) {
  5814. exit( 'Not enough balance.' );
  5815. }
  5816.  
  5817. insert_data( 'transactions', array( 'member_id' => $ceiahabjba, 'currency_id' => $ccaicjgccg, 'amount' => $cffebghega, 'type' => 'withdraw_pending', 'date' => $cehgeiggfh, 'description' => $caijeedgjc ), false );
  5818. }
  5819.  
  5820. $cjcbddejeb['auto'] = $fafdiihej;
  5821. $cjcbddejeb['request'] = $cffebghega;
  5822. return $cjcbddejeb;
  5823. }
  5824.  
  5825. function get_gpg_version($dfaebfgacj) {
  5826. global $x0b;
  5827. global $x0c;
  5828. global $x0d;
  5829. global $x0e;
  5830. global $x0f;
  5831. global $x10;
  5832. global $x11;
  5833. global $x12;
  5834. global $x13;
  5835. global $x14;
  5836. global $x15;
  5837. global $x16;
  5838. global $x17;
  5839. global $x18;
  5840. global $x19;
  5841. global $x1a;
  5842. global $x1b;
  5843. global $x1c;
  5844. global $x1d;
  5845. global $x1e;
  5846. global $x1f;
  5847. global $x20;
  5848. global $x21;
  5849. global $x22;
  5850. global $x23;
  5851. global $x24;
  5852. global $x25;
  5853. global $x26;
  5854. global $x27;
  5855. global $x28;
  5856. global $x29;
  5857. global $x2a;
  5858. global $x2b;
  5859. global $x2c;
  5860. global $x2d;
  5861. global $x2e;
  5862. global $x2f;
  5863. global $x30;
  5864. global $x31;
  5865. global $x32;
  5866. global $x33;
  5867. global $x34;
  5868. global $x35;
  5869. global $x36;
  5870. global $x37;
  5871. global $x38;
  5872. global $x39;
  5873. global $x3a;
  5874. global $x3b;
  5875. global $x3c;
  5876. global $x3d;
  5877. global $x3e;
  5878. global $x3f;
  5879. global $x40;
  5880. global $x41;
  5881. global $x42;
  5882. global $x43;
  5883. global $x44;
  5884. global $x45;
  5885. global $x46;
  5886. global $x47;
  5887. global $x48;
  5888. global $x49;
  5889. global $x4a;
  5890. global $x4b;
  5891. global $x4c;
  5892. global $x4d;
  5893. global $x4e;
  5894. global $x4f;
  5895. global $x50;
  5896. global $x51;
  5897. global $x52;
  5898. global $x53;
  5899. global $x54;
  5900.  
  5901. $cieihjgje = 0;
  5902. $cgigficfdi = $bieccigbce( $dfaebfgacj ) . ' --version';
  5903. $cggageeeih = @$hijbfbifg( '' . $cgigficfdi, 'r' );
  5904.  
  5905. if ($cggageeeih) {
  5906. while (!$dijiajhddj( $cggageeeih )) {
  5907. $dcjcchfbbf = $dfagifchfc( $cggageeeih, 4096 );
  5908. $bhcbfgajca = $cibejgfejf( $dcjcchfbbf, 'gpg (GnuPG)' );
  5909.  
  5910. if (0 < $behjgejeae( $bhcbfgajca )) {
  5911. $cieihjgje = $dhbjgifdfg( '/[\n\r]/', '', $dfiacgeceb( $bhcbfgajca, 11 ) );
  5912. continue;
  5913. }
  5914. }
  5915.  
  5916. $icjbfbbgh( $cggageeeih );
  5917. }
  5918.  
  5919. return $cieihjgje;
  5920. }
  5921.  
  5922. function change_password($ceiahabjba, $cfjaebbbib) {
  5923. global $x0b;
  5924. global $x0c;
  5925. global $x0d;
  5926. global $x0e;
  5927. global $x0f;
  5928. global $x10;
  5929. global $x11;
  5930. global $x12;
  5931. global $x13;
  5932. global $x14;
  5933. global $x15;
  5934. global $x16;
  5935. global $x17;
  5936. global $x18;
  5937. global $x19;
  5938. global $x1a;
  5939. global $x1b;
  5940. global $x1c;
  5941. global $x1d;
  5942. global $x1e;
  5943. global $x1f;
  5944. global $x20;
  5945. global $x21;
  5946. global $x22;
  5947. global $x23;
  5948. global $x24;
  5949. global $x25;
  5950. global $x26;
  5951. global $x27;
  5952. global $x28;
  5953. global $x29;
  5954. global $x2a;
  5955. global $x2b;
  5956. global $x2c;
  5957. global $x2d;
  5958. global $x2e;
  5959. global $x2f;
  5960. global $x30;
  5961. global $x31;
  5962. global $x32;
  5963. global $x33;
  5964. global $x34;
  5965. global $x35;
  5966. global $x36;
  5967. global $x37;
  5968. global $x38;
  5969. global $x39;
  5970. global $x3a;
  5971. global $x3b;
  5972. global $x3c;
  5973. global $x3d;
  5974. global $x3e;
  5975. global $x3f;
  5976. global $x40;
  5977. global $x41;
  5978. global $x42;
  5979. global $x43;
  5980. global $x44;
  5981. global $x45;
  5982. global $x46;
  5983. global $x47;
  5984. global $x48;
  5985. global $x49;
  5986. global $x4a;
  5987. global $x4b;
  5988. global $x4c;
  5989. global $x4d;
  5990. global $x4e;
  5991. global $x4f;
  5992. global $x50;
  5993. global $x51;
  5994. global $x52;
  5995. global $x53;
  5996. global $x54;
  5997. global $settings;
  5998.  
  5999. if (!are_numeric( array( $ceiahabjba ) )) {
  6000. exit( 'Tampering: 1532' );
  6001. }
  6002.  
  6003. if ($bcgahficac['use_encryption']) {
  6004. $cfjaebbbib = $cgcachefei( $cfjaebbbib );
  6005. }
  6006.  
  6007. query_update( 'members', 'member_id', $ceiahabjba, array( 'password' => $cfjaebbbib, 'update_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
  6008. }
  6009.  
  6010. function send_invite($gcdgijcgd, $ceeigahfjc) {
  6011. global $x0b;
  6012. global $x0c;
  6013. global $x0d;
  6014. global $x0e;
  6015. global $x0f;
  6016. global $x10;
  6017. global $x11;
  6018. global $x12;
  6019. global $x13;
  6020. global $x14;
  6021. global $x15;
  6022. global $x16;
  6023. global $x17;
  6024. global $x18;
  6025. global $x19;
  6026. global $x1a;
  6027. global $x1b;
  6028. global $x1c;
  6029. global $x1d;
  6030. global $x1e;
  6031. global $x1f;
  6032. global $x20;
  6033. global $x21;
  6034. global $x22;
  6035. global $x23;
  6036. global $x24;
  6037. global $x25;
  6038. global $x26;
  6039. global $x27;
  6040. global $x28;
  6041. global $x29;
  6042. global $x2a;
  6043. global $x2b;
  6044. global $x2c;
  6045. global $x2d;
  6046. global $x2e;
  6047. global $x2f;
  6048. global $x30;
  6049. global $x31;
  6050. global $x32;
  6051. global $x33;
  6052. global $x34;
  6053. global $x35;
  6054. global $x36;
  6055. global $x37;
  6056. global $x38;
  6057. global $x39;
  6058. global $x3a;
  6059. global $x3b;
  6060. global $x3c;
  6061. global $x3d;
  6062. global $x3e;
  6063. global $x3f;
  6064. global $x40;
  6065. global $x41;
  6066. global $x42;
  6067. global $x43;
  6068. global $x44;
  6069. global $x45;
  6070. global $x46;
  6071. global $x47;
  6072. global $x48;
  6073. global $x49;
  6074. global $x4a;
  6075. global $x4b;
  6076. global $x4c;
  6077. global $x4d;
  6078. global $x4e;
  6079. global $x4f;
  6080. global $x50;
  6081. global $x51;
  6082. global $x52;
  6083. global $x53;
  6084. global $x54;
  6085. global $session;
  6086. global $glob;
  6087.  
  6088. $bjjbeeeibg = array( 'dumb' );
  6089. $chcideice = '';
  6090. $decgaggbba = query_row( 'select * from members where member_id=%s', $bjicjiadhb['member_id'] );
  6091. $hejfhacb = $bjicjiadhb['user_name'];
  6092.  
  6093. while (0 < $bedbahigdc( $bjjbeeeibg )) {
  6094. $chcideice = generate_password( 8, true, false, true );
  6095. $bjjbeeeibg = query_array( 'select * from invitations where code=\'%s\'', $chcideice );
  6096. }
  6097.  
  6098.  
  6099. if (send_email( 'Invite', '"' . $ceeigahfjc . '"' . ' <' . $gcdgijcgd . '>', $decgaggbba['email'], array( 'invite_code' => $chcideice, 'invite_name' => $ceeigahfjc, 'user_name' => $hejfhacb ) )) {
  6100. insert_data( 'invitations', array( 'email' => $gcdgijcgd, 'name' => $ceeigahfjc, 'code' => $chcideice, 'sent_on' => $cgbgjjdhaj( 'Y-m-d H:i:s' ), 'member_id' => $bjicjiadhb['member_id'] ), false );
  6101. return $chcideice;
  6102. }
  6103.  
  6104. return '';
  6105. }
  6106.  
  6107. function lang_wildcard($bfgbdjgdj, $beiifabbfd) {
  6108. global $x0b;
  6109. global $x0c;
  6110. global $x0d;
  6111. global $x0e;
  6112. global $x0f;
  6113. global $x10;
  6114. global $x11;
  6115. global $x12;
  6116. global $x13;
  6117. global $x14;
  6118. global $x15;
  6119. global $x16;
  6120. global $x17;
  6121. global $x18;
  6122. global $x19;
  6123. global $x1a;
  6124. global $x1b;
  6125. global $x1c;
  6126. global $x1d;
  6127. global $x1e;
  6128. global $x1f;
  6129. global $x20;
  6130. global $x21;
  6131. global $x22;
  6132. global $x23;
  6133. global $x24;
  6134. global $x25;
  6135. global $x26;
  6136. global $x27;
  6137. global $x28;
  6138. global $x29;
  6139. global $x2a;
  6140. global $x2b;
  6141. global $x2c;
  6142. global $x2d;
  6143. global $x2e;
  6144. global $x2f;
  6145. global $x30;
  6146. global $x31;
  6147. global $x32;
  6148. global $x33;
  6149. global $x34;
  6150. global $x35;
  6151. global $x36;
  6152. global $x37;
  6153. global $x38;
  6154. global $x39;
  6155. global $x3a;
  6156. global $x3b;
  6157. global $x3c;
  6158. global $x3d;
  6159. global $x3e;
  6160. global $x3f;
  6161. global $x40;
  6162. global $x41;
  6163. global $x42;
  6164. global $x43;
  6165. global $x44;
  6166. global $x45;
  6167. global $x46;
  6168. global $x47;
  6169. global $x48;
  6170. global $x49;
  6171. global $x4a;
  6172. global $x4b;
  6173. global $x4c;
  6174. global $x4d;
  6175. global $x4e;
  6176. global $x4f;
  6177. global $x50;
  6178. global $x51;
  6179. global $x52;
  6180. global $x53;
  6181. global $x54;
  6182.  
  6183. foreach ($beiifabbfd as $dabifdabdd => $gbdbighdb) {
  6184. $bfgbdjgdj = $dhbjgifdfg( '' . '/#' . $dabifdabdd . '#/', $gbdbighdb, $bfgbdjgdj );
  6185. }
  6186.  
  6187. return $bfgbdjgdj;
  6188. }
  6189.  
  6190. function check_pin($bafaehabhi, $chcideice) {
  6191. global $x0b;
  6192. global $x0c;
  6193. global $x0d;
  6194. global $x0e;
  6195. global $x0f;
  6196. global $x10;
  6197. global $x11;
  6198. global $x12;
  6199. global $x13;
  6200. global $x14;
  6201. global $x15;
  6202. global $x16;
  6203. global $x17;
  6204. global $x18;
  6205. global $x19;
  6206. global $x1a;
  6207. global $x1b;
  6208. global $x1c;
  6209. global $x1d;
  6210. global $x1e;
  6211. global $x1f;
  6212. global $x20;
  6213. global $x21;
  6214. global $x22;
  6215. global $x23;
  6216. global $x24;
  6217. global $x25;
  6218. global $x26;
  6219. global $x27;
  6220. global $x28;
  6221. global $x29;
  6222. global $x2a;
  6223. global $x2b;
  6224. global $x2c;
  6225. global $x2d;
  6226. global $x2e;
  6227. global $x2f;
  6228. global $x30;
  6229. global $x31;
  6230. global $x32;
  6231. global $x33;
  6232. global $x34;
  6233. global $x35;
  6234. global $x36;
  6235. global $x37;
  6236. global $x38;
  6237. global $x39;
  6238. global $x3a;
  6239. global $x3b;
  6240. global $x3c;
  6241. global $x3d;
  6242. global $x3e;
  6243. global $x3f;
  6244. global $x40;
  6245. global $x41;
  6246. global $x42;
  6247. global $x43;
  6248. global $x44;
  6249. global $x45;
  6250. global $x46;
  6251. global $x47;
  6252. global $x48;
  6253. global $x49;
  6254. global $x4a;
  6255. global $x4b;
  6256. global $x4c;
  6257. global $x4d;
  6258. global $x4e;
  6259. global $x4f;
  6260. global $x50;
  6261. global $x51;
  6262. global $x52;
  6263. global $x53;
  6264. global $x54;
  6265. global $settings;
  6266.  
  6267. if (!are_numeric( array( $bafaehabhi ) )) {
  6268. exit( 'Tampering: 1569' );
  6269. }
  6270.  
  6271. $cfbhbeihha = query_row( 'SELECT * FROM pins WHERE member_id=%s ORDER BY created_on DESC LIMIT 1', $bafaehabhi );
  6272.  
  6273. if (empty( $cfbhbeihha )) {
  6274. return false;
  6275. }
  6276.  
  6277. $dehabegabd = $dhddgedaaf( $cfbhbeihha['created_on'] ) + $bcgahficac['code_duration'] * 60;
  6278.  
  6279. if (( $dehabegabd < $cdcaaiffe( ) || $cfbhbeihha['pin'] != $chcideice )) {
  6280. return false;
  6281. }
  6282.  
  6283. return true;
  6284. }
  6285.  
  6286. function check_ip($bafaehabhi) {
  6287. global $x0b;
  6288. global $x0c;
  6289. global $x0d;
  6290. global $x0e;
  6291. global $x0f;
  6292. global $x10;
  6293. global $x11;
  6294. global $x12;
  6295. global $x13;
  6296. global $x14;
  6297. global $x15;
  6298. global $x16;
  6299. global $x17;
  6300. global $x18;
  6301. global $x19;
  6302. global $x1a;
  6303. global $x1b;
  6304. global $x1c;
  6305. global $x1d;
  6306. global $x1e;
  6307. global $x1f;
  6308. global $x20;
  6309. global $x21;
  6310. global $x22;
  6311. global $x23;
  6312. global $x24;
  6313. global $x25;
  6314. global $x26;
  6315. global $x27;
  6316. global $x28;
  6317. global $x29;
  6318. global $x2a;
  6319. global $x2b;
  6320. global $x2c;
  6321. global $x2d;
  6322. global $x2e;
  6323. global $x2f;
  6324. global $x30;
  6325. global $x31;
  6326. global $x32;
  6327. global $x33;
  6328. global $x34;
  6329. global $x35;
  6330. global $x36;
  6331. global $x37;
  6332. global $x38;
  6333. global $x39;
  6334. global $x3a;
  6335. global $x3b;
  6336. global $x3c;
  6337. global $x3d;
  6338. global $x3e;
  6339. global $x3f;
  6340. global $x40;
  6341. global $x41;
  6342. global $x42;
  6343. global $x43;
  6344. global $x44;
  6345. global $x45;
  6346. global $x46;
  6347. global $x47;
  6348. global $x48;
  6349. global $x49;
  6350. global $x4a;
  6351. global $x4b;
  6352. global $x4c;
  6353. global $x4d;
  6354. global $x4e;
  6355. global $x4f;
  6356. global $x50;
  6357. global $x51;
  6358. global $x52;
  6359. global $x53;
  6360. global $x54;
  6361.  
  6362. if (!are_numeric( array( $bafaehabhi ) )) {
  6363. exit( 'Tampering: 1580' );
  6364. }
  6365.  
  6366. $cffdaadfah = query_value( 'SELECT IP FROM logins WHERE member_id=%s ORDER BY login_time DESC LIMIT 1;', $bafaehabhi );
  6367.  
  6368. if (( empty( $cffdaadfah ) || $cffdaadfah == $_SERVER['REMOTE_ADDR'] )) {
  6369. return true;
  6370. }
  6371.  
  6372. send_pin( $bafaehabhi );
  6373. return false;
  6374. }
  6375.  
  6376. function send_pin($bafaehabhi) {
  6377. global $x0b;
  6378. global $x0c;
  6379. global $x0d;
  6380. global $x0e;
  6381. global $x0f;
  6382. global $x10;
  6383. global $x11;
  6384. global $x12;
  6385. global $x13;
  6386. global $x14;
  6387. global $x15;
  6388. global $x16;
  6389. global $x17;
  6390. global $x18;
  6391. global $x19;
  6392. global $x1a;
  6393. global $x1b;
  6394. global $x1c;
  6395. global $x1d;
  6396. global $x1e;
  6397. global $x1f;
  6398. global $x20;
  6399. global $x21;
  6400. global $x22;
  6401. global $x23;
  6402. global $x24;
  6403. global $x25;
  6404. global $x26;
  6405. global $x27;
  6406. global $x28;
  6407. global $x29;
  6408. global $x2a;
  6409. global $x2b;
  6410. global $x2c;
  6411. global $x2d;
  6412. global $x2e;
  6413. global $x2f;
  6414. global $x30;
  6415. global $x31;
  6416. global $x32;
  6417. global $x33;
  6418. global $x34;
  6419. global $x35;
  6420. global $x36;
  6421. global $x37;
  6422. global $x38;
  6423. global $x39;
  6424. global $x3a;
  6425. global $x3b;
  6426. global $x3c;
  6427. global $x3d;
  6428. global $x3e;
  6429. global $x3f;
  6430. global $x40;
  6431. global $x41;
  6432. global $x42;
  6433. global $x43;
  6434. global $x44;
  6435. global $x45;
  6436. global $x46;
  6437. global $x47;
  6438. global $x48;
  6439. global $x49;
  6440. global $x4a;
  6441. global $x4b;
  6442. global $x4c;
  6443. global $x4d;
  6444. global $x4e;
  6445. global $x4f;
  6446. global $x50;
  6447. global $x51;
  6448. global $x52;
  6449. global $x53;
  6450. global $x54;
  6451. global $settings;
  6452.  
  6453. if (!are_numeric( array( $bafaehabhi ) )) {
  6454. exit( 'Tampering: 1593' );
  6455. }
  6456.  
  6457. $chcideice = generate_password( 6, true, false, true );
  6458. $ghffjbia = $cdcaaiffe( );
  6459. $ddbebaicic = $ghffjbia + $bcgahficac['code_duration'] * 60;
  6460. $dfehfhdhb = insert_data( 'pins', array( 'member_id' => $bafaehabhi, 'pin' => $chcideice, 'created_on' => $cgbgjjdhaj( 'Y-m-d H:i:s', $ghffjbia ) ), false, false );
  6461. $decgaggbba = query_row( 'SELECT * FROM members WHERE member_id=%s', $bafaehabhi );
  6462. send_email( 'send_pin', $decgaggbba['email'], get_mailfrom( ), $chjhcibgjd( $decgaggbba, array( 'ip' => $_SERVER['REMOTE_ADDR'], 'pin' => $chcideice, 'expires' => $cgbgjjdhaj( 'r', $ddbebaicic ), 'attempt_time' => $cgbgjjdhaj( 'r', $ghffjbia ) ) ) );
  6463. }
  6464.  
  6465. function do_login($ihfaeebij) {
  6466. global $x0b;
  6467. global $x0c;
  6468. global $x0d;
  6469. global $x0e;
  6470. global $x0f;
  6471. global $x10;
  6472. global $x11;
  6473. global $x12;
  6474. global $x13;
  6475. global $x14;
  6476. global $x15;
  6477. global $x16;
  6478. global $x17;
  6479. global $x18;
  6480. global $x19;
  6481. global $x1a;
  6482. global $x1b;
  6483. global $x1c;
  6484. global $x1d;
  6485. global $x1e;
  6486. global $x1f;
  6487. global $x20;
  6488. global $x21;
  6489. global $x22;
  6490. global $x23;
  6491. global $x24;
  6492. global $x25;
  6493. global $x26;
  6494. global $x27;
  6495. global $x28;
  6496. global $x29;
  6497. global $x2a;
  6498. global $x2b;
  6499. global $x2c;
  6500. global $x2d;
  6501. global $x2e;
  6502. global $x2f;
  6503. global $x30;
  6504. global $x31;
  6505. global $x32;
  6506. global $x33;
  6507. global $x34;
  6508. global $x35;
  6509. global $x36;
  6510. global $x37;
  6511. global $x38;
  6512. global $x39;
  6513. global $x3a;
  6514. global $x3b;
  6515. global $x3c;
  6516. global $x3d;
  6517. global $x3e;
  6518. global $x3f;
  6519. global $x40;
  6520. global $x41;
  6521. global $x42;
  6522. global $x43;
  6523. global $x44;
  6524. global $x45;
  6525. global $x46;
  6526. global $x47;
  6527. global $x48;
  6528. global $x49;
  6529. global $x4a;
  6530. global $x4b;
  6531. global $x4c;
  6532. global $x4d;
  6533. global $x4e;
  6534. global $x4f;
  6535. global $x50;
  6536. global $x51;
  6537. global $x52;
  6538. global $x53;
  6539. global $x54;
  6540. global $session;
  6541. global $glob;
  6542.  
  6543. if (!$dcjbfhhefa( $ihfaeebij )) {
  6544. $ihfaeebij = query_row( 'SELECT * FROM members WHERE member_id=%s', $ihfaeebij );
  6545. }
  6546.  
  6547. $bjicjiadhb['member_id'] = $ihfaeebij['member_id'];
  6548. $bjicjiadhb['user_name'] = $ihfaeebij['user_name'];
  6549. $bjicjiadhb['user_data'] = $ihfaeebij;
  6550. $dehhifcahi->set( 'global', $bjicjiadhb );
  6551. insert_data( 'logins', array( 'member_id' => $bjicjiadhb['member_id'], 'IP' => $_SERVER['REMOTE_ADDR'], 'login_time' => $cgbgjjdhaj( 'Y-m-d H:i:s' ) ), false );
  6552. }
  6553.  
  6554. function is_alpha($eafcfgbgeg) {
  6555. global $x0b;
  6556. global $x0c;
  6557. global $x0d;
  6558. global $x0e;
  6559. global $x0f;
  6560. global $x10;
  6561. global $x11;
  6562. global $x12;
  6563. global $x13;
  6564. global $x14;
  6565. global $x15;
  6566. global $x16;
  6567. global $x17;
  6568. global $x18;
  6569. global $x19;
  6570. global $x1a;
  6571. global $x1b;
  6572. global $x1c;
  6573. global $x1d;
  6574. global $x1e;
  6575. global $x1f;
  6576. global $x20;
  6577. global $x21;
  6578. global $x22;
  6579. global $x23;
  6580. global $x24;
  6581. global $x25;
  6582. global $x26;
  6583. global $x27;
  6584. global $x28;
  6585. global $x29;
  6586. global $x2a;
  6587. global $x2b;
  6588. global $x2c;
  6589. global $x2d;
  6590. global $x2e;
  6591. global $x2f;
  6592. global $x30;
  6593. global $x31;
  6594. global $x32;
  6595. global $x33;
  6596. global $x34;
  6597. global $x35;
  6598. global $x36;
  6599. global $x37;
  6600. global $x38;
  6601. global $x39;
  6602. global $x3a;
  6603. global $x3b;
  6604. global $x3c;
  6605. global $x3d;
  6606. global $x3e;
  6607. global $x3f;
  6608. global $x40;
  6609. global $x41;
  6610. global $x42;
  6611. global $x43;
  6612. global $x44;
  6613. global $x45;
  6614. global $x46;
  6615. global $x47;
  6616. global $x48;
  6617. global $x49;
  6618. global $x4a;
  6619. global $x4b;
  6620. global $x4c;
  6621. global $x4d;
  6622. global $x4e;
  6623. global $x4f;
  6624. global $x50;
  6625. global $x51;
  6626. global $x52;
  6627. global $x53;
  6628. global $x54;
  6629.  
  6630. return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( '/^[A-Za-z]$/', $eafcfgbgeg ) );
  6631. }
  6632.  
  6633. function is_alphanumeric($eafcfgbgeg) {
  6634. global $x0b;
  6635. global $x0c;
  6636. global $x0d;
  6637. global $x0e;
  6638. global $x0f;
  6639. global $x10;
  6640. global $x11;
  6641. global $x12;
  6642. global $x13;
  6643. global $x14;
  6644. global $x15;
  6645. global $x16;
  6646. global $x17;
  6647. global $x18;
  6648. global $x19;
  6649. global $x1a;
  6650. global $x1b;
  6651. global $x1c;
  6652. global $x1d;
  6653. global $x1e;
  6654. global $x1f;
  6655. global $x20;
  6656. global $x21;
  6657. global $x22;
  6658. global $x23;
  6659. global $x24;
  6660. global $x25;
  6661. global $x26;
  6662. global $x27;
  6663. global $x28;
  6664. global $x29;
  6665. global $x2a;
  6666. global $x2b;
  6667. global $x2c;
  6668. global $x2d;
  6669. global $x2e;
  6670. global $x2f;
  6671. global $x30;
  6672. global $x31;
  6673. global $x32;
  6674. global $x33;
  6675. global $x34;
  6676. global $x35;
  6677. global $x36;
  6678. global $x37;
  6679. global $x38;
  6680. global $x39;
  6681. global $x3a;
  6682. global $x3b;
  6683. global $x3c;
  6684. global $x3d;
  6685. global $x3e;
  6686. global $x3f;
  6687. global $x40;
  6688. global $x41;
  6689. global $x42;
  6690. global $x43;
  6691. global $x44;
  6692. global $x45;
  6693. global $x46;
  6694. global $x47;
  6695. global $x48;
  6696. global $x49;
  6697. global $x4a;
  6698. global $x4b;
  6699. global $x4c;
  6700. global $x4d;
  6701. global $x4e;
  6702. global $x4f;
  6703. global $x50;
  6704. global $x51;
  6705. global $x52;
  6706. global $x53;
  6707. global $x54;
  6708.  
  6709. return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( '' . '/' ) . '^' ) . '[a-zA-Z0-9 ]+$/', $eafcfgbgeg ) );
  6710. }
  6711.  
  6712. function is_alphadash($eafcfgbgeg) {
  6713. global $x0b;
  6714. global $x0c;
  6715. global $x0d;
  6716. global $x0e;
  6717. global $x0f;
  6718. global $x10;
  6719. global $x11;
  6720. global $x12;
  6721. global $x13;
  6722. global $x14;
  6723. global $x15;
  6724. global $x16;
  6725. global $x17;
  6726. global $x18;
  6727. global $x19;
  6728. global $x1a;
  6729. global $x1b;
  6730. global $x1c;
  6731. global $x1d;
  6732. global $x1e;
  6733. global $x1f;
  6734. global $x20;
  6735. global $x21;
  6736. global $x22;
  6737. global $x23;
  6738. global $x24;
  6739. global $x25;
  6740. global $x26;
  6741. global $x27;
  6742. global $x28;
  6743. global $x29;
  6744. global $x2a;
  6745. global $x2b;
  6746. global $x2c;
  6747. global $x2d;
  6748. global $x2e;
  6749. global $x2f;
  6750. global $x30;
  6751. global $x31;
  6752. global $x32;
  6753. global $x33;
  6754. global $x34;
  6755. global $x35;
  6756. global $x36;
  6757. global $x37;
  6758. global $x38;
  6759. global $x39;
  6760. global $x3a;
  6761. global $x3b;
  6762. global $x3c;
  6763. global $x3d;
  6764. global $x3e;
  6765. global $x3f;
  6766. global $x40;
  6767. global $x41;
  6768. global $x42;
  6769. global $x43;
  6770. global $x44;
  6771. global $x45;
  6772. global $x46;
  6773. global $x47;
  6774. global $x48;
  6775. global $x49;
  6776. global $x4a;
  6777. global $x4b;
  6778. global $x4c;
  6779. global $x4d;
  6780. global $x4e;
  6781. global $x4f;
  6782. global $x50;
  6783. global $x51;
  6784. global $x52;
  6785. global $x53;
  6786. global $x54;
  6787.  
  6788. return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( ( '' . '/' ) . '^' ) . '[' ) . 'a-zA-Z0-9 -_]+$/', $eafcfgbgeg ) );
  6789. }
  6790.  
  6791. function is_numericdash($eafcfgbgeg) {
  6792. global $x0b;
  6793. global $x0c;
  6794. global $x0d;
  6795. global $x0e;
  6796. global $x0f;
  6797. global $x10;
  6798. global $x11;
  6799. global $x12;
  6800. global $x13;
  6801. global $x14;
  6802. global $x15;
  6803. global $x16;
  6804. global $x17;
  6805. global $x18;
  6806. global $x19;
  6807. global $x1a;
  6808. global $x1b;
  6809. global $x1c;
  6810. global $x1d;
  6811. global $x1e;
  6812. global $x1f;
  6813. global $x20;
  6814. global $x21;
  6815. global $x22;
  6816. global $x23;
  6817. global $x24;
  6818. global $x25;
  6819. global $x26;
  6820. global $x27;
  6821. global $x28;
  6822. global $x29;
  6823. global $x2a;
  6824. global $x2b;
  6825. global $x2c;
  6826. global $x2d;
  6827. global $x2e;
  6828. global $x2f;
  6829. global $x30;
  6830. global $x31;
  6831. global $x32;
  6832. global $x33;
  6833. global $x34;
  6834. global $x35;
  6835. global $x36;
  6836. global $x37;
  6837. global $x38;
  6838. global $x39;
  6839. global $x3a;
  6840. global $x3b;
  6841. global $x3c;
  6842. global $x3d;
  6843. global $x3e;
  6844. global $x3f;
  6845. global $x40;
  6846. global $x41;
  6847. global $x42;
  6848. global $x43;
  6849. global $x44;
  6850. global $x45;
  6851. global $x46;
  6852. global $x47;
  6853. global $x48;
  6854. global $x49;
  6855. global $x4a;
  6856. global $x4b;
  6857. global $x4c;
  6858. global $x4d;
  6859. global $x4e;
  6860. global $x4f;
  6861. global $x50;
  6862. global $x51;
  6863. global $x52;
  6864. global $x53;
  6865. global $x54;
  6866.  
  6867. return ( empty( $eafcfgbgeg ) || $dhbagcgcjc( ( ( '' . '/' ) . '^' ) . '[0-9.-]+$/', $eafcfgbgeg ) );
  6868. }
  6869.  
  6870. function is_email($gcdgijcgd) {
  6871. global $x0b;
  6872. global $x0c;
  6873. global $x0d;
  6874. global $x0e;
  6875. global $x0f;
  6876. global $x10;
  6877. global $x11;
  6878. global $x12;
  6879. global $x13;
  6880. global $x14;
  6881. global $x15;
  6882. global $x16;
  6883. global $x17;
  6884. global $x18;
  6885. global $x19;
  6886. global $x1a;
  6887. global $x1b;
  6888. global $x1c;
  6889. global $x1d;
  6890. global $x1e;
  6891. global $x1f;
  6892. global $x20;
  6893. global $x21;
  6894. global $x22;
  6895. global $x23;
  6896. global $x24;
  6897. global $x25;
  6898. global $x26;
  6899. global $x27;
  6900. global $x28;
  6901. global $x29;
  6902. global $x2a;
  6903. global $x2b;
  6904. global $x2c;
  6905. global $x2d;
  6906. global $x2e;
  6907. global $x2f;
  6908. global $x30;
  6909. global $x31;
  6910. global $x32;
  6911. global $x33;
  6912. global $x34;
  6913. global $x35;
  6914. global $x36;
  6915. global $x37;
  6916. global $x38;
  6917. global $x39;
  6918. global $x3a;
  6919. global $x3b;
  6920. global $x3c;
  6921. global $x3d;
  6922. global $x3e;
  6923. global $x3f;
  6924. global $x40;
  6925. global $x41;
  6926. global $x42;
  6927. global $x43;
  6928. global $x44;
  6929. global $x45;
  6930. global $x46;
  6931. global $x47;
  6932. global $x48;
  6933. global $x49;
  6934. global $x4a;
  6935. global $x4b;
  6936. global $x4c;
  6937. global $x4d;
  6938. global $x4e;
  6939. global $x4f;
  6940. global $x50;
  6941. global $x51;
  6942. global $x52;
  6943. global $x53;
  6944. global $x54;
  6945.  
  6946. return ( empty( $gcdgijcgd ) || $bhjchfgddi( '' . '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', $cichchgfhf( $gcdgijcgd ) ) );
  6947. }
  6948.  
  6949. function are_numeric($chjbhdhehh) {
  6950. global $x0b;
  6951. global $x0c;
  6952. global $x0d;
  6953. global $x0e;
  6954. global $x0f;
  6955. global $x10;
  6956. global $x11;
  6957. global $x12;
  6958. global $x13;
  6959. global $x14;
  6960. global $x15;
  6961. global $x16;
  6962. global $x17;
  6963. global $x18;
  6964. global $x19;
  6965. global $x1a;
  6966. global $x1b;
  6967. global $x1c;
  6968. global $x1d;
  6969. global $x1e;
  6970. global $x1f;
  6971. global $x20;
  6972. global $x21;
  6973. global $x22;
  6974. global $x23;
  6975. global $x24;
  6976. global $x25;
  6977. global $x26;
  6978. global $x27;
  6979. global $x28;
  6980. global $x29;
  6981. global $x2a;
  6982. global $x2b;
  6983. global $x2c;
  6984. global $x2d;
  6985. global $x2e;
  6986. global $x2f;
  6987. global $x30;
  6988. global $x31;
  6989. global $x32;
  6990. global $x33;
  6991. global $x34;
  6992. global $x35;
  6993. global $x36;
  6994. global $x37;
  6995. global $x38;
  6996. global $x39;
  6997. global $x3a;
  6998. global $x3b;
  6999. global $x3c;
  7000. global $x3d;
  7001. global $x3e;
  7002. global $x3f;
  7003. global $x40;
  7004. global $x41;
  7005. global $x42;
  7006. global $x43;
  7007. global $x44;
  7008. global $x45;
  7009. global $x46;
  7010. global $x47;
  7011. global $x48;
  7012. global $x49;
  7013. global $x4a;
  7014. global $x4b;
  7015. global $x4c;
  7016. global $x4d;
  7017. global $x4e;
  7018. global $x4f;
  7019. global $x50;
  7020. global $x51;
  7021. global $x52;
  7022. global $x53;
  7023. global $x54;
  7024.  
  7025. if (!$dcjbfhhefa( $chjbhdhehh )) {
  7026. return ( empty( $chjbhdhehh ) || $dchbacbcjc( $chjbhdhehh ) );
  7027. }
  7028.  
  7029.  
  7030. foreach ($chjbhdhehh as $eafcfgbgeg) {
  7031. if (( !empty( $eafcfgbgeg ) && !$dchbacbcjc( $eafcfgbgeg ) )) {
  7032. return false;
  7033. continue;
  7034. }
  7035. }
  7036.  
  7037. return true;
  7038. }
  7039.  
  7040. function x0d() {
  7041. global $x0b;
  7042. global $x0c;
  7043. global $x0d;
  7044. global $x0e;
  7045. global $x0f;
  7046. global $x10;
  7047. global $x11;
  7048. global $x12;
  7049. global $x13;
  7050. global $x14;
  7051. global $x15;
  7052. global $x16;
  7053. global $x17;
  7054. global $x18;
  7055. global $x19;
  7056. global $x1a;
  7057. global $x1b;
  7058. global $x1c;
  7059. global $x1d;
  7060. global $x1e;
  7061. global $x1f;
  7062. global $x20;
  7063. global $x21;
  7064. global $x22;
  7065. global $x23;
  7066. global $x24;
  7067. global $x25;
  7068. global $x26;
  7069. global $x27;
  7070. global $x28;
  7071. global $x29;
  7072. global $x2a;
  7073. global $x2b;
  7074. global $x2c;
  7075. global $x2d;
  7076. global $x2e;
  7077. global $x2f;
  7078. global $x30;
  7079. global $x31;
  7080. global $x32;
  7081. global $x33;
  7082. global $x34;
  7083. global $x35;
  7084. global $x36;
  7085. global $x37;
  7086. global $x38;
  7087. global $x39;
  7088. global $x3a;
  7089. global $x3b;
  7090. global $x3c;
  7091. global $x3d;
  7092. global $x3e;
  7093. global $x3f;
  7094. global $x40;
  7095. global $x41;
  7096. global $x42;
  7097. global $x43;
  7098. global $x44;
  7099. global $x45;
  7100. global $x46;
  7101. global $x47;
  7102. global $x48;
  7103. global $x49;
  7104. global $x4a;
  7105. global $x4b;
  7106. global $x4c;
  7107. global $x4d;
  7108. global $x4e;
  7109. global $x4f;
  7110. global $x50;
  7111. global $x51;
  7112. global $x52;
  7113. global $x53;
  7114. global $x54;
  7115.  
  7116. x0c( );
  7117. }
  7118.  
  7119. function valid_referral($ciddaeiga) {
  7120. global $x0b;
  7121. global $x0c;
  7122. global $x0d;
  7123. global $x0e;
  7124. global $x0f;
  7125. global $x10;
  7126. global $x11;
  7127. global $x12;
  7128. global $x13;
  7129. global $x14;
  7130. global $x15;
  7131. global $x16;
  7132. global $x17;
  7133. global $x18;
  7134. global $x19;
  7135. global $x1a;
  7136. global $x1b;
  7137. global $x1c;
  7138. global $x1d;
  7139. global $x1e;
  7140. global $x1f;
  7141. global $x20;
  7142. global $x21;
  7143. global $x22;
  7144. global $x23;
  7145. global $x24;
  7146. global $x25;
  7147. global $x26;
  7148. global $x27;
  7149. global $x28;
  7150. global $x29;
  7151. global $x2a;
  7152. global $x2b;
  7153. global $x2c;
  7154. global $x2d;
  7155. global $x2e;
  7156. global $x2f;
  7157. global $x30;
  7158. global $x31;
  7159. global $x32;
  7160. global $x33;
  7161. global $x34;
  7162. global $x35;
  7163. global $x36;
  7164. global $x37;
  7165. global $x38;
  7166. global $x39;
  7167. global $x3a;
  7168. global $x3b;
  7169. global $x3c;
  7170. global $x3d;
  7171. global $x3e;
  7172. global $x3f;
  7173. global $x40;
  7174. global $x41;
  7175. global $x42;
  7176. global $x43;
  7177. global $x44;
  7178. global $x45;
  7179. global $x46;
  7180. global $x47;
  7181. global $x48;
  7182. global $x49;
  7183. global $x4a;
  7184. global $x4b;
  7185. global $x4c;
  7186. global $x4d;
  7187. global $x4e;
  7188. global $x4f;
  7189. global $x50;
  7190. global $x51;
  7191. global $x52;
  7192. global $x53;
  7193. global $x54;
  7194.  
  7195. if ($ciddaeiga < 1) {
  7196. return false;
  7197. }
  7198.  
  7199. $decgaggbba = query_value( 'SELECT user_name FROM members WHERE member_id=%s', $ciddaeiga );
  7200.  
  7201. if (!empty( $decgaggbba )) {
  7202. return true;
  7203. }
  7204.  
  7205. return false;
  7206. }
  7207.  
  7208. function url_get($fbgdbjbfc, $ebaiefheid, $bbiafdjccg = 1) {
  7209. global $x0b;
  7210. global $x0c;
  7211. global $x0d;
  7212. global $x0e;
  7213. global $x0f;
  7214. global $x10;
  7215. global $x11;
  7216. global $x12;
  7217. global $x13;
  7218. global $x14;
  7219. global $x15;
  7220. global $x16;
  7221. global $x17;
  7222. global $x18;
  7223. global $x19;
  7224. global $x1a;
  7225. global $x1b;
  7226. global $x1c;
  7227. global $x1d;
  7228. global $x1e;
  7229. global $x1f;
  7230. global $x20;
  7231. global $x21;
  7232. global $x22;
  7233. global $x23;
  7234. global $x24;
  7235. global $x25;
  7236. global $x26;
  7237. global $x27;
  7238. global $x28;
  7239. global $x29;
  7240. global $x2a;
  7241. global $x2b;
  7242. global $x2c;
  7243. global $x2d;
  7244. global $x2e;
  7245. global $x2f;
  7246. global $x30;
  7247. global $x31;
  7248. global $x32;
  7249. global $x33;
  7250. global $x34;
  7251. global $x35;
  7252. global $x36;
  7253. global $x37;
  7254. global $x38;
  7255. global $x39;
  7256. global $x3a;
  7257. global $x3b;
  7258. global $x3c;
  7259. global $x3d;
  7260. global $x3e;
  7261. global $x3f;
  7262. global $x40;
  7263. global $x41;
  7264. global $x42;
  7265. global $x43;
  7266. global $x44;
  7267. global $x45;
  7268. global $x46;
  7269. global $x47;
  7270. global $x48;
  7271. global $x49;
  7272. global $x4a;
  7273. global $x4b;
  7274. global $x4c;
  7275. global $x4d;
  7276. global $x4e;
  7277. global $x4f;
  7278. global $x50;
  7279. global $x51;
  7280. global $x52;
  7281. global $x53;
  7282. global $x54;
  7283.  
  7284. $cihegfjbif = $bhabaiicdf( );
  7285. $hijfajai( $cihegfjbif, CURLOPT_URL, $fbgdbjbfc );
  7286. $hijfajai( $cihegfjbif, CURLOPT_POST, $bbiafdjccg );
  7287. $hijfajai( $cihegfjbif, CURLOPT_POSTFIELDS, $ebaiefheid );
  7288. $hijfajai( $cihegfjbif, CURLOPT_SSL_VERIFYPEER, FALSE );
  7289. $hijfajai( $cihegfjbif, CURLOPT_RETURNTRANSFER, 1 );
  7290. $bgdefebidg = $chaedehdbg( $cihegfjbif );
  7291. $bgdiaefjdd( $cihegfjbif );
  7292. return $bgdefebidg;
  7293. }
  7294.  
  7295. function referrals_enabled() {
  7296. global $x0b;
  7297. global $x0c;
  7298. global $x0d;
  7299. global $x0e;
  7300. global $x0f;
  7301. global $x10;
  7302. global $x11;
  7303. global $x12;
  7304. global $x13;
  7305. global $x14;
  7306. global $x15;
  7307. global $x16;
  7308. global $x17;
  7309. global $x18;
  7310. global $x19;
  7311. global $x1a;
  7312. global $x1b;
  7313. global $x1c;
  7314. global $x1d;
  7315. global $x1e;
  7316. global $x1f;
  7317. global $x20;
  7318. global $x21;
  7319. global $x22;
  7320. global $x23;
  7321. global $x24;
  7322. global $x25;
  7323. global $x26;
  7324. global $x27;
  7325. global $x28;
  7326. global $x29;
  7327. global $x2a;
  7328. global $x2b;
  7329. global $x2c;
  7330. global $x2d;
  7331. global $x2e;
  7332. global $x2f;
  7333. global $x30;
  7334. global $x31;
  7335. global $x32;
  7336. global $x33;
  7337. global $x34;
  7338. global $x35;
  7339. global $x36;
  7340. global $x37;
  7341. global $x38;
  7342. global $x39;
  7343. global $x3a;
  7344. global $x3b;
  7345. global $x3c;
  7346. global $x3d;
  7347. global $x3e;
  7348. global $x3f;
  7349. global $x40;
  7350. global $x41;
  7351. global $x42;
  7352. global $x43;
  7353. global $x44;
  7354. global $x45;
  7355. global $x46;
  7356. global $x47;
  7357. global $x48;
  7358. global $x49;
  7359. global $x4a;
  7360. global $x4b;
  7361. global $x4c;
  7362. global $x4d;
  7363. global $x4e;
  7364. global $x4f;
  7365. global $x50;
  7366. global $x51;
  7367. global $x52;
  7368. global $x53;
  7369. global $x54;
  7370. global $settings;
  7371.  
  7372. return ( ( ( $bcgahficac['deposit_referals'] || $bcgahficac['balance_referals'] ) || $bcgahficac['bonus_referals'] ) || $bcgahficac['earnings_referals'] );
  7373. }
  7374.  
  7375. function scheduled_pay() {
  7376. global $x0b;
  7377. global $x0c;
  7378. global $x0d;
  7379. global $x0e;
  7380. global $x0f;
  7381. global $x10;
  7382. global $x11;
  7383. global $x12;
  7384. global $x13;
  7385. global $x14;
  7386. global $x15;
  7387. global $x16;
  7388. global $x17;
  7389. global $x18;
  7390. global $x19;
  7391. global $x1a;
  7392. global $x1b;
  7393. global $x1c;
  7394. global $x1d;
  7395. global $x1e;
  7396. global $x1f;
  7397. global $x20;
  7398. global $x21;
  7399. global $x22;
  7400. global $x23;
  7401. global $x24;
  7402. global $x25;
  7403. global $x26;
  7404. global $x27;
  7405. global $x28;
  7406. global $x29;
  7407. global $x2a;
  7408. global $x2b;
  7409. global $x2c;
  7410. global $x2d;
  7411. global $x2e;
  7412. global $x2f;
  7413. global $x30;
  7414. global $x31;
  7415. global $x32;
  7416. global $x33;
  7417. global $x34;
  7418. global $x35;
  7419. global $x36;
  7420. global $x37;
  7421. global $x38;
  7422. global $x39;
  7423. global $x3a;
  7424. global $x3b;
  7425. global $x3c;
  7426. global $x3d;
  7427. global $x3e;
  7428. global $x3f;
  7429. global $x40;
  7430. global $x41;
  7431. global $x42;
  7432. global $x43;
  7433. global $x44;
  7434. global $x45;
  7435. global $x46;
  7436. global $x47;
  7437. global $x48;
  7438. global $x49;
  7439. global $x4a;
  7440. global $x4b;
  7441. global $x4c;
  7442. global $x4d;
  7443. global $x4e;
  7444. global $x4f;
  7445. global $x50;
  7446. global $x51;
  7447. global $x52;
  7448. global $x53;
  7449. global $x54;
  7450.  
  7451. $cdhhbbadbd = 0;
  7452. $hicedifch = 0;
  7453. $dfgfegdcb = 0;
  7454. x0d( );
  7455. $djdfhajhce = query_array( 'SELECT * FROM payments WHERE status=\'Processing\';' );
  7456.  
  7457. foreach ($djdfhajhce as $dhiiajaaah) {
  7458. $dijeehdhci = 0;
  7459. $bgeajibigf = $dhddgedaaf( $dhiiajaaah['schedule'] );
  7460.  
  7461. if (( !empty( $dhiiajaaah['prorate'] ) && $dhiiajaaah['prorate'] != '0000-00-00 00:00:00' )) {
  7462. $bidajcfjbg = $dhddgedaaf( $dhiiajaaah['prorate'] );
  7463. } else {
  7464. $bidajcfjbg = 0;
  7465. }
  7466.  
  7467.  
  7468. if (( 0 < $bidajcfjbg && 0 < $bgeajibigf - $bidajcfjbg )) {
  7469. $dfgfegdcb = $didheajchj( $cfcbcjbfci( $bgeajibigf - $bidajcfjbg ) / 86400 );
  7470. $cdhhbbadbd = $dhiiajaaah['amount'] / $dfgfegdcb;
  7471. }
  7472.  
  7473. $bfbjaddgbg = query_row( 'SELECT * FROM programs WHERE program_id=%s', $dhiiajaaah['program_id'] );
  7474. $cgaeifbfjj = query_array( 'SELECT * FROM deposits WHERE status=\'enabled\' AND program_id=%s', $dhiiajaaah['program_id'] );
  7475.  
  7476. foreach ($cgaeifbfjj as $cjdjcgijdj) {
  7477. $dgiheaehdd = false;
  7478.  
  7479. if (0 < $bfbjaddgbg['duration']) {
  7480. $jcgbcjafa = $dhddgedaaf( '+' . $bfbjaddgbg['duration'] . ' day', $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) );
  7481.  
  7482. if ($jcgbcjafa < $bgeajibigf) {
  7483. $dgiheaehdd = true;
  7484. }
  7485. }
  7486.  
  7487. if (( $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) < $bgeajibigf && !$dgiheaehdd )) {
  7488. if (( 0 < $bidajcfjbg && $bidajcfjbg <= $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) )) {
  7489. $cbfacidjgb = $didheajchj( $cfcbcjbfci( $bgeajibigf - $dhddgedaaf( $cjdjcgijdj['deposit_date'] ) ) / 86400 );
  7490. $hicedifch = $cdhhbbadbd * $cbfacidjgb;
  7491. } else {
  7492. $hicedifch = $dhiiajaaah['amount'];
  7493. }
  7494.  
  7495.  
  7496. if (0 < $hicedifch) {
  7497. pay_earnings( $cjdjcgijdj, $bgeajibigf, $hicedifch, $dhiiajaaah['memo'], $dhiiajaaah['payment_type'], $bfbjaddgbg );
  7498.  
  7499. if ($dhiiajaaah['payment_type'] == 'Amount') {
  7500. $dijeehdhci += $hicedifch;
  7501. continue;
  7502. }
  7503.  
  7504. $dijeehdhci += $hicedifch * $cjdjcgijdj['amount'] / 100;
  7505. continue;
  7506. }
  7507.  
  7508. continue;
  7509. }
  7510. }
  7511.  
  7512. query_update( 'payments', 'payment_id', $dhiiajaaah['payment_id'], array( 'status' => 'Paid', 'total_paid' => $bgjcjgaghd( $dijeehdhci, 2 ) ), false );
  7513. }
  7514.  
  7515. }
  7516.  
  7517. function get_member_id($diechbfjeh) {
  7518. global $x0b;
  7519. global $x0c;
  7520. global $x0d;
  7521. global $x0e;
  7522. global $x0f;
  7523. global $x10;
  7524. global $x11;
  7525. global $x12;
  7526. global $x13;
  7527. global $x14;
  7528. global $x15;
  7529. global $x16;
  7530. global $x17;
  7531. global $x18;
  7532. global $x19;
  7533. global $x1a;
  7534. global $x1b;
  7535. global $x1c;
  7536. global $x1d;
  7537. global $x1e;
  7538. global $x1f;
  7539. global $x20;
  7540. global $x21;
  7541. global $x22;
  7542. global $x23;
  7543. global $x24;
  7544. global $x25;
  7545. global $x26;
  7546. global $x27;
  7547. global $x28;
  7548. global $x29;
  7549. global $x2a;
  7550. global $x2b;
  7551. global $x2c;
  7552. global $x2d;
  7553. global $x2e;
  7554. global $x2f;
  7555. global $x30;
  7556. global $x31;
  7557. global $x32;
  7558. global $x33;
  7559. global $x34;
  7560. global $x35;
  7561. global $x36;
  7562. global $x37;
  7563. global $x38;
  7564. global $x39;
  7565. global $x3a;
  7566. global $x3b;
  7567. global $x3c;
  7568. global $x3d;
  7569. global $x3e;
  7570. global $x3f;
  7571. global $x40;
  7572. global $x41;
  7573. global $x42;
  7574. global $x43;
  7575. global $x44;
  7576. global $x45;
  7577. global $x46;
  7578. global $x47;
  7579. global $x48;
  7580. global $x49;
  7581. global $x4a;
  7582. global $x4b;
  7583. global $x4c;
  7584. global $x4d;
  7585. global $x4e;
  7586. global $x4f;
  7587. global $x50;
  7588. global $x51;
  7589. global $x52;
  7590. global $x53;
  7591. global $x54;
  7592.  
  7593. $dfehfhdhb = query_value( 'SELECT member_id FROM members WHERE user_name =\'%s\';', $diechbfjeh );
  7594.  
  7595. if (empty( $dfehfhdhb )) {
  7596. return 0;
  7597. }
  7598.  
  7599. return $dfehfhdhb;
  7600. }
  7601.  
  7602. function serialize_obj($chhfaahdeb) {
  7603. global $x0b;
  7604. global $x0c;
  7605. global $x0d;
  7606. global $x0e;
  7607. global $x0f;
  7608. global $x10;
  7609. global $x11;
  7610. global $x12;
  7611. global $x13;
  7612. global $x14;
  7613. global $x15;
  7614. global $x16;
  7615. global $x17;
  7616. global $x18;
  7617. global $x19;
  7618. global $x1a;
  7619. global $x1b;
  7620. global $x1c;
  7621. global $x1d;
  7622. global $x1e;
  7623. global $x1f;
  7624. global $x20;
  7625. global $x21;
  7626. global $x22;
  7627. global $x23;
  7628. global $x24;
  7629. global $x25;
  7630. global $x26;
  7631. global $x27;
  7632. global $x28;
  7633. global $x29;
  7634. global $x2a;
  7635. global $x2b;
  7636. global $x2c;
  7637. global $x2d;
  7638. global $x2e;
  7639. global $x2f;
  7640. global $x30;
  7641. global $x31;
  7642. global $x32;
  7643. global $x33;
  7644. global $x34;
  7645. global $x35;
  7646. global $x36;
  7647. global $x37;
  7648. global $x38;
  7649. global $x39;
  7650. global $x3a;
  7651. global $x3b;
  7652. global $x3c;
  7653. global $x3d;
  7654. global $x3e;
  7655. global $x3f;
  7656. global $x40;
  7657. global $x41;
  7658. global $x42;
  7659. global $x43;
  7660. global $x44;
  7661. global $x45;
  7662. global $x46;
  7663. global $x47;
  7664. global $x48;
  7665. global $x49;
  7666. global $x4a;
  7667. global $x4b;
  7668. global $x4c;
  7669. global $x4d;
  7670. global $x4e;
  7671. global $x4f;
  7672. global $x50;
  7673. global $x51;
  7674. global $x52;
  7675. global $x53;
  7676. global $x54;
  7677.  
  7678. return encrypt( $ibdjijefd( $chhfaahdeb ) );
  7679. }
  7680.  
  7681. function deserialize_obj($baghbijhjj) {
  7682. global $x0b;
  7683. global $x0c;
  7684. global $x0d;
  7685. global $x0e;
  7686. global $x0f;
  7687. global $x10;
  7688. global $x11;
  7689. global $x12;
  7690. global $x13;
  7691. global $x14;
  7692. global $x15;
  7693. global $x16;
  7694. global $x17;
  7695. global $x18;
  7696. global $x19;
  7697. global $x1a;
  7698. global $x1b;
  7699. global $x1c;
  7700. global $x1d;
  7701. global $x1e;
  7702. global $x1f;
  7703. global $x20;
  7704. global $x21;
  7705. global $x22;
  7706. global $x23;
  7707. global $x24;
  7708. global $x25;
  7709. global $x26;
  7710. global $x27;
  7711. global $x28;
  7712. global $x29;
  7713. global $x2a;
  7714. global $x2b;
  7715. global $x2c;
  7716. global $x2d;
  7717. global $x2e;
  7718. global $x2f;
  7719. global $x30;
  7720. global $x31;
  7721. global $x32;
  7722. global $x33;
  7723. global $x34;
  7724. global $x35;
  7725. global $x36;
  7726. global $x37;
  7727. global $x38;
  7728. global $x39;
  7729. global $x3a;
  7730. global $x3b;
  7731. global $x3c;
  7732. global $x3d;
  7733. global $x3e;
  7734. global $x3f;
  7735. global $x40;
  7736. global $x41;
  7737. global $x42;
  7738. global $x43;
  7739. global $x44;
  7740. global $x45;
  7741. global $x46;
  7742. global $x47;
  7743. global $x48;
  7744. global $x49;
  7745. global $x4a;
  7746. global $x4b;
  7747. global $x4c;
  7748. global $x4d;
  7749. global $x4e;
  7750. global $x4f;
  7751. global $x50;
  7752. global $x51;
  7753. global $x52;
  7754. global $x53;
  7755. global $x54;
  7756.  
  7757. return $bffehajcgj( decrypt( $baghbijhjj ) );
  7758. }
  7759.  
  7760. function id_processor($cebhfcggbj) {
  7761. global $x0b;
  7762. global $x0c;
  7763. global $x0d;
  7764. global $x0e;
  7765. global $x0f;
  7766. global $x10;
  7767. global $x11;
  7768. global $x12;
  7769. global $x13;
  7770. global $x14;
  7771. global $x15;
  7772. global $x16;
  7773. global $x17;
  7774. global $x18;
  7775. global $x19;
  7776. global $x1a;
  7777. global $x1b;
  7778. global $x1c;
  7779. global $x1d;
  7780. global $x1e;
  7781. global $x1f;
  7782. global $x20;
  7783. global $x21;
  7784. global $x22;
  7785. global $x23;
  7786. global $x24;
  7787. global $x25;
  7788. global $x26;
  7789. global $x27;
  7790. global $x28;
  7791. global $x29;
  7792. global $x2a;
  7793. global $x2b;
  7794. global $x2c;
  7795. global $x2d;
  7796. global $x2e;
  7797. global $x2f;
  7798. global $x30;
  7799. global $x31;
  7800. global $x32;
  7801. global $x33;
  7802. global $x34;
  7803. global $x35;
  7804. global $x36;
  7805. global $x37;
  7806. global $x38;
  7807. global $x39;
  7808. global $x3a;
  7809. global $x3b;
  7810. global $x3c;
  7811. global $x3d;
  7812. global $x3e;
  7813. global $x3f;
  7814. global $x40;
  7815. global $x41;
  7816. global $x42;
  7817. global $x43;
  7818. global $x44;
  7819. global $x45;
  7820. global $x46;
  7821. global $x47;
  7822. global $x48;
  7823. global $x49;
  7824. global $x4a;
  7825. global $x4b;
  7826. global $x4c;
  7827. global $x4d;
  7828. global $x4e;
  7829. global $x4f;
  7830. global $x50;
  7831. global $x51;
  7832. global $x52;
  7833. global $x53;
  7834. global $x54;
  7835.  
  7836. $cffeagiii = '';
  7837. $bjhjhgedcb = '';
  7838.  
  7839. if (!empty( $cebhfcggbj['ATIP_TRANSACTION_ID'] )) {
  7840. $cffeagiii = $cebhfcggbj['ATIP_TRANSACTION_ID'];
  7841. $bjhjhgedcb = 4;
  7842. } else {
  7843. if (!empty( $cebhfcggbj['PAYMENT_BATCH_NUM'] )) {
  7844. $cffeagiii = $cebhfcggbj['PAYMENT_BATCH_NUM'];
  7845.  
  7846. if (!empty( $cebhfcggbj['PAYMENT_METAL_ID'] )) {
  7847. $bjhjhgedcb = 1;
  7848. } else {
  7849. $bjhjhgedcb = 22;
  7850. }
  7851. } else {
  7852. if (!empty( $cebhfcggbj['lr_transfer'] )) {
  7853. $cffeagiii = $cebhfcggbj['lr_transfer'];
  7854. $bjhjhgedcb = 3;
  7855. } else {
  7856. if (!empty( $cebhfcggbj['PAYMENT_REC_ID'] )) {
  7857. $cffeagiii = $cebhfcggbj['PAYMENT_REC_ID'];
  7858. $bjhjhgedcb = 2;
  7859. } else {
  7860. if (!empty( $cebhfcggbj['PMT_BATCH_NUM'] )) {
  7861. $cffeagiii = $cebhfcggbj['PMT_BATCH_NUM'];
  7862. $bjhjhgedcb = 7;
  7863. } else {
  7864. if (!empty( $cebhfcggbj['PAYMENT_BATCH'] )) {
  7865. $cffeagiii = $cebhfcggbj['PAYMENT_BATCH'];
  7866. $bjhjhgedcb = 21;
  7867. } else {
  7868. if (!empty( $cebhfcggbj['transaction_id'] )) {
  7869. $cffeagiii = $cebhfcggbj['transaction_id'];
  7870. $bjhjhgedcb = 23;
  7871. } else {
  7872. if (!empty( $cebhfcggbj['ap_referencenumber'] )) {
  7873. $cffeagiii = $cebhfcggbj['ap_referencenumber'];
  7874. $bjhjhgedcb = 6;
  7875. } else {
  7876. $bjhjhgedcb = 'ERROR';
  7877. }
  7878. }
  7879. }
  7880. }
  7881. }
  7882. }
  7883. }
  7884. }
  7885.  
  7886. return array( $bjhjhgedcb, $cffeagiii );
  7887. }
  7888.  
  7889. $x0b = 'abs';
  7890. $x0c = 'array_map';
  7891. $x0d = 'array_merge';
  7892. $x0e = 'base64_encode';
  7893. $x0f = 'base64_decode';
  7894. $x10 = 'chr';
  7895. $x11 = 'count';
  7896. $x12 = 'curl_init';
  7897. $x13 = 'curl_setopt';
  7898. $x14 = 'curl_exec';
  7899. $x15 = 'curl_close';
  7900. $x16 = 'date';
  7901. $x17 = 'eregi';
  7902. $x18 = 'explode';
  7903. $x19 = 'escapeshellcmd';
  7904. $x1a = 'fclose';
  7905. $x1b = 'file_get_contents';
  7906. $x1c = 'feof';
  7907. $x1d = 'fgets';
  7908. $x1e = 'fopen';
  7909. $x1f = 'get_magic_quotes_gpc';
  7910. $x20 = 'get_magic_quotes_runtime';
  7911. $x21 = 'fwrite';
  7912. $x22 = 'function_exists';
  7913. $x23 = 'header';
  7914. $x24 = 'implode';
  7915. $x25 = 'in_array';
  7916. $x26 = 'is_array';
  7917. $x27 = 'is_dir';
  7918. $x28 = 'is_numeric';
  7919. $x29 = 'mail';
  7920. $x2a = 'md5';
  7921. $x2b = 'min';
  7922. $x2c = 'mysql_connect';
  7923. $x2d = 'mysql_error';
  7924. $x2e = 'mysql_fetch_assoc';
  7925. $x2f = 'mysql_fetch_array';
  7926. $x30 = 'mt_rand';
  7927. $x31 = 'mysql_affected_rows';
  7928. $x32 = 'mysql_real_escape_string';
  7929. $x33 = 'mysql_query';
  7930. $x34 = 'mysql_num_rows';
  7931. $x35 = 'mysql_insert_id';
  7932. $x36 = 'mysql_field_name';
  7933. $x37 = 'mysql_fetch_row';
  7934. $x38 = 'mysql_select_db';
  7935. $x39 = 'number_format';
  7936. $x3a = 'pclose';
  7937. $x3b = 'popen';
  7938. $x3c = 'preg_replace';
  7939. $x3d = 'preg_match_all';
  7940. $x3e = 'preg_match';
  7941. $x3f = 'rawurlencode';
  7942. $x40 = 'rawurldecode';
  7943. $x41 = 'round';
  7944. $x42 = 'serialize';
  7945. $x43 = 'set_magic_quotes_runtime';
  7946. $x44 = 'setcookie';
  7947. $x45 = 'sha1';
  7948. $x46 = 'str_replace';
  7949. $x47 = 'stripslashes';
  7950. $x48 = 'strlen';
  7951. $x49 = 'stristr';
  7952. $x4a = 'strtotime';
  7953. $x4b = 'strtoupper';
  7954. $x4c = 'substr';
  7955. $x4d = 'strpos';
  7956. $x4e = 'strstr';
  7957. $x4f = 'strtolower';
  7958. $x50 = 'time';
  7959. $x51 = 'trim';
  7960. $x52 = 'usleep';
  7961. $x53 = 'unserialize';
  7962. $x54 = 'vsprintf';
  7963.  
  7964. if ($x1f( )) {
  7965. function stripslashes_deep($eafcfgbgeg) {
  7966. global $x0b;
  7967. global $x0c;
  7968. global $x0d;
  7969. global $x0e;
  7970. global $x0f;
  7971. global $x10;
  7972. global $x11;
  7973. global $x12;
  7974. global $x13;
  7975. global $x14;
  7976. global $x15;
  7977. global $x16;
  7978. global $x17;
  7979. global $x18;
  7980. global $x19;
  7981. global $x1a;
  7982. global $x1b;
  7983. global $x1c;
  7984. global $x1d;
  7985. global $x1e;
  7986. global $x1f;
  7987. global $x20;
  7988. global $x21;
  7989. global $x22;
  7990. global $x23;
  7991. global $x24;
  7992. global $x25;
  7993. global $x26;
  7994. global $x27;
  7995. global $x28;
  7996. global $x29;
  7997. global $x2a;
  7998. global $x2b;
  7999. global $x2c;
  8000. global $x2d;
  8001. global $x2e;
  8002. global $x2f;
  8003. global $x30;
  8004. global $x31;
  8005. global $x32;
  8006. global $x33;
  8007. global $x34;
  8008. global $x35;
  8009. global $x36;
  8010. global $x37;
  8011. global $x38;
  8012. global $x39;
  8013. global $x3a;
  8014. global $x3b;
  8015. global $x3c;
  8016. global $x3d;
  8017. global $x3e;
  8018. global $x3f;
  8019. global $x40;
  8020. global $x41;
  8021. global $x42;
  8022. global $x43;
  8023. global $x44;
  8024. global $x45;
  8025. global $x46;
  8026. global $x47;
  8027. global $x48;
  8028. global $x49;
  8029. global $x4a;
  8030. global $x4b;
  8031. global $x4c;
  8032. global $x4d;
  8033. global $x4e;
  8034. global $x4f;
  8035. global $x50;
  8036. global $x51;
  8037. global $x52;
  8038. global $x53;
  8039. global $x54;
  8040.  
  8041. $eafcfgbgeg = ($dcjbfhhefa( $eafcfgbgeg ) ? $djhfifjcge( 'stripslashes_deep', $eafcfgbgeg ) : $ebfdgjifae( $eafcfgbgeg ));
  8042. return $eafcfgbgeg;
  8043. }
  8044.  
  8045. $_POST = $x0c( 'stripslashes_deep', $_POST );
  8046. $_GET = $x0c( 'stripslashes_deep', $_GET );
  8047. $_COOKIE = $x0c( 'stripslashes_deep', $_COOKIE );
  8048. $_REQUEST = $x0c( 'stripslashes_deep', $_REQUEST );
  8049. }
  8050.  
  8051. if ($x20( )) {
  8052. $x43( 0 );
  8053. }
  8054.  
  8055. $fdfd = 'store.cache needs to be writtable by the script.';
  8056. $r2d2 = 'JhkjhKJH783Hg';
  8057. define( 'EMAIL_NOTFOUND', 1 );
  8058. define( 'USERNAME_NOTFOUND', 2 );
  8059. define( 'PASSWORD_SENT', 3 );
  8060. define( 'USERNAME_SENT', 4 );
  8061. define( 'DUPLICATE_EMAIL', 1 );
  8062. define( 'DUPLICATE_USERNAME', 2 );
  8063. define( 'LOGIN_OK', 1 );
  8064. define( 'LOGIN_ACTIVATE', 2 );
  8065. define( 'LOGIN_SUSPENDED', 3 );
  8066. define( 'LOGIN_WRONGCODE', 4 );
  8067. define( 'LOGIN_WRONGUSERNAME', 5 );
  8068. define( 'LOGIN_WRONGPASSWORD', 6 );
  8069. define( 'LOGIN_CHECKIP', 7 );
  8070. define( 'SOURCE_BALANCE', 1 );
  8071. define( 'SOURCE_EXTERNAL', 2 );
  8072. define( 'SOURCE_BONUS', 3 );
  8073. define( 'SOURCE_MANUAL', 4 );
  8074. define( 'NOT_ENOUGH_FUNDS', 1 );
  8075. require_once( 'settings.php' );
  8076. require_once( 'rocka.php' );
  8077. require_once( 'vmoney.class.php' );
  8078. require_once( 'LibertyReserve.class.php' );
  8079. require_once( 'Egold.class.php' );
  8080. require_once( 'Pecunix.class.php' );
  8081. require_once( 'Ebullion.class.php' );
  8082. require_once( 'SolidTrustPay.class.php' );
  8083. require_once( 'processors/AlterGold.php' );
  8084. require_once( 'processors/C-Gold.php' );
  8085. require_once( 'processors/PerfectMoney.php' );
  8086. require_once( 'libs/Smarty.class.php' );
  8087. require_once( 'includes/session.class.php' );
  8088.  
  8089. if (!isset( $smarty )) {
  8090. $smarty = new Smarty( );
  8091. }
  8092.  
  8093. if (!isset( $bf )) {
  8094. $bf = new Crypt_Blowfish( );
  8095. }
  8096.  
  8097. if (( !empty( $_GET['lang'] ) || !empty( $_COOKIE['lang'] ) )) {
  8098. if ($_GET['lang'] == 'default') {
  8099. require_once( 'templates/lang.inc.php' );
  8100.  
  8101. if (!empty( $_COOKIE['lang'] )) {
  8102. $x44( 'lang', '', $x50( ) - 3600 );
  8103. }
  8104. } else {
  8105. if (!empty( $_GET['lang'] )) {
  8106. if ($x27( 'templates/' . $_GET['lang'] )) {
  8107. $slang = $_GET['lang'];
  8108. $x44( 'lang', $_GET['lang'] );
  8109. }
  8110. } else {
  8111. $slang = $_COOKIE['lang'];
  8112. }
  8113.  
  8114.  
  8115. if ($slang) {
  8116. $smarty->template_dir = ( '' . 't' ) . 'emplates/' . $slang;
  8117. $smarty->compile_dir = ( ( '' . 't' ) . 'e' ) . 'mplates_c/' . $slang;
  8118. require_once( ( ( ( ( ( ( ( ( ( ( ( ( ( '' . 't' ) . 'e' ) . 'm' ) . 'p' ) . 'l' ) . 'a' ) . 't' ) . 'e' ) . 's' ) . '/' ) . $slang . '/' ) . 'l' ) . 'a' ) . 'ng.inc.php' );
  8119. }
  8120. }
  8121. } else {
  8122. require_once( 'templates/lang.inc.php' );
  8123. }
  8124.  
  8125.  
  8126. if (!isset( $mysql_database )) {
  8127. $x23( 'Location: install.php' );
  8128. exit( );
  8129. }
  8130.  
  8131. $settings = read_settings( );
  8132. $session = new Session( $settings['session_length'] );
  8133.  
  8134. if (( ( $settings['use_https'] == true && ( empty( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) ) && empty( $secure ) )) {
  8135. $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
  8136.  
  8137. if ($_SERVER['QUERY_STRING']) {
  8138. $url .= '?' . $_SERVER['QUERY_STRING'];
  8139. }
  8140.  
  8141. $x23( 'refresh: 0; url=' . $url );
  8142. exit( );
  8143. }
  8144.  
  8145. $err = array( );
  8146.  
  8147. if (( !empty( $_REQUEST['ref'] ) && $x28( $_REQUEST['ref'] ) )) {
  8148. set_refcookie( $_REQUEST['ref'] );
  8149. } else {
  8150. set_refcookie( );
  8151. }
  8152.  
  8153. $glob = $session->get( 'global' );
  8154.  
  8155. if (!empty( $glob )) {
  8156. $smarty->assign( 'global', $glob );
  8157. }
  8158.  
  8159. $smarty->assign( 'settings', $settings );
  8160. $smarty->assign( 'url', get_url( ) );
  8161. $dbh;
  8162. x0d( );
  8163. check_payouts( );
  8164. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement