GIF89a=( õ' 7IAXKgNgYvYx\%wh…hŽth%ˆs%—x¨}9®Œ©€&©‰%¶†(¹–.¹5·œD¹&Çš)ÇŸ5ǘ;Í£*È¡&Õ²)ׯ7×µ<Ñ»4ï°3ø‘HÖ§KͯT÷¨Yÿšqÿ»qÿÔFØ !ù ' !ÿ NETSCAPE2.0 , =( þÀ“pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§gª«ªE¯°¨¬ª±²Œ¹º¹E¾­”´ÂB¶¯ §Åȸ»ÑD¾¿Á•ÄÅ®° ÝH¾ÒLÀÆDÙ«D¶BÝïðÀ¾DÑÑÔTÌÍíH òGö¨A RÎڐ |¥ ٭&ºìE8œ¹kGÔAÞpx­a¶­ã R2XB®åE8I€Õ6Xî:vT)äžþÀq¦è³¥ì仕F~%xñ  4#ZÔ‰O|-4Bs‘X:= QÉ œš lºÒyXJŠGȦ|s hÏíK–3l7·B|¥$'7Jީܪ‰‡àá”Dæn=Pƒ ¤Òëí‰`䌨ljóá¯Éüv>á–Á¼5 ½.69ûϸd«­ºÀûnlv©‹ªîf{¬ÜãPbŸ  l5‘ޝpß ´ ˜3aÅùäI«O’ý·‘áÞ‡˜¾Æ‚ÙÏiÇÿ‹Àƒ #öó)pâš Þ½ ‘Ý{ó)vmÞü%D~ 6f s}ŃƒDØW Eþ`‡þ À…L8xá†ç˜{)x`X/> Ì}mø‚–RØ‘*|`D=‚Ø_ ^ð5 !_…'aä“OÚ—7âcð`D”Cx`ÝÂ¥ä‹éY¹—F¼¤¥Š?¡Õ™ n@`} lď’ÄÉ@4>ñd œ à‘vÒxNÃ×™@žd=ˆgsžG±æ ´²æud &p8Qñ)ˆ«lXD©øÜéAžHìySun jª×k*D¤LH] †¦§C™Jä–´Xb~ʪwStŽ6K,°£qÁœ:9ت:¨þªl¨@¡`‚ûÚ ».Û¬¯t‹ÆSÉ[:°=Š‹„‘Nåû”Ìî{¿ÂA ‡Rà›ÀÙ6úë°Ÿð0Ä_ ½;ÃϱîÉì^ÇÛÇ#Ëë¼ôº!±Ä˜íUîÅÇ;0L1óÁµö«p% AÀºU̬ݵ¼á%霼€‡¯Á~`ÏG¯»À× ­²± =4ªnpð3¾¤³¯­ü¾¦îuÙuµÙ®|%2ÊIÿür¦#0·ÔJ``8È@S@5ê¢ ö×Þ^`8EÜ]ý.뜃Âç 7 ú ȉÞj œ½Dç zý¸iþœÑÙûÄë!ˆÞÀl§Ïw‹*DçI€nEX¯¬¼ &A¬Go¼QföõFç°¯;é¦÷îŽêJ°îúôF5¡ÌQ|îúöXªæ»TÁÏyñêï]ê² o óÎC=öõ›ÒÓPB@ D×½œä(>èCÂxŽ`±«Ÿ–JЀ»Û á¤±p+eE0`ëŽ`A Ú/NE€Ø†À9‚@¤à H½7”à‡%B‰`Àl*ƒó‘–‡8 2ñ%¸ —€:Ù1Á‰E¸àux%nP1ð!‘ðC)¾P81lÑɸF#ˆ€{´âé°ÈB„0>±û °b¡Š´±O‚3È–Ù()yRpbµ¨E.Z‘D8ÊH@% òŒx+%Ù˜Æcü »¸˜fõ¬b·d`Fê™8èXH"ÉÈ-±|1Ô6iI, 2““¬$+](A*jÐ QTÂo‰.ÛU슬Œã„Ž`¯SN¡–¶Äåyše¯ª’­¬‚´b¦Éož œ)åyâ@Ì®3 ÎtT̉°&Ø+žLÀf"Ø-|žçÔ>‡Ðv¦Ðžì\‚ Q1)Ž@Žh#aP72”ˆ™¨$‚ !ù " , =( …7IAXG]KgNgYvYxR"k\%w]'}hŽth%ˆg+ˆs%—r.—m3šx3˜x¨}9®€&©€+¨‡7§‰%¶†(¹–.¹œD¹&ǘ;Í•&ײ)×»4ïÌ6ò§KÍ þ@‘pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g «¬ E ±± ¨­¶°ººE Á´”·®C¬²§Ç¶Œ»ÓDÃÕƷ¯Ê±H½ºM×ÁGÚ¬D¶BËÁ½î½DÓôTÏÛßîG»ôõC×CÌ l&âž:'òtU³6ɹ#·Ø)€'Ü.6±&ëÍÈ» K(8p0N?!æ2"ÛˆNIJX>R¼ÐO‚M '¡¨2¸*Ÿþ>#n↠å@‚<[:¡Iïf’ ¤TÚ˘CdbÜÙ“[«ŽEú5MBo¤×@€`@„€Êt W-3 ¶Ÿ¡BíêäjIÝ…Eò9[T…$íêﯧ„…•s»Óȳ¹€ÅÚdc®UUρ#±Ùïldj?´í¼²`\ŽÁðÞu|3'ÖŒ]ë6 ¶S#²‡˜FKLÈ *N E´‘áäŠ$˜›eÄYD„ºq«.è촁ƒs \-ÔjA 9²õ÷å- üúM[Âx(ís÷ì®x€|í¡Ù’p¦‚ ŽkÛTÇDpE@WÜ ²Ç]kŠ1¨ þ€·Yb ÓÁ‰l°*n0 ç™—žzBdОu¾7ĉBl€â‰-ºx~|UåU‰  h*Hœ|e"#"?vpÄiŠe6^ˆ„+qâŠm8 #VÇá ‘å–ÄV„œ|Аè•m"сœn|@›U¶ÆÎž—Špb¥G¨ED”€±Úê2FÌIç? >Éxå Œ± ¡¤„%‘žjŸ‘ꄯ<Ìaà9ijÐ2˜D¦È&›†Z`‚å]wþ¼Â:ç6àB¤7eFJ|õÒ§Õ,¨äàFÇ®cS·Ê¶+B°,‘Þ˜ºNûãØ>PADÌHD¹æž«ÄÀnÌ¥}­#Ë’ë QÀÉSÌÂÇ2ÌXÀ{æk²lQÁ2«ÊðÀ¯w|2Í h‹ÄÂG€,m¾¶ë3ÐÙ6-´ÅE¬L°ÆIij*K½ÀÇqï`DwVÍQXœÚÔpeœ±¬Ñ q˜§Tœ½µƒ°Œìu Â<¶aØ*At¯lmEØ ü ôÛN[P1ÔÛ¦­±$ÜÆ@`ùåDpy¶yXvCAyåB`ŽD¶ 0QwG#¯ æš[^Äþ $ÀÓÝǦ{„L™[±úKÄgÌ;ï£S~¹ìGX.ôgoT.»åˆ°ùŸûù¡?1zö¦Ÿž:ÅgÁ|ìL¹ „®£œŠ‚à0œ]PÁ^p F<"•ç?!,ñ‡N4—…PÄ Á„ö¨Û:Tè@hÀ‹%táÿ:ø-žI<`þ‹p I….)^ 40D#p@ƒj4–؀:²‰1Øâr˜¼F2oW¼#Z†;$Q q” ‘ ÂK¦ñNl#29 !’F@¥Bh·ᏀL!—XFóLH‘Kh¤.«hE&JòG¨¥<™WN!€ÑÙÚˆY„@†>Œž19J" 2,/ &.GXB%ÌRÈ9B6¹W]’î×ÔW¥’IÎ$ ñ‹ÓŒE8YÆ ¼³™ñA5“à®Q.aŸB€&Ø©³ JÁ—! ¦t)K%tœ-¦JF bòNMxLôþ)ÐR¸Ð™‘ èÝ6‘O!THÌ„HÛ ‰ !ù ) , =( …AXKgNgYvYxR"k\%wh…hŽh%ˆg+ˆs%—r.—x3˜x¨}9®€&©€+¨Œ,©‡7§‰%¶†(¹–.¹5·&Çš)ǘ;Í•&×£*Ȳ)ׯ7×»4ï°3øÌ6ò‘HÖ§KÍ»Hó¯T÷¨Yÿ»qÿÇhÿ þÀ”pH,È¤rÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿à°xL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~Ïïûÿ€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§g ª« E$±²¨ª­ · °²½$E$ÂÕ««D· Í ¿¦Ç¶¸ÌŒ¾³CÃÅÆ E ééH½MÛÂGâªD­ çBêêϾD²ÒaÀà€Š1r­ðÓ¤ ÔožzU!L˜C'¾yW½UGtäÇïÙllê0×àÂuGþ)AÀs[þ·xì ÁxO%ƒûX2ó—  P£n›R/¡ÑšHše+êDm?# —‘Ç£6¡8íJ¡ŸâDiäªM¥Ö„ôj“¬¹£5oQ7°- <‡ *´lãÓŒ2r/a!l)dÈ A™ÈE¢ôÔ͆…ð ;Ö˜c ¡%ß‚’Ùˆâ¸b½—pe~C"BíëÚHïeF2§æŠ8qb t_`urŠeü wÅu3êæPv§h•"ß`íÍxçLĹÜÖ3á  ~Öº“®›¸ÏMDfJÙ °„ÛµáWõ%§œ‚à©–‚X ÓØ)@®Ñ›Eþ´wëuÅSxb8y\mÖzœ¥§ZbºE—ÂLªÌw!y(>¡™wú=Ç|ÅÝs¢d €CÁW)HÜcC$€L Ä7„r.á\{)@ð` @ äXÈ$PD” `šaG:§æˆOˆ72EÐamn]ù"ŒcÊxÑŒ° &dR8`g«iÙŸLR!¦P …d’ä¡“¦ðÎTƒ¦ià|À _ ¥ Qi#¦Šg›Æ ›noMµ ›V ã£)p ç£ÎW…š=Âeªk§†j„ ´®1ß²sÉxéW«jšl|0¯B0Û, \jÛ´›6±¬¶C ÛíWþï|ëÙ‹¸ñzĸV {ì;Ýñn¼òVˆm³I¼³.Ðã¤PN¥ ²µ¼„µCã+¹ÍByî£Ñ¾HŸ›ëê 7ìYÆFTk¨SaoaY$Dµœìï¿Ã29RÈkt Çïfñ ÇÒ:ÀÐSp¹3ÇI¨â¥DZÄ ü9Ïýögñ½­uÔ*3)O‘˜Ö[_hv ,àî×Et Ÿé¶BH€ Õ[ü±64M@ÔSÌM7dÐl5-ÄÙU܍´©zߌ3Ô€3ž„ „ ¶ÛPô½5×g› êÚ˜kN„Ý…0Îj4€Ìë°“#{þÕ3S2çKÜ'ợlø¼Ú2K{° {Û¶?žm𸧠ËI¼nEò='êüóºè^üæÃ_Û=°óž‚ì#Oý¿Í'¡½áo..ÏYìnüñCœO±Áa¿¢Kô½o,üÄËbö²çºíï{ËC Ú— "”Ï{ËK ÍÒw„õ±Oz dÕ¨à:$ ƒô—«v»] A#ð «€¿šéz)Rx׿ˆ¥‚d``èw-îyÏf×K!ð€þ­Ð|ìPľ„=Ì`ý(f” 'Pa ¥ÐBJa%Ðâf§„%Š¡}FàáÝ×6>ÉäŠG"éŽè=ø!oа^FP¼Ø©Q„ÀCÙÁ`(Ž\ÄÝ® ©Â$<n@dÄ E#ììUÒI! ‚#lù‹`k¦ÐÇ'Rró’ZýNBÈMF Í[¤+‹ðɈ-áwj¨¥þ8¾rá ,VÂh„"|½œ=×G_¦Ñ™EØ 0i*%̲˜Æda0mV‚k¾)›;„&6 p>ÓjK “¦Ç# âDÂ:ûc?:R Ó¬fÞéI-Ì“•Ã<ä=™Ï7˜3œ¨˜c2ŒW ,ˆ”8(T™P‰F¡Jhç"‚ ; 403WebShell
403Webshell
Server IP : 172.67.177.218  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux premium229.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : akhalid ( 749)
PHP Version : 8.3.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhalid/omerys/public_html/catalog/model/extension/fraud/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhalid/omerys/public_html/catalog/model/extension/fraud/maxmind.php
<?php
class ModelExtensionFraudMaxMind extends Model {
	public function check($order_info) {
		$risk_score = 0;

		$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "maxmind` WHERE order_id = '" . (int)$order_info['order_id'] . "'");

		if ($query->num_rows) {
			$risk_score = $query->row['risk_score'];
		} else {
			/*
			maxmind api
			http://www.maxmind.com/app/ccv

			paypal api
			https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables
			*/

			$request = 'i=' . urlencode($order_info['ip']);
			$request .= '&city=' . urlencode($order_info['payment_city']);
			$request .= '&region=' . urlencode($order_info['payment_zone']);
			$request .= '&postal=' . urlencode($order_info['payment_postcode']);
			$request .= '&country=' . urlencode($order_info['payment_country']);
			$request .= '&domain=' . urlencode(utf8_substr(strrchr($order_info['email'], '@'), 1));
			$request .= '&custPhone=' . urlencode($order_info['telephone']);
			$request .= '&license_key=' . urlencode($this->config->get('fraud_maxmind_key'));

			if ($order_info['shipping_method']) {
				$request .= '&shipAddr=' . urlencode($order_info['shipping_address_1']);
				$request .= '&shipCity=' . urlencode($order_info['shipping_city']);
				$request .= '&shipRegion=' . urlencode($order_info['shipping_zone']);
				$request .= '&shipPostal=' . urlencode($order_info['shipping_postcode']);
				$request .= '&shipCountry=' . urlencode($order_info['shipping_country']);
			}

			$request .= '&user_agent=' . urlencode($order_info['user_agent']);
			$request .= '&forwardedIP=' . urlencode($order_info['forwarded_ip']);
			$request .= '&emailMD5=' . urlencode(md5(utf8_strtolower($order_info['email'])));
			//$request .= '&passwordMD5=' . urlencode($order_info['password']);
			$request .= '&accept_language=' .  urlencode($order_info['accept_language']);
			$request .= '&order_amount=' . urlencode($this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false));
			$request .= '&order_currency=' . urlencode($order_info['currency_code']);

			$curl = curl_init('https://minfraud1.maxmind.com/app/ccv2r');

			curl_setopt($curl, CURLOPT_HEADER, 0);
			curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($curl, CURLOPT_FORBID_REUSE, 1);
			curl_setopt($curl, CURLOPT_FRESH_CONNECT, 1);
			curl_setopt($curl, CURLOPT_POST, 1);
			curl_setopt($curl, CURLOPT_POSTFIELDS, $request);

			$response = curl_exec($curl);

			curl_close($curl);

			$risk_score = 0;

			if ($response) {
				$order_id = $order_info['order_id'];
				$customer_id = $order_info['customer_id'];

				$response_info = array();

				$parts = explode(';', $response);

				foreach ($parts as $part) {
					list($key, $value) = explode('=', $part);

					$response_info[$key] = $value;
				}

				if (isset($response_info['countryMatch'])) {
					$country_match = $response_info['countryMatch'];
				} else {
					$country_match = '';
				}

				if (isset($response_info['countryCode'])) {
					$country_code = $response_info['countryCode'];
				} else {
					$country_code = '';
				}

				if (isset($response_info['highRiskCountry'])) {
					$high_risk_country = $response_info['highRiskCountry'];
				} else {
					$high_risk_country = '';
				}

				if (isset($response_info['distance'])) {
					$distance = $response_info['distance'];
				} else {
					$distance = '';
				}

				if (isset($response_info['ip_region'])) {
					$ip_region = $response_info['ip_region'];
				} else {
					$ip_region = '';
				}

				if (isset($response_info['ip_city'])) {
					$ip_city = $response_info['ip_city'];
				} else {
					$ip_city = '';
				}

				if (isset($response_info['ip_latitude'])) {
					$ip_latitude = $response_info['ip_latitude'];
				} else {
					$ip_latitude = '';
				}

				if (isset($response_info['ip_longitude'])) {
					$ip_longitude = $response_info['ip_longitude'];
				} else {
					$ip_longitude = '';
				}

				if (isset($response_info['ip_isp'])) {
					$ip_isp = $response_info['ip_isp'];
				} else {
					$ip_isp = '';
				}

				if (isset($response_info['ip_org'])) {
					$ip_org = $response_info['ip_org'];
				} else {
					$ip_org = '';
				}

				if (isset($response_info['ip_asnum'])) {
					$ip_asnum = $response_info['ip_asnum'];
				} else {
					$ip_asnum = '';
				}

				if (isset($response_info['ip_userType'])) {
					$ip_user_type = $response_info['ip_userType'];
				} else {
					$ip_user_type = '';
				}

				if (isset($response_info['ip_countryConf'])) {
					$ip_country_confidence = $response_info['ip_countryConf'];
				} else {
					$ip_country_confidence = '';
				}

				if (isset($response_info['ip_regionConf'])) {
					$ip_region_confidence = $response_info['ip_regionConf'];
				} else {
					$ip_region_confidence = '';
				}

				if (isset($response_info['ip_cityConf'])) {
					$ip_city_confidence = $response_info['ip_cityConf'];
				} else {
					$ip_city_confidence = '';
				}

				if (isset($response_info['ip_postalConf'])) {
					$ip_postal_confidence = $response_info['ip_postalConf'];
				} else {
					$ip_postal_confidence = '';
				}

				if (isset($response_info['ip_postalCode'])) {
					$ip_postal_code = $response_info['ip_postalCode'];
				} else {
					$ip_postal_code = '';
				}

				if (isset($response_info['ip_accuracyRadius'])) {
					$ip_accuracy_radius = $response_info['ip_accuracyRadius'];
				} else {
					$ip_accuracy_radius = '';
				}

				if (isset($response_info['ip_netSpeedCell'])) {
					$ip_net_speed_cell = $response_info['ip_netSpeedCell'];
				} else {
					$ip_net_speed_cell = '';
				}

				if (isset($response_info['ip_metroCode'])) {
					$ip_metro_code = $response_info['ip_metroCode'];
				} else {
					$ip_metro_code = '';
				}
				if (isset($response_info['ip_areaCode'])) {
					$ip_area_code = $response_info['ip_areaCode'];
				} else {
					$ip_area_code = '';
				}

				if (isset($response_info['ip_timeZone'])) {
					$ip_time_zone = $response_info['ip_timeZone'];
				} else {
					$ip_time_zone = '';
				}

				if (isset($response_info['ip_regionName'])) {
					$ip_region_name = $response_info['ip_regionName'];
				} else {
					$ip_region_name = '';
				}

				if (isset($response_info['ip_domain'])) {
					$ip_domain = $response_info['ip_domain'];
				} else {
					$ip_domain = '';
				}
				if (isset($response_info['ip_countryName'])) {
					$ip_country_name = $response_info['ip_countryName'];
				} else {
					$ip_country_name = '';
				}

				if (isset($response_info['ip_continentCode'])) {
					$ip_continent_code = $response_info['ip_continentCode'];
				} else {
					$ip_continent_code = '';
				}

				if (isset($response_info['ip_corporateProxy'])) {
					$ip_corporate_proxy = $response_info['ip_corporateProxy'];
				} else {
					$ip_corporate_proxy = '';
				}

				if (isset($response_info['anonymousProxy'])) {
					$anonymous_proxy = $response_info['anonymousProxy'];
				} else {
					$anonymous_proxy = '';
				}

				if (isset($response_info['proxyScore'])) {
					$proxy_score = $response_info['proxyScore'];
				} else {
					$proxy_score = '';
				}

				if (isset($response_info['isTransProxy'])) {
					$is_trans_proxy = $response_info['isTransProxy'];
				} else {
					$is_trans_proxy = '';
				}

				if (isset($response_info['freeMail'])) {
					$free_mail = $response_info['freeMail'];
				} else {
					$free_mail = '';
				}

				if (isset($response_info['carderEmail'])) {
					$carder_email = $response_info['carderEmail'];
				} else {
					$carder_email = '';
				}

				if (isset($response_info['highRiskUsername'])) {
					$high_risk_username = $response_info['highRiskUsername'];
				} else {
					$high_risk_username = '';
				}

				if (isset($response_info['highRiskPassword'])) {
					$high_risk_password = $response_info['highRiskPassword'];
				} else {
					$high_risk_password = '';
				}

				if (isset($response_info['binMatch'])) {
					$bin_match = $response_info['binMatch'];
				} else {
					$bin_match = '';
				}

				if (isset($response_info['binCountry'])) {
					$bin_country = $response_info['binCountry'];
				} else {
					$bin_country = '';
				}

				if (isset($response_info['binNameMatch'])) {
					$bin_name_match = $response_info['binNameMatch'];
				} else {
					$bin_name_match = '';
				}

				if (isset($response_info['binName'])) {
					$bin_name = $response_info['binName'];
				} else {
					$bin_name = '';
				}

				if (isset($response_info['binPhoneMatch'])) {
					$bin_phone_match = $response_info['binPhoneMatch'];
				} else {
					$bin_phone_match = '';
				}

				if (isset($response_info['binPhone'])) {
					$bin_phone = $response_info['binPhone'];
				} else {
					$bin_phone = '';
				}

				if (isset($response_info['custPhoneInBillingLoc'])) {
					$customer_phone_in_billing_location = $response_info['custPhoneInBillingLoc'];
				} else {
					$customer_phone_in_billing_location = '';
				}

				if (isset($response_info['shipForward'])) {
					$ship_forward = $response_info['shipForward'];
				} else {
					$ship_forward = '';
				}

				if (isset($response_info['cityPostalMatch'])) {
					$city_postal_match = $response_info['cityPostalMatch'];
				} else {
					$city_postal_match = '';
				}

				if (isset($response_info['shipCityPostalMatch'])) {
					$ship_city_postal_match = $response_info['shipCityPostalMatch'];
				} else {
					$ship_city_postal_match = '';
				}

				if (isset($response_info['score'])) {
					$score = $response_info['score'];
				} else {
					$score = '';
				}

				if (isset($response_info['explanation'])) {
					$explanation = $response_info['explanation'];
				} else {
					$explanation = '';
				}

				if (isset($response_info['riskScore'])) {
					$risk_score = $response_info['riskScore'];
				} else {
					$risk_score = '';
				}

				if (isset($response_info['queriesRemaining'])) {
					$queries_remaining = $response_info['queriesRemaining'];
				} else {
					$queries_remaining = '';
				}

				if (isset($response_info['maxmindID'])) {
					$maxmind_id = $response_info['maxmindID'];
				} else {
					$maxmind_id = '';
				}

				if (isset($response_info['err'])) {
					$error = $response_info['err'];
				} else {
					$error = '';
				}

				$this->db->query("INSERT INTO `" . DB_PREFIX . "maxmind` SET order_id = '" . (int)$order_id . "', customer_id = '" . (int)$customer_id . "', country_match = '" . $this->db->escape($country_match) . "', country_code = '" . $this->db->escape($country_code) . "', high_risk_country = '" . $this->db->escape($high_risk_country) . "', distance = '" . (int)$distance . "', ip_region = '" . $this->db->escape($ip_region) . "', ip_city = '" . $this->db->escape($ip_city) . "', ip_latitude = '" . $this->db->escape($ip_latitude) . "', ip_longitude = '" . $this->db->escape($ip_longitude) . "', ip_isp = '" . $this->db->escape($ip_isp) . "', ip_org = '" . $this->db->escape($ip_org) . "', ip_asnum = '" . (int)$ip_asnum . "', ip_user_type = '" . $this->db->escape($ip_user_type) . "', ip_country_confidence = '" . $this->db->escape($ip_country_confidence) . "', ip_region_confidence = '" . $this->db->escape($ip_region_confidence) . "', ip_city_confidence = '" . $this->db->escape($ip_city_confidence) . "', ip_postal_confidence = '" . $this->db->escape($ip_postal_confidence) . "', ip_postal_code = '" . $this->db->escape($ip_postal_code) . "', ip_accuracy_radius = '" . (int)$ip_accuracy_radius . "', ip_net_speed_cell = '" . $this->db->escape($ip_net_speed_cell) . "', ip_metro_code = '" . (int)$ip_metro_code . "', ip_area_code = '" . (int)$ip_area_code . "', ip_time_zone = '" . $this->db->escape($ip_time_zone) . "', ip_region_name = '" . $this->db->escape($ip_region_name) . "', ip_domain = '" . $this->db->escape($ip_domain) . "', ip_country_name = '" . $this->db->escape($ip_country_name) . "', ip_continent_code = '" . $this->db->escape($ip_continent_code) . "', ip_corporate_proxy = '" . $this->db->escape($ip_corporate_proxy) . "', anonymous_proxy = '" . $this->db->escape($anonymous_proxy) . "', proxy_score = '" . (float)$proxy_score . "', is_trans_proxy = '" . $this->db->escape($is_trans_proxy) . "', free_mail = '" . $this->db->escape($free_mail) . "', carder_email = '" . $this->db->escape($carder_email) . "', high_risk_username = '" . $this->db->escape($high_risk_username) . "', high_risk_password = '" . $this->db->escape($high_risk_password) . "', bin_match = '" . $this->db->escape($bin_match) . "', bin_country = '" . $this->db->escape($bin_country) . "',  bin_name_match = '" . $this->db->escape($bin_name_match) . "', bin_name = '" . $this->db->escape($bin_name) . "', bin_phone_match = '" . $this->db->escape($bin_phone_match) . "', bin_phone = '" . $this->db->escape($bin_phone) . "', customer_phone_in_billing_location = '" . $this->db->escape($customer_phone_in_billing_location) . "', ship_forward = '" . $this->db->escape($ship_forward) . "', city_postal_match = '" . $this->db->escape($city_postal_match) . "', ship_city_postal_match = '" . $this->db->escape($ship_city_postal_match) . "', score = '" . (float)$score . "', explanation = '" . $this->db->escape($explanation) . "', risk_score = '" . (float)$risk_score . "', queries_remaining = '" . (int)$queries_remaining . "', maxmind_id = '" . $this->db->escape($maxmind_id) . "', error = '" . $this->db->escape($error) . "', date_added = NOW()");
			}
		}

		if ($risk_score > $this->config->get('fraud_maxmind_score') && $this->config->get('fraud_maxmind_key')) {
			return $this->config->get('maxmind_order_status_id');
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit