29 parent::__construct($arDBRecord);
32 if(array_key_exists(
"GEOIP_COUNTRY_CODE",
$_SERVER) && mb_strlen(
$_SERVER[
"GEOIP_COUNTRY_CODE"]) == 2)
34 $this->is_installed =
true;
35 $this->country_code =
$_SERVER[
"GEOIP_COUNTRY_CODE"];
37 $this->charset =
"iso-8859-1";
41 if(array_key_exists(
"XCONT", $arDBRecord)) $this->continent_code = $arDBRecord[
"XCONT"];
42 if(array_key_exists(
"XLAT", $arDBRecord)) $this->latitude = $arDBRecord[
"XLAT"];
43 if(array_key_exists(
"XLON", $arDBRecord)) $this->longitude = $arDBRecord[
"XLON"];
49 $ar = parent::ArrayForDB();
58 $ar = parent::GetFullInfo();
60 "TITLE" =>
GetMessage(
"STAT_CITY_GEOIP_MOD_CONTINENT"),
61 "VALUE~" => $this->continent_code,
65 "TITLE" =>
GetMessage(
"STAT_CITY_GEOIP_MOD_LONGITUDE"),
66 "VALUE~" => $this->longitude,
70 "TITLE" =>
GetMessage(
"STAT_CITY_GEOIP_MOD_LATITUDE"),
71 "VALUE~" => $this->latitude,
80 "CLASS" =>
"CCityLookup_geoip_mod",
81 "DESCRIPTION" =>
GetMessage(
"STAT_CITY_GEOIP_MOD_DESCR"),
82 "IS_INSTALLED" => $this->is_installed,
83 "CAN_LOOKUP_COUNTRY" =>
true,
84 "CAN_LOOKUP_CITY" => array_key_exists(
"GEOIP_REGION",
$_SERVER) && mb_strlen(
$_SERVER[
"GEOIP_REGION"]) == 2
96 if(array_key_exists(
"GEOIP_COUNTRY_NAME",
$_SERVER) &&
$_SERVER[
"GEOIP_COUNTRY_NAME"] <>
'')
98 $this->country_full_name =
$_SERVER[
"GEOIP_COUNTRY_NAME"];
100 if(array_key_exists(
"GEOIP_REGION",
$_SERVER) && mb_strlen(
$_SERVER[
"GEOIP_REGION"]) == 2)
102 $this->region_name =
$_SERVER[
"GEOIP_REGION"];
103 if(array_key_exists(
"GEOIP_CITY",
$_SERVER) &&
$_SERVER[
"GEOIP_CITY"] <>
'')
105 $this->city_name =
$_SERVER[
"GEOIP_CITY"];
109 if(array_key_exists(
"GEOIP_CONTINENT_CODE",
$_SERVER) &&
$_SERVER[
"GEOIP_CONTINENT_CODE"] <>
'')
111 $this->continent_code =
$_SERVER[
"GEOIP_CONTINENT_CODE"];
113 if(array_key_exists(
"GEOIP_LATITUDE",
$_SERVER) &&
$_SERVER[
"GEOIP_LATITUDE"] <>
'')
115 $this->latitude =
$_SERVER[
"GEOIP_LATITUDE"];
117 if(array_key_exists(
"GEOIP_LONGITUDE",
$_SERVER) &&
$_SERVER[
"GEOIP_LONGITUDE"] <>
'')
119 $this->longitude =
$_SERVER[
"GEOIP_LONGITUDE"];
static OnCityLookup($arDBRecord=false)
__construct($arDBRecord=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)