/* Decoded by unphp.net */ $ { $ { "GLOBALS" } ["yrtldynuek"] } , "host" => Registry::get("config.http_host") , "product_name" => $ { $lnpjbtuemv } , )); curl_setopt($ { $ { "GLOBALS" } ["vjwpbnyuil"] } , CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)"); $ { $ { "GLOBALS" } ["fjpcikj"] } = curl_exec($ { $ { "GLOBALS" } ["vjwpbnyuil"] }); curl_close($ { $bktcfbrwnrfw }); $icqetkbh = "uns"; $ { $ { "GLOBALS" } ["ujvrgom"] } = @unserialize($ { $ { "GLOBALS" } ["fjpcikj"] }); if (!empty($ { $ { "GLOBALS" } ["ujvrgom"] }) && is_array($ { $icqetkbh }) && !empty($ { $ { "GLOBALS" } ["ujvrgom"] } ["result"]) && $ { $ { "GLOBALS" } ["ujvrgom"] } ["result"] == "blocked") { if (Registry::get("addons.$pn.status") == "A") fn_update_addon_status($ { $ { "GLOBALS" } ["mrfrccb"] } , "D"); } } } } function fn_rf_orders_search_pro_get_orders($params, $fields, $sortings, &$condition, &$join, $group) { if (!empty($ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_delivery_number"])) { $ { $ { "GLOBALS" } ["vruhhc"] } .= " JOIN ?:shipment_items as si ON si.order_id = ?:orders.order_id"; $ { $ { "GLOBALS" } ["vruhhc"] } .= " JOIN ?:shipments as s ON s.shipment_id = si.shipment_id"; $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= db_quote(" AND s.tracking_number LIKE ?l", "%$params[rf_delivery_number]%"); } if (!empty($ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_shipment_statuses"])) { $ { $ { "GLOBALS" } ["vruhhc"] } .= " JOIN ?:shipment_items as si ON si.order_id = ?:orders.order_id"; $rlgxmhs = "condition"; $ { $ { "GLOBALS" } ["vruhhc"] } .= " JOIN ?:shipments as s ON s.shipment_id = si.shipment_id"; $ { $rlgxmhs } .= db_quote(" AND s.status = ?s", $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_shipment_statuses"]); } $zxistrpw = "condition"; $ { "GLOBALS" } ["vnalutdgd"] = "params"; $xywyfcfxhyxf = "params"; $mpdeigq = "params"; $ { "GLOBALS" } ["mfyyaflo"] = "params"; $ { "GLOBALS" } ["cwjiqjr"] = "params"; $ { "GLOBALS" } ["xplohvcp"] = "geo_conditions"; if (!empty($ { $mpdeigq } ["rf_promotion"])) { $xpkzudg = "condition"; $ { $xpkzudg } .= db_quote(" AND FIND_IN_SET(?i, promotion_ids)", $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_promotion"]); } $ { "GLOBALS" } ["gwohyokcn"] = "params"; $ { "GLOBALS" } ["gkeyzogbwnxe"] = "params"; if (!empty($ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_coupon_code"])) { $ { "GLOBALS" } ["oqtqphk"] = "promo_id"; $ { "GLOBALS" } ["jpajmb"] = "params"; $ { $ { "GLOBALS" } ["oqtqphk"] } = db_get_field("SELECT promotion_id FROM ?:promotions WHERE conditions LIKE '%\"" . db_quote($ { $ { "GLOBALS" } ["jpajmb"] } ["rf_coupon_code"]) . "\"%'"); if (!empty($ { $ { "GLOBALS" } ["lfpnphnf"] })) $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= db_quote(" AND FIND_IN_SET(?i, promotion_ids)", $ { $ { "GLOBALS" } ["lfpnphnf"] }); } if (!empty($ { $ { "GLOBALS" } ["gkvjfdyop"] } ["cid"])) { $jcrukhq = "join"; $pyvfeuex = "cids"; $ { "GLOBALS" } ["unhksgue"] = "_ids"; $xljzljod = "cids"; $ { $xljzljod } = array( $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["cid"] ); $ { $ { "GLOBALS" } ["bpghsqzkx"] } = db_get_fields("SELECT a.category_id" . " FROM ?:categories as a" . " LEFT JOIN ?:categories as b" . " ON b.category_id IN (?n)" . " WHERE a.id_path LIKE CONCAT(b.id_path, '/%')", $ { $ { "GLOBALS" } ["omeomtcwd"] }); $gjgpipg = "cids"; $ { $ { "GLOBALS" } ["omeomtcwd"] } = fn_array_merge($ { $pyvfeuex } , $ { $ { "GLOBALS" } ["unhksgue"] } , false); $ { $jcrukhq } .= " JOIN ?:order_details as rf_od ON rf_od.order_id = ?:orders.order_id JOIN ?:products_categories as rf_pc ON rf_pc.product_id = rf_od.product_id"; $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= db_quote(" AND rf_pc.category_id IN (?n)", $ { $gjgpipg }); } if (!empty($ { $xywyfcfxhyxf } ["rf_promotion"])) { $iokntazyn = "condition"; $ { $iokntazyn } .= db_quote(" AND FIND_IN_SET(?i, promotion_ids)", $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_promotion"]); } $ { "GLOBALS" } ["jfrstlejov"] = "params"; $ { "GLOBALS" } ["lculqtpyhd"] = "geo_conditions"; if (!empty($ { $ { "GLOBALS" } ["gkeyzogbwnxe"] } ["rf_promotion"])) { $ocgtpt = "condition"; $ylrtrd = "params"; $ { $ocgtpt } .= db_quote(" AND FIND_IN_SET(?i, promotion_ids)", $ { $ylrtrd } ["rf_promotion"]); } $ { "GLOBALS" } ["ulswxnb"] = "params"; if (!empty($ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_has_customer_notes"]) && $ { $ { "GLOBALS" } ["jfrstlejov"] } ["rf_has_customer_notes"] == "Y") { $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= db_quote(" AND (?:orders.notes IS NOT NULL AND ?:orders.notes != '')"); } if (!empty($ { $ { "GLOBALS" } ["gwohyokcn"] } ["rf_has_admin_notes"]) && $ { $ { "GLOBALS" } ["mfyyaflo"] } ["rf_has_admin_notes"] == "Y") { $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= db_quote(" AND (?:orders.details IS NOT NULL AND ?:orders.details != '')"); } if (!empty($ { $ { "GLOBALS" } ["cwjiqjr"] } ["rf_usergroup"])) { $ctvtuxck = "group_condition"; $ { $ctvtuxck } = array(); $iuqxkrt = "params"; $ { "GLOBALS" } ["puftpqjs"] = "user_join"; $tcmdfiml = "join"; $hvnbqbopl = "user_join"; $ { $ { "GLOBALS" } ["puftpqjs"] } = ""; foreach ($ { $iuqxkrt } ["rf_usergroup"] as $ { $ { "GLOBALS" } ["gwhhmm"] }) { if ($ { $ { "GLOBALS" } ["gwhhmm"] } == USERGROUP_GUEST) { $ { $ { "GLOBALS" } ["uignlsc"] } [] = " ?:orders.user_id = 0"; } elseif ($ { $ { "GLOBALS" } ["gwhhmm"] } == USERGROUP_REGISTERED) { $fahnyl = "group_condition"; $ { $fahnyl } [] = " ?:orders.user_id != 0"; } else { $ { "GLOBALS" } ["rbqfvzy"] = "user_join"; $uhouwl = "group_condition"; $ { "GLOBALS" } ["lwzfxwvpwxx"] = "user_join"; if (!$ { $ { "GLOBALS" } ["lwzfxwvpwxx"] }) $ { $ { "GLOBALS" } ["rbqfvzy"] } = " LEFT JOIN ?:usergroup_links as rf_u ON rf_u.user_id = ?:orders.user_id And rf_u.status = 'A'"; $ { $uhouwl } [] = db_quote(" rf_u.usergroup_id = ?i", $ { $ { "GLOBALS" } ["gwhhmm"] }); } } $ { $tcmdfiml } .= $ { $hvnbqbopl }; if (!empty($ { $ { "GLOBALS" } ["uignlsc"] })) $ { $ { "GLOBALS" } ["pnthxwgmvws"] } .= (" AND (" . implode(" OR", $ { $ { "GLOBALS" } ["uignlsc"] }) . ")"); } $ { "GLOBALS" } ["togushznl"] = "geo_conditions"; $ { "GLOBALS" } ["nguxpelsfb"] = "params"; $ { $ { "GLOBALS" } ["xplohvcp"] } = array(); if (!empty($ { $ { "GLOBALS" } ["nguxpelsfb"] } ["rf_country"])) { $hqtgafpwciht = "params"; $qmtonjbxd = "geo_conditions"; $ { "GLOBALS" } ["wuxdjrvfvqy"] = "params"; $ { $qmtonjbxd } [] = db_quote("(?:orders.b_country = ?s OR ?:orders.s_country = ?s)", $ { $hqtgafpwciht } ["rf_country"], $ { $ { "GLOBALS" } ["wuxdjrvfvqy"] } ["rf_country"]); } if (!empty($ { $ { "GLOBALS" } ["ulswxnb"] } ["rf_state"])) { $ { $ { "GLOBALS" } ["uwggpwfy"] } [] = db_quote("(?:orders.b_state = ?s OR ?:orders.b_state = ?s)", $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_state"], $ { $ { "GLOBALS" } ["gkvjfdyop"] } ["rf_state"]); } if (!empty($ { $ { "GLOBALS" } ["vnalutdgd"] } ["rf_city"])) { $ { "GLOBALS" } ["hicpvr"] = "params"; $affpzhjjan = "params"; $ { "GLOBALS" } ["hsqrzsb"] = "geo_conditions"; $ { $ { "GLOBALS" } ["hsqrzsb"] } [] = db_quote("(?:orders.b_city = ?s OR ?:orders.s_city = ?s)", $ { $ { "GLOBALS" } ["hicpvr"] } ["rf_city"], $ { $affpzhjjan } ["rf_city"]); } if (!empty($ { $ { "GLOBALS" } ["lculqtpyhd"] })) $ { $zxistrpw } .= (" AND " . implode(" AND ", $ { $ { "GLOBALS" } ["togushznl"] })); } ?>