Advertisement
Guest User

Untitled

a guest
Feb 8th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.01 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.0.8.2
  8. * @ Author : DeZender
  9. * @ Release on : 02.01.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class ModelExtensionDreamFilter extends Model
  15. {
  16. protected $BZ6EYhQ = ['image', 'multiimage'];
  17. protected $b4tg2Xy = true;
  18. protected $IrM5eVP = ['type_single', 'radio', 'checkbox', 'image', 'multiimage'];
  19. protected $J6RGrsg = 'rdrf';
  20. private $XFstckl = [];
  21. private $u9trKh7 = [];
  22. private $FMttLWD = [];
  23. public $cacheDuration;
  24. public $view;
  25. public $settings;
  26. public $notavailable;
  27. public $module_id = '';
  28. public $cachePath;
  29. public $cacheFileSuffix = '.bin';
  30. public $sortTypes = ['p.date_added', 'p.date_available', 'p.date_modified', 'p.height', 'p.image', 'p.length', 'p.location', 'p.manufacturer_id', 'p.minimum', 'p.model', 'p.points', 'p.price', 'p.product_id', 'p.quantity', 'p.shipping', 'p.sort_order', 'p.stock_status_id', 'p.subtract', 'p.status', 'p.tax_class_id', 'p.viewed', 'p.weight', 'p.width', 'pd.description', 'pd.name', 'pd.tag', 'discount', 'rating', 'special'];
  31. private $Uz2s9iU = [
  32. 'name' => ['name' => 'name', 'code' => 'name', 'key' => 'filter_name'],
  33. 'price' => [
  34. 'name' => 'price',
  35. 'code' => 'price',
  36. 'key' => 'filter_price',
  37. 'keys' => ['filter_price_min', 'filter_price_max']
  38. ],
  39. 'stock' => ['name' => 'stock', 'code' => 'stock', 'key' => 'filter_stock'],
  40. 'novelty' => ['name' => 'novelty', 'code' => 'new', 'key' => 'filter_new'],
  41. 'special' => ['name' => 'special', 'code' => 'spc', 'key' => 'filter_special'],
  42. 'length' => ['name' => 'length', 'code' => 'lgth', 'key' => 'filter_length'],
  43. 'width' => ['name' => 'width', 'code' => 'wdth', 'key' => 'filter_width', 'md5' => true],
  44. 'height' => ['name' => 'height', 'code' => 'hght', 'key' => 'filter_height'],
  45. 'weight' => ['name' => 'weight', 'code' => 'wght', 'key' => 'filter_weight'],
  46. 'rating' => ['name' => 'rating', 'code' => 'rtng', 'key' => 'filter_rating'],
  47. 'tags' => ['name' => 'tags', 'code' => 'tag', 'key' => 'filter_tag', 'md5' => true],
  48. 'model' => ['name' => 'model', 'code' => 'model', 'key' => 'filter_model', 'md5' => true],
  49. 'manufacturers' => [
  50. 'name' => 'manufacturers',
  51. 'code' => 'man',
  52. 'key' => 'filter_manufacturer_id',
  53. 'sort_keys' => ['count', 'name', 'sort']
  54. ],
  55. 'categories' => ['name' => 'categories', 'code' => 'ctg', 'key' => 'filter_category_id', 'sorted' => true],
  56. 'attributes' => ['name' => 'attributes', 'code' => 'attr', 'key' => 'filter_attributes', 'sorted' => true, 'md5' => true],
  57. 'options' => ['name' => 'options', 'code' => 'opt', 'key' => 'filter_options', 'sorted' => true],
  58. 'filters' => ['name' => 'filters', 'code' => 'fil', 'key' => 'filter_filter', 'sorted' => true]
  59. ];
  60. private $SqAXmpC = ['attr', 'opt', 'fil'];
  61.  
  62. public function __construct($N6nNv35)
  63. {
  64. goto label33;
  65.  
  66. label2:
  67.  
  68. $this->cleanCache();
  69. rmdir($this->cachePath);
  70.  
  71. label8:
  72.  
  73. goto label86;
  74.  
  75. label9:
  76.  
  77. $this->notavailable = $this->config->get('rdrf_notavailable');
  78. $DhqQML_ = $this->config->get('rdrf_cachetime');
  79. if (!($this->config->get('rdrf_cachestatus') && $DhqQML_)) {
  80. goto label32;
  81. }
  82.  
  83. $this->cacheDuration = $DhqQML_ * 3600;
  84.  
  85. label32:
  86.  
  87. goto label69;
  88.  
  89. label33:
  90.  
  91. parent::__construct($N6nNv35);
  92.  
  93. if (!version_compare(phpversion(), '5.4', '<')) {
  94. goto label53;
  95. }
  96.  
  97. $this->XFstckl[] = $this->language->get('error_php');
  98.  
  99. label53:
  100.  
  101. $this->cachePath = DIR_CACHE . '../rdr-cache';
  102. goto label9;
  103.  
  104. label58:
  105.  
  106. mkdir($this->cachePath, 509, true);
  107.  
  108. label64:
  109.  
  110. $this->cleanCache(false);
  111. goto label8;
  112.  
  113. label68:
  114.  
  115. goto label2;
  116.  
  117. label69:
  118.  
  119. if ($this->cacheDuration) {
  120. goto label79;
  121. }
  122.  
  123. if (is_dir($this->cachePath)) {
  124. goto label68;
  125. }
  126.  
  127. goto label8;
  128.  
  129. label79:
  130.  
  131. if (is_dir($this->cachePath)) {
  132. goto label64;
  133. }
  134.  
  135. goto label58;
  136.  
  137. label86:
  138. }
  139.  
  140. public function __debugInfo()
  141. {
  142. return [];
  143. }
  144.  
  145. public function __call($aV0yFq0, $cbVUc1W)
  146. {
  147. return $aV0yFq0;
  148. }
  149.  
  150. static public function __callStatic($aV0yFq0, $cbVUc1W)
  151. {
  152. return $aV0yFq0;
  153. }
  154.  
  155. private function r0qisz2($HEPS8H3 = [])
  156. {
  157. goto label198;
  158.  
  159. label2:
  160.  
  161. if (empty($ALHJ5aw['hght'])) {
  162. goto label16;
  163. }
  164.  
  165. $DTtuUfA['filter_height'] = $this->KC4jeoI($ALHJ5aw['hght'])[0];
  166. $DTtuUfA['height_decimals'] = $this->KC4jeoI($ALHJ5aw['hght'])[1];
  167.  
  168. label16:
  169.  
  170. if (empty($ALHJ5aw['wght'])) {
  171. goto label322;
  172. }
  173.  
  174. $DTtuUfA['filter_weight'] = $this->Kc4Jeoi($ALHJ5aw['wght'])[0];
  175. $DTtuUfA['weight_decimals'] = $this->Kc4Jeoi($ALHJ5aw['wght'])[1];
  176. goto label322;
  177.  
  178. label31:
  179.  
  180. if (strpos($HEPS8H3['filter_filter'], ',') !== false) {
  181. goto label44;
  182. }
  183.  
  184. if ($HEPS8H3['filter_filter'] !== '') {
  185. goto label277;
  186. }
  187.  
  188. goto label283;
  189.  
  190. label44:
  191.  
  192. $DTtuUfA['filter_filter'] = explode(',', $HEPS8H3['filter_filter']);
  193. goto label276;
  194.  
  195. label52:
  196.  
  197. if (!isset($ALHJ5aw['rtng'])) {
  198. goto label62;
  199. }
  200.  
  201. $DTtuUfA['filter_rating'] = $this->dYi8ZdY($ALHJ5aw['rtng']);
  202.  
  203. label62:
  204. if (!(!empty($ALHJ5aw['tag']) && empty($DTtuUfA['filter_name']) && empty($DTtuUfA['filter_tag']))) {
  205. goto label229;
  206. }
  207.  
  208. $DTtuUfA['filter_tag'] = $this->dyI8ZdY($ALHJ5aw['tag']);
  209. goto label229;
  210.  
  211. label80:
  212.  
  213. if (!isset($ALHJ5aw['stock'])) {
  214. goto label90;
  215. }
  216.  
  217. $DTtuUfA['filter_stock'] = $this->DYi8zDY($ALHJ5aw['stock']);
  218.  
  219. label90:
  220.  
  221. if (!isset($ALHJ5aw['spc'])) {
  222. goto label275;
  223. }
  224.  
  225. if ($ALHJ5aw['spc'] == 'true') {
  226. goto label348;
  227. }
  228.  
  229. goto label337;
  230.  
  231. label99:
  232. if (!(!empty($ALHJ5aw['fil']) && empty($DTtuUfA['filter_filter']) && version_compare(VERSION, '1.5.5', '>='))) {
  233. goto label121;
  234. }
  235.  
  236. $DTtuUfA['filter_filter'] = $this->jtB1iDD($ALHJ5aw['fil']);
  237.  
  238. label121:
  239.  
  240. if (empty($ALHJ5aw['attr'])) {
  241. goto label324;
  242. }
  243.  
  244. $DTtuUfA['filter_attributes'] = $this->JtB1IDd($ALHJ5aw['attr']);
  245. goto label324;
  246.  
  247. label131:
  248.  
  249. $DTtuUfA['filter_manufacturer_id'] = $this->DYi8ZdY($ALHJ5aw['man']);
  250.  
  251. label137:
  252.  
  253. if (empty($ALHJ5aw['ctg'])) {
  254. goto label151;
  255. }
  256.  
  257. $DTtuUfA[empty($DTtuUfA['filter_category_id']) ? 'filter_category_id' : 'filter_category'] = $this->Dyi8zDY($ALHJ5aw['ctg']);
  258.  
  259. label151:
  260.  
  261. goto label99;
  262.  
  263. label152:
  264. if (!(!empty($ALHJ5aw['name']) && empty($DTtuUfA['filter_name']) && empty($DTtuUfA['filter_tag']))) {
  265. goto label169;
  266. }
  267.  
  268. $DTtuUfA['filter_name'] = $this->T2_EfFX($ALHJ5aw['name']);
  269.  
  270. label169:
  271. if (!(!empty($ALHJ5aw['price']) && (stripos($ALHJ5aw['price'], ';') !== false))) {
  272. goto label299;
  273. }
  274.  
  275. $DTtuUfA['filter_price_min'] = explode(';', $this->t2_EffX($ALHJ5aw['price']))[0];
  276. $DTtuUfA['filter_price_max'] = explode(';', $this->t2_EffX($ALHJ5aw['price']))[1];
  277. goto label299;
  278.  
  279. label198:
  280.  
  281. $DTtuUfA = [];
  282. $vqdyA5w = ['filter_category_id', 'filter_sub_category', 'filter_manufacturer_id', 'filter_name', 'filter_tag', 'filter_description', 'filter_free_ship', 'filter_video', 'filter_tag_id', 'special', 'sort', 'order', 'start', 'limit'];
  283.  
  284. foreach ($vqdyA5w as $tjZgiGl) {
  285. if (!(isset($HEPS8H3[$tjZgiGl]) && ($HEPS8H3[$tjZgiGl] !== ''))) {
  286. goto label214;
  287. }
  288.  
  289. $DTtuUfA[$tjZgiGl] = $HEPS8H3[$tjZgiGl];
  290.  
  291. label214:
  292. }
  293. if (!(isset($HEPS8H3['filter_filter']) && version_compare(VERSION, '1.5.5', '>='))) {
  294. goto label283;
  295. }
  296.  
  297. goto label31;
  298.  
  299. label229:
  300.  
  301. if (empty($ALHJ5aw['model'])) {
  302. goto label290;
  303. }
  304.  
  305. if (is_array($ALHJ5aw['model'])) {
  306. goto label284;
  307. }
  308.  
  309. $DTtuUfA['filter_model'] = $this->dYi8zDY($ALHJ5aw['model']);
  310. goto label290;
  311. goto label284;
  312.  
  313. label246:
  314.  
  315. $DTtuUfA['filter_length'] = $this->kC4JEoI($ALHJ5aw['lgth'])[0];
  316. $DTtuUfA['length_decimals'] = $this->kC4JEoI($ALHJ5aw['lgth'])[1];
  317.  
  318. label257:
  319.  
  320. if (empty($ALHJ5aw['wdth'])) {
  321. goto label271;
  322. }
  323.  
  324. $DTtuUfA['filter_width'] = $this->KC4jeoI($ALHJ5aw['wdth'])[0];
  325. $DTtuUfA['width_decimals'] = $this->KC4jeoI($ALHJ5aw['wdth'])[1];
  326.  
  327. label271:
  328.  
  329. goto label2;
  330.  
  331. label272:
  332.  
  333. goto label275;
  334.  
  335. label273:
  336.  
  337. $DTtuUfA['filter_special'] = false;
  338.  
  339. label275:
  340.  
  341. goto label52;
  342.  
  343. label276:
  344.  
  345. goto label283;
  346.  
  347. label277:
  348.  
  349. $DTtuUfA['filter_filter'] = $this->T2_effx($HEPS8H3['filter_filter']);
  350.  
  351. label283:
  352.  
  353. goto label351;
  354.  
  355. label284:
  356.  
  357. $DTtuUfA['filter_model'] = $this->jTb1IDd($ALHJ5aw['model']);
  358.  
  359. label290:
  360. if (!(!empty($ALHJ5aw['man']) && empty($DTtuUfA['filter_manufacturer_id']))) {
  361. goto label137;
  362. }
  363.  
  364. goto label131;
  365.  
  366. label299:
  367. if (!(isset($ALHJ5aw['new']) && is_array($ALHJ5aw['new']))) {
  368. goto label321;
  369. }
  370.  
  371. foreach ($ALHJ5aw['new'] as $ReUzY6A => $vl5Rrhx) {
  372. $DTtuUfA['filter_new'][$ReUzY6A] = $this->DYi8ZdY($vl5Rrhx);
  373. }
  374.  
  375. label321:
  376.  
  377. goto label80;
  378.  
  379. label322:
  380.  
  381. return $DTtuUfA;
  382. goto label370;
  383.  
  384. label324:
  385.  
  386. if (empty($ALHJ5aw['opt'])) {
  387. goto label333;
  388. }
  389.  
  390. $DTtuUfA['filter_options'] = $this->Jtb1idD($ALHJ5aw['opt']);
  391.  
  392. label333:
  393.  
  394. if (empty($ALHJ5aw['lgth'])) {
  395. goto label257;
  396. }
  397.  
  398. goto label246;
  399.  
  400. label337:
  401.  
  402. if ($ALHJ5aw['spc'] == 'false') {
  403. goto label273;
  404. }
  405.  
  406. $DTtuUfA['filter_special'] = $this->dyI8zDY($ALHJ5aw['spc']);
  407. goto label275;
  408.  
  409. label348:
  410.  
  411. $DTtuUfA['filter_special'] = true;
  412. goto label272;
  413.  
  414. label351:
  415.  
  416. if (empty($HEPS8H3['rdrf'])) {
  417. goto label322;
  418. }
  419.  
  420. if (!is_string($HEPS8H3['rdrf'])) {
  421. goto label367;
  422. }
  423.  
  424. $HEPS8H3['rdrf'] = $this->u7yaCsK($HEPS8H3['rdrf']);
  425.  
  426. label367:
  427.  
  428. $ALHJ5aw = $HEPS8H3['rdrf'];
  429. goto label152;
  430.  
  431. label370:
  432. }
  433.  
  434. private function U7yAcsk($aZ2eo9k)
  435. {
  436. $aZ2eo9k = str_replace('&amp;', '&', $this->T2_efFX($aZ2eo9k));
  437. parse_str($aZ2eo9k, $HEPS8H3);
  438. return $HEPS8H3;
  439. }
  440.  
  441. private function Dyi8zDy($HEPS8H3, $ijSY3eG = true)
  442. {
  443. goto label38;
  444.  
  445. label3:
  446.  
  447. if (!is_array($HEPS8H3)) {
  448. goto label68;
  449. }
  450.  
  451. if (count($HEPS8H3) == 1) {
  452. goto label60;
  453. }
  454.  
  455. foreach ($HEPS8H3 as $iP14tKZ => $hxChofF) {
  456. $HEPS8H3[$iP14tKZ] = $this->dYi8ZDy($hxChofF, false);
  457. }
  458.  
  459. goto label59;
  460.  
  461. label27:
  462.  
  463. $HEPS8H3 = $this->T2_effx($HEPS8H3);
  464. goto label37;
  465.  
  466. label32:
  467.  
  468. $HEPS8H3 = explode(';', $HEPS8H3);
  469.  
  470. label37:
  471.  
  472. goto label3;
  473.  
  474. label38:
  475.  
  476. if (!($HEPS8H3 == '')) {
  477. goto label43;
  478. }
  479.  
  480. return NULL;
  481.  
  482. label43:
  483.  
  484. if (!is_string($HEPS8H3)) {
  485. goto label3;
  486. }
  487. if ($ijSY3eG && (strpos($HEPS8H3, ';') !== false)) {
  488. goto label32;
  489. }
  490.  
  491. goto label27;
  492.  
  493. label59:
  494.  
  495. goto label68;
  496.  
  497. label60:
  498.  
  499. $HEPS8H3 = $this->dYi8ZDy(current($HEPS8H3), false);
  500.  
  501. label68:
  502.  
  503. goto label69;
  504.  
  505. label69:
  506.  
  507. return $HEPS8H3;
  508. goto label71;
  509.  
  510. label71:
  511. }
  512.  
  513. private function JTb1IDD($HEPS8H3)
  514. {
  515. if (is_array($HEPS8H3)) {
  516. goto label7;
  517. }
  518.  
  519. return NULL;
  520.  
  521. label7:
  522.  
  523. foreach ($HEPS8H3 as $iP14tKZ => $hxChofF) {
  524. $HEPS8H3[$iP14tKZ] = $this->DYI8Zdy($hxChofF);
  525. }
  526.  
  527. return $HEPS8H3;
  528. }
  529.  
  530. private function Kc4JEOI($HEPS8H3)
  531. {
  532. goto label71;
  533.  
  534. label2:
  535.  
  536. $HEPS8H3 = $this->t2_efFx($HEPS8H3);
  537.  
  538. if (strpos($HEPS8H3, ';') !== false) {
  539. goto label84;
  540. }
  541.  
  542. $NIYt9hd = substr(strrchr($HEPS8H3, '.'), 1);
  543. $hvAe7_v = ($NIYt9hd !== false ? strlen($NIYt9hd) : 0);
  544. goto label89;
  545. goto label84;
  546.  
  547. label33:
  548.  
  549. foreach ($HEPS8H3 as $iP14tKZ => $hxChofF) {
  550. $HEPS8H3[$iP14tKZ] = $this->t2_EFFx($hxChofF);
  551. $NIYt9hd = substr(strrchr($hxChofF, '.'), 1);
  552. $u_wBSU6 = ($NIYt9hd !== false ? strlen($NIYt9hd) : 0);
  553.  
  554. if (!($hvAe7_v < $u_wBSU6)) {
  555. goto label65;
  556. }
  557.  
  558. $hvAe7_v = $u_wBSU6;
  559.  
  560. label65:
  561. }
  562.  
  563. label67:
  564.  
  565. return [$HEPS8H3, $hvAe7_v];
  566. goto label96;
  567.  
  568. label71:
  569.  
  570. if (!($HEPS8H3 == '')) {
  571. goto label76;
  572. }
  573.  
  574. return [NULL, NULL];
  575.  
  576. label76:
  577.  
  578. $hvAe7_v = 0;
  579.  
  580. if (!is_string($HEPS8H3)) {
  581. goto label89;
  582. }
  583.  
  584. goto label2;
  585.  
  586. label84:
  587.  
  588. $HEPS8H3 = explode(';', $HEPS8H3);
  589.  
  590. label89:
  591.  
  592. if (!is_array($HEPS8H3)) {
  593. goto label67;
  594. }
  595.  
  596. goto label33;
  597.  
  598. label96:
  599. }
  600.  
  601. public function prepareFilters($DuaUqGs, $ekdhiJj)
  602. {
  603. goto label38;
  604.  
  605. label3:
  606. if (!(!empty($ekdhiJj['rdrf']) && $this->view['show_picked'])) {
  607. goto label18;
  608. }
  609.  
  610. $HEPS8H3['picked'] = $this->gIeeBJQ($HEPS8H3['filters']);
  611.  
  612. label18:
  613.  
  614. $HEPS8H3['errors'] = $this->XFstckl;
  615. goto label80;
  616.  
  617. label22:
  618.  
  619. $HEPS8H3['js'] = implode("\r\n", $HEPS8H3['js']);
  620. $HEPS8H3['loader'] = $this->OVsfObU();
  621. $HEPS8H3['callback'] = $this->zDTtWtf();
  622. goto label3;
  623.  
  624. label38:
  625.  
  626. $ALHJ5aw = [];
  627. $icfWzZm = [];
  628. $HEPS8H3 = [
  629. 'filters' => [],
  630. 'filters_json' => [],
  631. 'js' => [],
  632. 'picked' => [],
  633. 'loader' => '',
  634. 'callback' => ['before' => false, 'after' => false]
  635. ];
  636. if (!($this->U4wwX0z() && isset($DuaUqGs['settings']) && isset($DuaUqGs['view']))) {
  637. goto label18;
  638. }
  639.  
  640. $this->settings = $DuaUqGs['settings'];
  641. goto label56;
  642.  
  643. label56:
  644.  
  645. $this->view = $DuaUqGs['view'];
  646. $this->module_id = (isset($DuaUqGs['settings']['module_id']) ? $DuaUqGs['settings']['module_id'] : $this->module_id);
  647.  
  648. if (empty($DuaUqGs['filters'])) {
  649. goto label82;
  650. }
  651.  
  652. $ALHJ5aw = $DuaUqGs['filters'];
  653. $icfWzZm = $this->AEVvgP8($ALHJ5aw);
  654. goto label82;
  655.  
  656. label80:
  657.  
  658. return $HEPS8H3;
  659. goto label157;
  660.  
  661. label82:
  662.  
  663. $DTtuUfA = $this->r0QISZ2($ekdhiJj);
  664. $duBGulf = $this->MXx2X0O($ekdhiJj, $icfWzZm);
  665. if (!(!empty($ALHJ5aw) && is_array($ALHJ5aw))) {
  666. goto label22;
  667. }
  668.  
  669. foreach ($ALHJ5aw as $ea2f5Hi => $UTPjlyj) {
  670. goto label125;
  671.  
  672. label106:
  673.  
  674. goto label154;
  675.  
  676. label108:
  677.  
  678. $HEPS8H3['js'][] = $this->wsWfqAV($hqXMZ2G);
  679.  
  680. label114:
  681.  
  682. if (!$yl5oK8P) {
  683. goto label106;
  684. }
  685.  
  686. $HEPS8H3['filters_json'][$yl5oK8P['id']] = $yl5oK8P['filter'];
  687. goto label106;
  688.  
  689. label125:
  690.  
  691. $hqXMZ2G = $this->f3n3FNT($UTPjlyj, $duBGulf, $DTtuUfA);
  692. $yl5oK8P = $this->HOklx43($UTPjlyj, $duBGulf);
  693.  
  694. if (!$hqXMZ2G) {
  695. goto label114;
  696. }
  697.  
  698. $HEPS8H3['filters'][] = $hqXMZ2G;
  699.  
  700. if (!in_array($hqXMZ2G['type'], ['slider', 'slider_entry'])) {
  701. goto label114;
  702. }
  703.  
  704. goto label108;
  705.  
  706. label154:
  707. }
  708.  
  709. goto label22;
  710.  
  711. label157:
  712. }
  713.  
  714. private function MXX2X0O($ekdhiJj, $icfWzZm)
  715. {
  716. goto label18;
  717.  
  718. label3:
  719.  
  720. return $KdWw5BV;
  721.  
  722. label4:
  723.  
  724. $zjNpgCp = $this->yZSA_52($this->r0qiSz2($ekdhiJj), $icfWzZm);
  725. $LsI3Q0Z = $this->E1Oea0j($cFaH0rT);
  726. $yvhImhh = [];
  727. goto label58;
  728.  
  729. label18:
  730.  
  731. unset($ekdhiJj['sort']);
  732. unset($ekdhiJj['order']);
  733. unset($ekdhiJj['start']);
  734. unset($ekdhiJj['limit']);
  735. $cFaH0rT = (isset($ekdhiJj['rdrf']) ? $ekdhiJj['rdrf'] : []);
  736. goto label30;
  737.  
  738. label30:
  739.  
  740. $uyLj3n_ = $ekdhiJj;
  741. unset($uyLj3n_['rdrf']);
  742. $KdWw5BV = $this->yzSa_52($this->r0qIsZ2($uyLj3n_), $icfWzZm);
  743.  
  744. if (empty($KdWw5BV)) {
  745. goto label97;
  746. }
  747. if (!(empty($cFaH0rT) || (!$this->view['count_show'] && ($this->view['disable_null'] == 'leave')))) {
  748. goto label4;
  749. }
  750.  
  751. goto label3;
  752.  
  753. label58:
  754.  
  755. foreach ($KdWw5BV as $iP14tKZ => $BF7SY_j) {
  756. $KPHCPl0 = $this->Uz2s9iU[$iP14tKZ];
  757. $ur15VJj = (isset($zjNpgCp[$iP14tKZ]) ? $zjNpgCp[$iP14tKZ] : []);
  758.  
  759. if (isset($cFaH0rT[$KPHCPl0['code']])) {
  760. goto label80;
  761. }
  762.  
  763. $yvhImhh[$iP14tKZ] = $ur15VJj;
  764. goto label90;
  765.  
  766. label80:
  767.  
  768. $yvhImhh[$iP14tKZ] = $this->r1Pnf8R($BF7SY_j, $ur15VJj, $ekdhiJj, $icfWzZm, $KPHCPl0, $LsI3Q0Z);
  769.  
  770. label90:
  771. }
  772.  
  773. return $this->YjJj2ID($KdWw5BV, $yvhImhh);
  774.  
  775. label97:
  776.  
  777. return [];
  778. goto label99;
  779.  
  780. label99:
  781. }
  782.  
  783. private function R1pnF8r($BF7SY_j, $ur15VJj, $ekdhiJj, $icfWzZm, $KPHCPl0, $LsI3Q0Z)
  784. {
  785. if (!(in_array($KPHCPl0['code'], $this->SqAXmpC) && !empty($BF7SY_j['values']))) {
  786. goto label75;
  787. }
  788.  
  789. $qC_oNVL = [];
  790.  
  791. foreach ($BF7SY_j['values'] as $ea2f5Hi => $L6JI0kX) {
  792. goto label28;
  793.  
  794. label26:
  795.  
  796. goto label72;
  797.  
  798. label28:
  799.  
  800. if (isset($ekdhiJj['rdrf'][$KPHCPl0['code']][$ea2f5Hi])) {
  801. goto label48;
  802. }
  803.  
  804. $qC_oNVL['values'][$ea2f5Hi] = (isset($ur15VJj['values'][$ea2f5Hi]) ? $ur15VJj['values'][$ea2f5Hi] : []);
  805. goto label26;
  806.  
  807. label48:
  808.  
  809. if ($LsI3Q0Z <= 1) {
  810. goto label65;
  811. }
  812.  
  813. goto label54;
  814.  
  815. label54:
  816.  
  817. $qC_oNVL['values'][$ea2f5Hi] = $this->zx9eoVc($ekdhiJj, $icfWzZm, $KPHCPl0, $ea2f5Hi);
  818. goto label70;
  819.  
  820. label65:
  821.  
  822. $qC_oNVL['values'][$ea2f5Hi] = $BF7SY_j['values'][$ea2f5Hi];
  823.  
  824. label70:
  825.  
  826. goto label26;
  827.  
  828. label72:
  829. }
  830.  
  831. return $qC_oNVL;
  832.  
  833. label75:
  834.  
  835. if (!(1 < $LsI3Q0Z)) {
  836. goto label85;
  837. }
  838.  
  839. $BF7SY_j = $this->zx9Eovc($ekdhiJj, $icfWzZm, $KPHCPl0);
  840.  
  841. label85:
  842.  
  843. return $BF7SY_j;
  844. }
  845.  
  846. private function u4wwx0z()
  847. {
  848. goto label220;
  849.  
  850. label1:
  851.  
  852. $O2MmXW7 = (isset($wIeXMGF['serial']) ? $wIeXMGF['serial'] : NULL);
  853.  
  854. if ($O2MmXW7) {
  855. goto label22;
  856. }
  857.  
  858. $this->XFstckl[] = sprintf($this->language->get('error_key_notfound'), $hbOMDai);
  859. goto label151;
  860.  
  861. label22:
  862.  
  863. goto label155;
  864.  
  865. label23:
  866.  
  867. $WmX4Xiy = preg_replace($aFGsqlo, '\\3', $aZ2eo9k);
  868. $hbOMDai = '<a target="_blank" href="http://redream.ru"><b>http://redream.ru</b></a>';
  869.  
  870. if (stripos($WmX4Xiy, preg_replace($aFGsqlo, '\\3', @$this->config->get('config_url'))) !== false) {
  871. goto label201;
  872. }
  873.  
  874. $this->XFstckl[] = sprintf($this->language->get('error_key_wrong'), $hbOMDai);
  875. goto label151;
  876. goto label201;
  877.  
  878. label61:
  879.  
  880. @natsort($FC7eury);
  881. $z75DrIg = @current($FC7eury);
  882. $m_JJvlD = @implode($FC7eury);
  883. $fM9dGsD = @base64_decode(@implode($h2eB6Sa));
  884. @preg_match('/([a-zA-Z0-9\\-]{1,61}\\.?){' . $z75DrIg . '}$/i', $WmX4Xiy, $vpo9FBx);
  885. goto label99;
  886.  
  887. label99:
  888.  
  889. $mTsPc5U = $vpo9FBx[0];
  890. goto label102;
  891.  
  892. label102:
  893.  
  894. switch ($fM9dGsD) {
  895. case @md5(@hash('crc32b', $m_JJvlD . date('Ymd')) . $mTsPc5U):
  896. break;
  897. case @md5(@hash('crc32b', $m_JJvlD . $this->J6RGrsg) . $mTsPc5U):
  898. break;
  899. default:
  900. $this->XFstckl[] = sprintf($this->language->get('error_term_expired'), $hbOMDai);
  901. }
  902.  
  903. label150:
  904.  
  905. goto label151;
  906.  
  907. label151:
  908.  
  909. return !$this->XFstckl;
  910. goto label231;
  911.  
  912. label155:
  913.  
  914. $h2eB6Sa = @explode('-', $O2MmXW7);
  915. $peGgT9g = @array_shift($h2eB6Sa);
  916. $FC7eury = @str_split($peGgT9g);
  917. if (!(is_array($h2eB6Sa) && (count($h2eB6Sa) == count($FC7eury)))) {
  918. goto label151;
  919. }
  920.  
  921. if (!@array_multisort($FC7eury, SORT_NATURAL, $h2eB6Sa)) {
  922. goto label150;
  923. }
  924.  
  925. goto label61;
  926.  
  927. label201:
  928.  
  929. $wIeXMGF = @$this->config->get('rdrf_license');
  930.  
  931. if (!($wIeXMGF == NULL)) {
  932. goto label219;
  933. }
  934.  
  935. $wIeXMGF = @$this->config->get('redream_filter_license');
  936.  
  937. label219:
  938.  
  939. goto label1;
  940.  
  941. label220:
  942.  
  943. $this->load->language('module/dream_filter');
  944. $aFGsqlo = '/^(https?:\\/\\/)?(www\\.)?([a-zA-Z0-9\\-\\.]{1,61}).*?$/i';
  945. $oM9EH5E = $_SERVER;
  946. $lYPWyxE = 'HTTP_HOST';
  947. $aZ2eo9k = $oM9EH5E[$lYPWyxE];
  948. goto label23;
  949.  
  950. label231:
  951. }
  952.  
  953. private function zx9eoVC($ekdhiJj, $icfWzZm, $KPHCPl0, $ea2f5Hi = false)
  954. {
  955. goto label28;
  956.  
  957. label5:
  958.  
  959. unset($ekdhiJj['rdrf'][$X6aqBQp]);
  960.  
  961. label7:
  962.  
  963. $DETOGyl = $this->PrXymOr($icfWzZm, [$aV0yFq0], $ea2f5Hi ? [$ea2f5Hi] : []);
  964. $saZaQdk = $this->yzsa_52($this->R0QiSZ2($ekdhiJj), $DETOGyl);
  965. goto label50;
  966.  
  967. label28:
  968.  
  969. $X6aqBQp = $KPHCPl0['code'];
  970. $aV0yFq0 = $KPHCPl0['name'];
  971.  
  972. if ($ea2f5Hi === false) {
  973. goto label5;
  974. }
  975.  
  976. unset($ekdhiJj['rdrf'][$X6aqBQp][$ea2f5Hi]);
  977. goto label7;
  978. goto label5;
  979.  
  980. label40:
  981.  
  982. return [];
  983. goto label64;
  984.  
  985. label42:
  986.  
  987. return $saZaQdk[$aV0yFq0];
  988. goto label49;
  989.  
  990. label45:
  991.  
  992. return $saZaQdk[$aV0yFq0]['values'][$ea2f5Hi];
  993.  
  994. label49:
  995.  
  996. goto label40;
  997.  
  998. label50:
  999.  
  1000. if (!isset($saZaQdk[$aV0yFq0])) {
  1001. goto label40;
  1002. }
  1003.  
  1004. if ($ea2f5Hi === false) {
  1005. goto label63;
  1006. }
  1007.  
  1008. if (isset($saZaQdk[$aV0yFq0]['values'][$ea2f5Hi])) {
  1009. goto label45;
  1010. }
  1011.  
  1012. goto label49;
  1013.  
  1014. label63:
  1015.  
  1016. goto label42;
  1017.  
  1018. label64:
  1019. }
  1020.  
  1021. private function prxYMoR($icfWzZm, $IDlxnXB = [], $aLmadwU = [])
  1022. {
  1023. if (empty($IDlxnXB)) {
  1024. goto label101;
  1025. }
  1026.  
  1027. if (empty($aLmadwU)) {
  1028. goto label93;
  1029. }
  1030.  
  1031. $fPcygKh = [];
  1032.  
  1033. foreach ($icfWzZm as $aV0yFq0 => $DETOGyl) {
  1034. goto label15;
  1035.  
  1036. label15:
  1037. if (!(in_array($aV0yFq0, $IDlxnXB) && isset($DETOGyl['items']))) {
  1038. goto label88;
  1039. }
  1040.  
  1041. $u33D0JZ = [];
  1042.  
  1043. foreach ($aLmadwU as $Ugtg6Rb) {
  1044. if (!(($NsgjLGc = array_search($Ugtg6Rb, $DETOGyl['items'])) !== false)) {
  1045. goto label43;
  1046. }
  1047.  
  1048. $u33D0JZ[$NsgjLGc] = $Ugtg6Rb;
  1049.  
  1050. label43:
  1051. }
  1052.  
  1053. $fPcygKh[$aV0yFq0] = $DETOGyl;
  1054. goto label49;
  1055.  
  1056. label49:
  1057.  
  1058. $fPcygKh[$aV0yFq0]['items'] = array_intersect_key($fPcygKh[$aV0yFq0]['items'], $u33D0JZ);
  1059.  
  1060. if (empty($fPcygKh[$aV0yFq0]['types'])) {
  1061. goto label72;
  1062. }
  1063.  
  1064. $fPcygKh[$aV0yFq0]['types'] = array_intersect_key($fPcygKh[$aV0yFq0]['types'], $u33D0JZ);
  1065.  
  1066. label72:
  1067.  
  1068. if (empty($fPcygKh[$aV0yFq0]['add'])) {
  1069. goto label88;
  1070. }
  1071.  
  1072. goto label79;
  1073.  
  1074. label79:
  1075.  
  1076. $fPcygKh[$aV0yFq0]['add'] = array_intersect_key($fPcygKh[$aV0yFq0]['add'], $u33D0JZ);
  1077.  
  1078. label88:
  1079.  
  1080. goto label90;
  1081.  
  1082. label90:
  1083. }
  1084.  
  1085. return $fPcygKh;
  1086.  
  1087. label93:
  1088.  
  1089. return array_intersect_key($icfWzZm, array_flip($IDlxnXB));
  1090.  
  1091. label101:
  1092.  
  1093. return $icfWzZm;
  1094. }
  1095.  
  1096. private function yjJJ2ID($xidKN3l, $M6C6pkU)
  1097. {
  1098. if (!(is_array($xidKN3l) && !empty($xidKN3l))) {
  1099. goto label225;
  1100. }
  1101.  
  1102. foreach ($xidKN3l as $iP14tKZ => $R_pHT42) {
  1103. $qC_oNVL = (isset($M6C6pkU[$iP14tKZ]) ? $M6C6pkU[$iP14tKZ] : []);
  1104.  
  1105. switch ($iP14tKZ) {
  1106. case 'price':
  1107. if (!(isset($qC_oNVL['price_min']) && ($R_pHT42['price_min'] < $qC_oNVL['price_min']))) {
  1108. goto label43;
  1109. }
  1110.  
  1111. $xidKN3l[$iP14tKZ]['range_min'] = $qC_oNVL['price_min'];
  1112.  
  1113. label43:
  1114. if (!(isset($qC_oNVL['price_max']) && ($qC_oNVL['price_max'] < $R_pHT42['price_max']))) {
  1115. goto label57;
  1116. }
  1117.  
  1118. $xidKN3l[$iP14tKZ]['range_max'] = $qC_oNVL['price_max'];
  1119.  
  1120. label57:
  1121.  
  1122. break;
  1123. case 'stock':
  1124. $xidKN3l[$iP14tKZ]['count_stock'] = (isset($qC_oNVL['count_stock']) ? $qC_oNVL['count_stock'] : 0);
  1125. $xidKN3l[$iP14tKZ]['count_out'] = (isset($qC_oNVL['count_out']) ? $qC_oNVL['count_out'] : 0);
  1126. break;
  1127. case 'novelty':
  1128. if (!(!empty($R_pHT42) && is_array($R_pHT42))) {
  1129. goto label119;
  1130. }
  1131.  
  1132. foreach ($R_pHT42 as $dXr0A9f => $wuv_cws) {
  1133. $xidKN3l[$iP14tKZ][$dXr0A9f]['count_new'] = (isset($qC_oNVL[$dXr0A9f]['count_new']) ? $qC_oNVL[$dXr0A9f]['count_new'] : 0);
  1134. $xidKN3l[$iP14tKZ][$dXr0A9f]['count_old'] = (isset($qC_oNVL[$dXr0A9f]['count_old']) ? $qC_oNVL[$dXr0A9f]['count_old'] : 0);
  1135. }
  1136.  
  1137. label119:
  1138.  
  1139. break;
  1140. default:
  1141. if (!(!empty($R_pHT42['values']) && is_array($R_pHT42['values']))) {
  1142. break;
  1143. }
  1144.  
  1145. foreach ($R_pHT42['values'] as $L6JI0kX => $wuv_cws) {
  1146. goto label191;
  1147.  
  1148. label140:
  1149.  
  1150. $xidKN3l[$iP14tKZ]['values'][$L6JI0kX]['count'] = (isset($qC_oNVL['values'][$L6JI0kX]['count']) ? $qC_oNVL['values'][$L6JI0kX]['count'] : 0);
  1151. goto label188;
  1152.  
  1153. label158:
  1154.  
  1155. foreach ($wuv_cws['values'] as $ea2f5Hi => $hxChofF) {
  1156. $xidKN3l[$iP14tKZ]['values'][$L6JI0kX]['values'][$ea2f5Hi]['count'] = (isset($qC_oNVL['values'][$L6JI0kX]['values'][$ea2f5Hi]['count']) ? $qC_oNVL['values'][$L6JI0kX]['values'][$ea2f5Hi]['count'] : 0);
  1157. }
  1158.  
  1159. goto label188;
  1160.  
  1161. label188:
  1162.  
  1163. goto label221;
  1164.  
  1165. label191:
  1166.  
  1167. if (is_array($wuv_cws)) {
  1168. goto label213;
  1169. }
  1170.  
  1171. $xidKN3l[$iP14tKZ]['values'][$L6JI0kX] = (isset($qC_oNVL['values'][$L6JI0kX]) ? $qC_oNVL['values'][$L6JI0kX] : 0);
  1172. goto label188;
  1173.  
  1174. label213:
  1175.  
  1176. if (isset($wuv_cws['values'])) {
  1177. goto label158;
  1178. }
  1179.  
  1180. goto label140;
  1181.  
  1182. label221:
  1183. }
  1184. }
  1185. }
  1186.  
  1187. label225:
  1188.  
  1189. return $xidKN3l;
  1190. }
  1191.  
  1192. private function yzsA_52($ekdhiJj, $icfWzZm = [])
  1193. {
  1194. $EL0z9f1 = (isset($this->session->data['currency']) ? $this->session->data['currency'] : '');
  1195. $NsgjLGc = [0 => 'counters', 'currency' => $EL0z9f1, 'request' => $ekdhiJj, 'properties' => $icfWzZm];
  1196. return $this->c9Sqkvk($NsgjLGc, function() use($ekdhiJj, $icfWzZm, $EL0z9f1) {
  1197. $lMby2Cl = (isset($ekdhiJj['filter_category_id']) ? $ekdhiJj['filter_category_id'] : 0);
  1198. $DJPYLAW = [];
  1199. $duBGulf = [];
  1200. $X2Z7TEn = $this->DWGNRTv($ekdhiJj, $icfWzZm);
  1201.  
  1202. if (!$X2Z7TEn) {
  1203. goto label943;
  1204. }
  1205.  
  1206. foreach ($X2Z7TEn as $cSW2ir1) {
  1207. goto label614;
  1208.  
  1209. label24:
  1210. $hvAe7_v = (isset($fX4I8tY['decimal_place']) && (0 <= $fX4I8tY['decimal_place']) ? (int) $fX4I8tY['decimal_place'] : $hvAe7_v);
  1211.  
  1212. label36:
  1213.  
  1214. $NFsAMsb = number_format($this->LCiG2On($cSW2ir1['width'], $cSW2ir1['length_class_id']), $hvAe7_v, '.', '');
  1215.  
  1216. if (isset($duBGulf['width']['values'][$NFsAMsb])) {
  1217. goto label476;
  1218. }
  1219.  
  1220. $duBGulf['width']['values'][$NFsAMsb] = 0;
  1221. goto label476;
  1222.  
  1223. label61:
  1224.  
  1225. $duBGulf['manufacturers']['values'][$cSW2ir1['manufacturer_id']] = ['name' => $cSW2ir1['manufacturer'], 'image' => isset($cSW2ir1['manufacturer_image']) ? $this->model_tool_image->resize($cSW2ir1['manufacturer_image'], $this->view['image_width'], $this->view['image_height']) : NULL, 'sort' => $cSW2ir1['manufacturer_sort'], 'count' => 0];
  1226.  
  1227. label88:
  1228.  
  1229. $duBGulf['manufacturers']['values'][$cSW2ir1['manufacturer_id']]['count']++;
  1230.  
  1231. label95:
  1232.  
  1233. goto label753;
  1234.  
  1235. label97:
  1236.  
  1237. $hvAe7_v = 2;
  1238.  
  1239. if (!isset($icfWzZm['length']['add'])) {
  1240. goto label122;
  1241. }
  1242.  
  1243. $fX4I8tY = end($icfWzZm['length']['add']);
  1244. $hvAe7_v = (isset($fX4I8tY['decimal_place']) && (0 <= $fX4I8tY['decimal_place']) ? (int) $fX4I8tY['decimal_place'] : $hvAe7_v);
  1245.  
  1246. label122:
  1247.  
  1248. goto label273;
  1249.  
  1250. label124:
  1251. if (!(isset($icfWzZm['model']) && !empty($cSW2ir1['model']))) {
  1252. goto label374;
  1253. }
  1254.  
  1255. $cS746KR = trim($cSW2ir1['model']);
  1256.  
  1257. if (isset($duBGulf['model']['values'][$cS746KR])) {
  1258. goto label369;
  1259. }
  1260.  
  1261. $duBGulf['model']['values'][$cS746KR] = 0;
  1262. goto label369;
  1263.  
  1264. label150:
  1265.  
  1266. if (!isset($icfWzZm['rating'])) {
  1267. goto label743;
  1268. }
  1269.  
  1270. $yo_V4rL = ($cSW2ir1['rating'] ? (int) $cSW2ir1['rating'] : 0);
  1271.  
  1272. if (isset($duBGulf['rating']['values'][$yo_V4rL])) {
  1273. goto label738;
  1274. }
  1275.  
  1276. goto label734;
  1277.  
  1278. label171:
  1279.  
  1280. if (!(double) $cSW2ir1['special']) {
  1281. goto label150;
  1282. }
  1283.  
  1284. $p1tS0MC = $this->tax->calculate($cSW2ir1['special'], $cSW2ir1['tax_class_id'], $this->config->get('config_tax'));
  1285. $Bz_JQ0d = $this->tax->calculate($cSW2ir1['discount'] ? $cSW2ir1['discount'] : $cSW2ir1['price'], $cSW2ir1['tax_class_id'], $this->config->get('config_tax'));
  1286. $lqLpeRy = ceil(($Bz_JQ0d - $p1tS0MC) / $Bz_JQ0d / 100);
  1287.  
  1288. if (!(0 < $lqLpeRy)) {
  1289. goto label507;
  1290. }
  1291.  
  1292. goto label492;
  1293.  
  1294. label223:
  1295.  
  1296. $duBGulf['weight']['values'][$G7bavOE]++;
  1297.  
  1298. label228:
  1299. if (!(isset($icfWzZm['tags']) && !empty($cSW2ir1['tag']))) {
  1300. goto label124;
  1301. }
  1302.  
  1303. foreach (explode(',', $cSW2ir1['tag']) as $LFDZxoZ) {
  1304. $yhDsuqK = trim($LFDZxoZ);
  1305.  
  1306. if (empty($yhDsuqK)) {
  1307. goto label269;
  1308. }
  1309.  
  1310. if (isset($duBGulf['tags']['values'][$yhDsuqK])) {
  1311. goto label264;
  1312. }
  1313.  
  1314. $duBGulf['tags']['values'][$yhDsuqK] = 0;
  1315.  
  1316. label264:
  1317.  
  1318. $duBGulf['tags']['values'][$yhDsuqK]++;
  1319.  
  1320. label269:
  1321. }
  1322.  
  1323. goto label124;
  1324.  
  1325. label273:
  1326.  
  1327. $Ka3Fj7I = number_format($this->lCiG2On($cSW2ir1['length'], $cSW2ir1['length_class_id']), $hvAe7_v, '.', '');
  1328.  
  1329. if (isset($duBGulf['length']['values'][$Ka3Fj7I])) {
  1330. goto label296;
  1331. }
  1332.  
  1333. $duBGulf['length']['values'][$Ka3Fj7I] = 0;
  1334.  
  1335. label296:
  1336.  
  1337. $duBGulf['length']['values'][$Ka3Fj7I]++;
  1338. goto label509;
  1339.  
  1340. label303:
  1341. if (!(isset($icfWzZm['stock']) && isset($cSW2ir1['quantity']))) {
  1342. goto label600;
  1343. }
  1344. if (!(!isset($duBGulf['stock']['count_stock']) || !isset($duBGulf['stock']['count_out']))) {
  1345. goto label588;
  1346. }
  1347.  
  1348. $duBGulf['stock']['count_stock'] = 0;
  1349. $duBGulf['stock']['count_out'] = 0;
  1350. goto label588;
  1351.  
  1352. label331:
  1353. if (!(isset($icfWzZm['weight']) && isset($cSW2ir1['weight']) && isset($cSW2ir1['weight_class_id']))) {
  1354. goto label228;
  1355. }
  1356.  
  1357. $hvAe7_v = 2;
  1358.  
  1359. if (!isset($icfWzZm['weight']['add'])) {
  1360. goto label647;
  1361. }
  1362.  
  1363. $fX4I8tY = end($icfWzZm['weight']['add']);
  1364. $hvAe7_v = (isset($fX4I8tY['decimal_place']) && (0 <= $fX4I8tY['decimal_place']) ? (int) $fX4I8tY['decimal_place'] : $hvAe7_v);
  1365. goto label647;
  1366.  
  1367. label369:
  1368.  
  1369. $duBGulf['model']['values'][$cS746KR]++;
  1370.  
  1371. label374:
  1372. if (!(isset($icfWzZm['manufacturers']) && isset($cSW2ir1['manufacturer_id']) && !empty($cSW2ir1['manufacturer']))) {
  1373. goto label95;
  1374. }
  1375.  
  1376. if (isset($duBGulf['manufacturers']['values'][$cSW2ir1['manufacturer_id']])) {
  1377. goto label88;
  1378. }
  1379.  
  1380. goto label61;
  1381.  
  1382. label395:
  1383.  
  1384. $KZdm5Pd = strtotime($cSW2ir1['date_added']);
  1385.  
  1386. foreach ($icfWzZm['novelty']['add'] as $ea2f5Hi => $d7c8h9i) {
  1387. $NsgjLGc = $d7c8h9i['days_new'];
  1388.  
  1389. if (!(0 < $NsgjLGc)) {
  1390. goto label458;
  1391. }
  1392. if (!(!isset($duBGulf['novelty'][$NsgjLGc]['count_new']) || !isset($duBGulf['novelty'][$NsgjLGc]['count_old']))) {
  1393. goto label436;
  1394. }
  1395.  
  1396. $duBGulf['novelty'][$NsgjLGc]['count_new'] = 0;
  1397. $duBGulf['novelty'][$NsgjLGc]['count_old'] = 0;
  1398.  
  1399. label436:
  1400.  
  1401. $duBGulf['novelty'][$NsgjLGc]['count_new'] += (int) strtotime('-' . $NsgjLGc . ' days') <= $KZdm5Pd;
  1402. $duBGulf['novelty'][$NsgjLGc]['count_old'] += (int) $KZdm5Pd < strtotime('-' . $NsgjLGc . ' days');
  1403.  
  1404. label458:
  1405. }
  1406.  
  1407. label460:
  1408. if (!(isset($icfWzZm['special']) && isset($cSW2ir1['special']) && isset($cSW2ir1['tax_class_id']) && isset($cSW2ir1['price']))) {
  1409. goto label150;
  1410. }
  1411.  
  1412. goto label171;
  1413.  
  1414. label476:
  1415.  
  1416. $duBGulf['width']['values'][$NFsAMsb]++;
  1417.  
  1418. label481:
  1419. if (!(isset($icfWzZm['height']) && isset($cSW2ir1['height']))) {
  1420. goto label547;
  1421. }
  1422.  
  1423. $hvAe7_v = 2;
  1424. goto label549;
  1425.  
  1426. label492:
  1427.  
  1428. if (isset($duBGulf['special']['values'][$lqLpeRy])) {
  1429. goto label502;
  1430. }
  1431.  
  1432. $duBGulf['special']['values'][$lqLpeRy] = 0;
  1433.  
  1434. label502:
  1435.  
  1436. $duBGulf['special']['values'][$lqLpeRy]++;
  1437.  
  1438. label507:
  1439.  
  1440. goto label150;
  1441.  
  1442. label509:
  1443. if (!(isset($icfWzZm['width']) && isset($cSW2ir1['width']))) {
  1444. goto label481;
  1445. }
  1446.  
  1447. $hvAe7_v = 2;
  1448.  
  1449. if (!isset($icfWzZm['width']['add'])) {
  1450. goto label36;
  1451. }
  1452.  
  1453. $fX4I8tY = end($icfWzZm['width']['add']);
  1454. goto label24;
  1455.  
  1456. label532:
  1457.  
  1458. if (isset($duBGulf['height']['values'][$fLlDear])) {
  1459. goto label542;
  1460. }
  1461.  
  1462. $duBGulf['height']['values'][$fLlDear] = 0;
  1463.  
  1464. label542:
  1465.  
  1466. $duBGulf['height']['values'][$fLlDear]++;
  1467.  
  1468. label547:
  1469.  
  1470. goto label331;
  1471.  
  1472. label549:
  1473.  
  1474. if (!isset($icfWzZm['height']['add'])) {
  1475. goto label573;
  1476. }
  1477.  
  1478. $fX4I8tY = end($icfWzZm['height']['add']);
  1479. $hvAe7_v = (isset($fX4I8tY['decimal_place']) && (0 <= $fX4I8tY['decimal_place']) ? (int) $fX4I8tY['decimal_place'] : $hvAe7_v);
  1480.  
  1481. label573:
  1482.  
  1483. $fLlDear = number_format($this->lciG2on($cSW2ir1['height'], $cSW2ir1['length_class_id']), $hvAe7_v, '.', '');
  1484. goto label532;
  1485.  
  1486. label588:
  1487.  
  1488. $duBGulf['stock']['count_stock'] += (int) 1 <= $cSW2ir1['quantity'];
  1489. $duBGulf['stock']['count_out'] += (int) $cSW2ir1['quantity'] < 1;
  1490.  
  1491. label600:
  1492. if (!(isset($icfWzZm['novelty']) && isset($icfWzZm['novelty']['add']) && isset($cSW2ir1['date_added']))) {
  1493. goto label460;
  1494. }
  1495.  
  1496. goto label395;
  1497.  
  1498. label614:
  1499.  
  1500. $DJPYLAW[] = $cSW2ir1['product_id'];
  1501. if (!(isset($icfWzZm['price']) && isset($cSW2ir1['price']))) {
  1502. goto label303;
  1503. }
  1504.  
  1505. if ((double) $cSW2ir1['special']) {
  1506. goto label672;
  1507. }
  1508.  
  1509. $Bz_JQ0d = $this->tax->calculate($cSW2ir1['price'], $cSW2ir1['tax_class_id'], $this->config->get('config_tax'));
  1510. goto label685;
  1511. goto label672;
  1512.  
  1513. label647:
  1514.  
  1515. $G7bavOE = number_format($this->pHvh_S3($cSW2ir1['weight'], $cSW2ir1['weight_class_id']), $hvAe7_v, '.', '');
  1516.  
  1517. if (isset($duBGulf['weight']['values'][$G7bavOE])) {
  1518. goto label670;
  1519. }
  1520.  
  1521. $duBGulf['weight']['values'][$G7bavOE] = 0;
  1522.  
  1523. label670:
  1524.  
  1525. goto label223;
  1526.  
  1527. label672:
  1528.  
  1529. $Bz_JQ0d = $this->tax->calculate($cSW2ir1['special'], $cSW2ir1['tax_class_id'], $this->config->get('config_tax'));
  1530.  
  1531. label685:
  1532.  
  1533. $Bz_JQ0d = (double) $this->currency->format($Bz_JQ0d, $EL0z9f1, '', false);
  1534. if (!(!isset($duBGulf['price']['price_min']) || ($Bz_JQ0d < $duBGulf['price']['price_min']))) {
  1535. goto label714;
  1536. }
  1537.  
  1538. goto label708;
  1539.  
  1540. label708:
  1541.  
  1542. $duBGulf['price']['price_min'] = floor($Bz_JQ0d);
  1543.  
  1544. label714:
  1545. if (!(!isset($duBGulf['price']['price_max']) || ($duBGulf['price']['price_max'] < $Bz_JQ0d))) {
  1546. goto label732;
  1547. }
  1548.  
  1549. $duBGulf['price']['price_max'] = ceil($Bz_JQ0d);
  1550.  
  1551. label732:
  1552.  
  1553. goto label303;
  1554.  
  1555. label734:
  1556.  
  1557. $duBGulf['rating']['values'][$yo_V4rL] = 0;
  1558.  
  1559. label738:
  1560.  
  1561. $duBGulf['rating']['values'][$yo_V4rL]++;
  1562.  
  1563. label743:
  1564. if (!(isset($icfWzZm['length']) && isset($cSW2ir1['length']))) {
  1565. goto label509;
  1566. }
  1567.  
  1568. goto label97;
  1569.  
  1570. label753:
  1571. }
  1572.  
  1573. if (!isset($icfWzZm['categories'])) {
  1574. goto label816;
  1575. }
  1576.  
  1577. $Kt8u0YV = 1;
  1578.  
  1579. if (!isset($icfWzZm['categories']['add'])) {
  1580. goto label783;
  1581. }
  1582.  
  1583. $fX4I8tY = end($icfWzZm['categories']['add']);
  1584. $Kt8u0YV = (isset($fX4I8tY['nesting']) && (0 <= $fX4I8tY['nesting']) ? (int) $fX4I8tY['nesting'] : $Kt8u0YV);
  1585.  
  1586. label783:
  1587.  
  1588. $MA3DJGb = ['image_width' => $this->view['image_width'], 'image_height' => $this->view['image_height'], 'nesting' => $Kt8u0YV, 'select_image' => array_intersect($this->BZ6EYhQ, $icfWzZm['categories']['types']) ? true : false];
  1589.  
  1590. if (!$lMby2Cl) {
  1591. goto label808;
  1592. }
  1593.  
  1594. $MA3DJGb['exclude_category'] = $lMby2Cl;
  1595.  
  1596. label808:
  1597.  
  1598. $MA3DJGb['products'] = $DJPYLAW;
  1599. $duBGulf['categories']['values'] = $this->jf04C2x($MA3DJGb);
  1600.  
  1601. label816:
  1602.  
  1603. if (!isset($icfWzZm['options'])) {
  1604. ........................................................................
  1605. .............................................
  1606. ........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement