Guest User

Untitled

a guest
Oct 26th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function getpasshash($str)
  15. {
  16. $strmd = md5($str);
  17. return password_hash($strmd, PASSWORD_DEFAULT);
  18. }
  19.  
  20. function getmpidflow($mpid)
  21. {
  22. global $db;
  23. global $cfgrow;
  24. global $bpprow;
  25.  
  26. if (intval($mpid) < 1) {
  27. return 0;
  28. exit();
  29. }
  30.  
  31. $sprstr = getmbrinfo('', '', $mpid);
  32. $maxwideexd = $sprstr['mpwidth'];
  33. $maxdeepexd = $sprstr['mpdepth'] * 2;
  34. if (($maxwideexd < 1) || ($maxdeepexd < 1)) {
  35. return $mpid;
  36. exit();
  37. }
  38.  
  39. $filterstatus = ' AND (mpstatus = \'1\' OR mpstatus = \'2\')';
  40. $mysprlist = '|1:' . $mpid . '|';
  41. $condition = ' AND sprlist LIKE \'%' . $mysprlist . '%\'' . $filterstatus;
  42. $row = $db->getAllRecords(DB_TBLPREFIX . '_mbrplans', 'COUNT(*) as totref', $condition);
  43. $total = intval($row[0]['totref']);
  44.  
  45. if ($sprstr['mpwidth'] <= $total) {
  46. if ($bpprow['spillover'] == 1) {
  47. $count_subrefsql = ', (SELECT COUNT(*) FROM ' . DB_TBLPREFIX . '_mbrplans WHERE idspr = ovrid) as totsubref ';
  48. $ordby = 'totsubref ASC, reg_utctime ASC, mpid DESC';
  49. }
  50. else {
  51. $count_subrefsql = '';
  52. $ordby = 'reg_utctime ASC, mpid DESC, idmbr ASC';
  53. }
  54.  
  55. for ($i = 1; $i <= $maxdeepexd; $i++) {
  56. $tmpmpid = [];
  57. $mpidx = '';
  58. $directsprlist = '|' . $i . ':' . $mpid . '|';
  59. $condition = ' AND sprlist LIKE \'%' . $directsprlist . '%\'' . $filterstatus;
  60. $userData = $db->getRecFrmQry('SELECT mpid as ovrid ' . $count_subrefsql . ' FROM ' . DB_TBLPREFIX . '_mbrplans WHERE 1 ' . $condition . ' ORDER BY ' . $ordby);
  61.  
  62. if (0 < count($userData)) {
  63. foreach ($userData as $val) {
  64. $mpidx = $val['ovrid'];
  65. $tmpmpid[] = $mpidx;
  66. $subsprlist = '|1:' . $mpidx . '|';
  67. ........................................................................
  68. .........................................
  69. .....................
Add Comment
Please, Sign In to add comment