mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
geoip: fix XML to get remove of useless wrapping para tags
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-asnum-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-asnum-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_asnum_by_name</refname>
|
||||
<refpurpose>Obtém os Números do Sistema Autônomo (ASN)</refpurpose>
|
||||
@@ -20,18 +21,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -43,13 +42,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_asnum_by_name</function></title>
|
||||
<para>
|
||||
Isso gerará o ASN do host www.example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_asnum_by_name</function></title>
|
||||
<para>
|
||||
Isso gerará o ASN do host www.example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$asn = geoip_asnum_by_name('www.example.com');
|
||||
@@ -59,19 +57,17 @@ if ($asn) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
O ASN é: AS15133 EdgeCast Networks, Inc
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-continent-code-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-continent-code-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_continent_code_by_name</refname>
|
||||
<refpurpose>Obtém o código de duas letras do continente</refpurpose>
|
||||
@@ -20,18 +21,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -84,13 +83,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_continent_code_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_continent_code_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$continent = geoip_continent_code_by_name('www.example.com');
|
||||
@@ -99,28 +97,24 @@ if ($continent) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host está localizado em: NA
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-country-code-by-name" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.geoip-country-code-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_country_code_by_name</refname>
|
||||
<refpurpose>Obtém o código de país de duas letras</refpurpose>
|
||||
@@ -20,18 +21,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -43,13 +42,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_code_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_code_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$country = geoip_country_code_by_name('www.example.com');
|
||||
@@ -58,15 +56,14 @@ if ($country) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host está localizado em: US
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
@@ -82,16 +79,13 @@ Este host está localizado em: US
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code3_by_name</function></member>
|
||||
<member><function>geoip_country_name_by_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code3_by_name</function></member>
|
||||
<member><function>geoip_country_name_by_name</function></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-country-code3-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-country-code3-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_country_code3_by_name</refname>
|
||||
<refpurpose>Obtenha o código de país de três letras</refpurpose>
|
||||
@@ -20,18 +21,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -43,13 +42,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_code3_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_code3_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$country = geoip_country_code3_by_name('www.example.com');
|
||||
@@ -58,29 +56,25 @@ if ($country) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host está localizado em: USA
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
<member><function>geoip_country_name_by_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
<member><function>geoip_country_name_by_name</function></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-country-name-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-country-name-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_country_name_by_name</refname>
|
||||
<refpurpose>Obtém o nome completo do país</refpurpose>
|
||||
@@ -20,18 +21,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja localização deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -43,13 +42,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_name_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_country_name_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá onde o host example.com está localizado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$country = geoip_country_name_by_name('www.example.com');
|
||||
@@ -58,29 +56,25 @@ if ($country) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host está localizado em: United States
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
<member><function>geoip_country_code3_by_name</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
<simplelist>
|
||||
<member><function>geoip_country_code_by_name</function></member>
|
||||
<member><function>geoip_country_code3_by_name</function></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-database-info" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-database-info">
|
||||
<refnamediv>
|
||||
<refname>geoip_database_info</refname>
|
||||
<refpurpose>Obtém informações do banco de dados GeoIP</refpurpose>
|
||||
@@ -25,21 +26,19 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -50,31 +49,28 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_database_info</function></title>
|
||||
<para>
|
||||
Isso exibirá informações sobre o banco de dados.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_database_info</function></title>
|
||||
<para>
|
||||
Isso exibirá informações sobre o banco de dados.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
print geoip_database_info(GEOIP_COUNTRY_EDITION);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
GEO-106FREE 20060801 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-db-avail" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-db-avail">
|
||||
<refnamediv>
|
||||
<refname>geoip_db_avail</refname>
|
||||
<refpurpose>Determina se o banco de dados GeoIP está disponível</refpurpose>
|
||||
@@ -24,21 +25,19 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -49,13 +48,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_avail</function></title>
|
||||
<para>
|
||||
Isso exibirá a string da versão atual do banco de dados.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_avail</function></title>
|
||||
<para>
|
||||
Isso exibirá a string da versão atual do banco de dados.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
@@ -63,19 +61,17 @@ if (geoip_db_avail(GEOIP_COUNTRY_EDITION))
|
||||
print geoip_database_info(GEOIP_COUNTRY_EDITION);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
GEO-106FREE 20080801 Build 1 Copyright (c) 2006 MaxMind LLC All Rights Reserved
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-db-filename" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-db-filename">
|
||||
<refnamediv>
|
||||
<refname>geoip_db_filename</refname>
|
||||
<refpurpose>Retorna o nome do arquivo do banco de dados GeoIP correspondente</refpurpose>
|
||||
@@ -25,21 +26,19 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>database</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O tipo de banco de dados como um inteiro. Pode-se usar as
|
||||
<link linkend="geoip.constants">várias constantes</link> definidas com
|
||||
esta extensão (por exemplo: GEOIP_*_EDITION).
|
||||
</para>
|
||||
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -50,13 +49,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_filename</function></title>
|
||||
<para>
|
||||
Isso produzirá o nome do arquivo do banco de dados correspondente.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_filename</function></title>
|
||||
<para>
|
||||
Isso produzirá o nome do arquivo do banco de dados correspondente.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
@@ -64,19 +62,17 @@ print geoip_db_filename(GEOIP_COUNTRY_EDITION);
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
/usr/share/GeoIP/GeoIP.dat
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: cbac1ecf71d754707d69bdc344c4031c157eaa54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-db-get-all-info" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-db-get-all-info">
|
||||
<refnamediv>
|
||||
<refname>geoip_db_get_all_info</refname>
|
||||
<refpurpose>Retorna informações detalhadas sobre todos os tipos de banco de dados GeoIP</refpurpose>
|
||||
@@ -9,7 +10,7 @@
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>geoip_db_get_all_info</methodname>
|
||||
<void />
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
|
||||
<para>
|
||||
@@ -24,27 +25,25 @@
|
||||
<para>
|
||||
Os nomes das diferentes chaves do array associativo de retorno são os seguintes:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"available" -- booleano, indica se o banco de dados está disponível (consulte
|
||||
<function>geoip_db_avail</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"description" -- A descrição do banco de dados
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"filename" -- O nome do arquivo do banco de dados no disco (consulte
|
||||
<function>geoip_db_filename</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"available" -- booleano, indica se o banco de dados está disponível (consulte
|
||||
<function>geoip_db_avail</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"description" -- A descrição do banco de dados
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"filename" -- O nome do arquivo do banco de dados no disco (consulte
|
||||
<function>geoip_db_filename</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</refsect1>
|
||||
|
||||
@@ -62,13 +61,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_get_all_info</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo todas as informações.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_get_all_info</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo todas as informações.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$infos = geoip_db_get_all_info();
|
||||
@@ -77,9 +75,9 @@ if (is_array($infos)) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
array(11) {
|
||||
[1]=>
|
||||
@@ -105,17 +103,15 @@ array(11) {
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_get_all_info</function></title>
|
||||
<para>
|
||||
Pode-se usar as várias constantes como chaves para obter apenas partes das informações.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_db_get_all_info</function></title>
|
||||
<para>
|
||||
Pode-se usar as várias constantes como chaves para obter apenas partes das informações.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$infos = geoip_db_get_all_info();
|
||||
@@ -124,19 +120,17 @@ if ($infos[GEOIP_COUNTRY_EDITION]['available']) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
GeoIP Country Edition
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-domain-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-domain-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_domain_by_name</refname>
|
||||
<refpurpose>Obtém o nome de domínio de segundo nível</refpurpose>
|
||||
@@ -25,18 +26,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -48,13 +47,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_domain_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o domínio associado ao IP 61.106.139.1.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_domain_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o domínio associado ao IP 61.106.139.1.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$domain = geoip_domain_by_name('61.106.139.1');
|
||||
@@ -65,19 +63,17 @@ if ($domain) {
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
O domínio é: von.co.kr
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: bf47871026cca01093079908a0186a07fd98cea3 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-id-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-id-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_id_by_name</refname>
|
||||
<refpurpose>Obtém o tipo de conexão com a Internet</refpurpose>
|
||||
@@ -19,46 +20,42 @@
|
||||
<para>
|
||||
O valor de retorno é numérico e pode ser comparado às seguintes constantes:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_UNKNOWN_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_DIALUP_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_CABLEDSL_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_CORPORATE_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_UNKNOWN_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_DIALUP_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_CABLEDSL_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
GEOIP_CORPORATE_SPEED
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cujo tipo de conexão deve ser consultado.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cujo tipo de conexão deve ser consultado.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -69,13 +66,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_id_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o tipo de conexão do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_id_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o tipo de conexão do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$netspeed = geoip_id_by_name('www.example.com');
|
||||
@@ -98,19 +94,17 @@ switch ($netspeed) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
O tipo de conexão é corporativa
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-isp-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-isp-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_isp_by_name</refname>
|
||||
<refpurpose>Obtém o nome do Provedor de Serviços de Internet (ISP)</refpurpose>
|
||||
@@ -25,18 +26,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -48,13 +47,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_isp_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o nome do ISP do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_isp_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o nome do ISP do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$isp = geoip_isp_by_name('www.example.com');
|
||||
@@ -63,19 +61,17 @@ if ($isp) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host é do ISP: ICANN c/o Internet Assigned Numbers Authority
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-netspeedcell-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-netspeedcell-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_netspeedcell_by_name</refname>
|
||||
<refpurpose>Obtém a velocidade de conexão da Internet</refpurpose>
|
||||
@@ -27,46 +28,42 @@
|
||||
<para>
|
||||
O valor de retorno é uma string, os valores comuns são:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Cable/DSL
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Dialup
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Cellular
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Corporate
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Cable/DSL
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Dialup
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Cellular
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Corporate
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -78,13 +75,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_netspeedcell_by_name</function></title>
|
||||
<para>
|
||||
Isso mostrará a velocidade de conexão do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_netspeedcell_by_name</function></title>
|
||||
<para>
|
||||
Isso mostrará a velocidade de conexão do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$netspeed = geoip_netspeedcell_by_name('www.example.com');
|
||||
@@ -94,19 +90,17 @@ if ($netspeed) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
O tipo de conexão é: Corporate
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-org-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-org-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_org_by_name</refname>
|
||||
<refpurpose>Obtém o nome da organização</refpurpose>
|
||||
@@ -25,18 +26,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -48,13 +47,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_org_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá para quem o IP do host example.com está alocado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_org_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá para quem o IP do host example.com está alocado.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$org = geoip_org_by_name('www.example.com');
|
||||
@@ -63,19 +61,17 @@ if ($org) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Este host está alocado para: ICANN c/o Internet Assigned Numbers Authority
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 19e8122137a1d42ed60f17fe2c0c2b69b0b2d16b Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-record-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-record-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_record_by_name</refname>
|
||||
<refpurpose>Retorna as informações detalhadas da cidade encontradas no banco de dados GeoIP</refpurpose>
|
||||
@@ -24,85 +25,81 @@
|
||||
<para>
|
||||
Os nomes das diferentes chaves do array associativo de retorno são os seguintes:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"continent_code" -- Código do continente de duas letras (a partir da versão 1.0.4 com
|
||||
libgeoip 1.4.3 ou mais recente)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code" -- Código do país com duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code3" -- Código do país de três letras (consulte
|
||||
<function>geoip_country_code3_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_name" -- O nome do país (consulte
|
||||
<function>geoip_country_name_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"region" -- O código de região (ex: QC para Quebec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"city" -- A cidade.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"postal_code" -- O Código Postal, FSA ou CEP.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"latitude" -- A latitude como um <type>float</type> com sinal.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"longitude" -- A longitude como um <type>float</type> com sinal.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"dma_code" -- Código de área de mercado designado (somente EUA e Canadá)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"area_code" -- O código de área PSTN (ex: 212)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"continent_code" -- Código do continente de duas letras (a partir da versão 1.0.4 com
|
||||
libgeoip 1.4.3 ou mais recente)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code" -- Código do país com duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code3" -- Código do país de três letras (consulte
|
||||
<function>geoip_country_code3_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_name" -- O nome do país (consulte
|
||||
<function>geoip_country_name_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"region" -- O código de região (ex: QC para Quebec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"city" -- A cidade.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"postal_code" -- O Código Postal, FSA ou CEP.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"latitude" -- A latitude como um <type>float</type> com sinal.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"longitude" -- A longitude como um <type>float</type> com sinal.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"dma_code" -- Código de área de mercado designado (somente EUA e Canadá)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"area_code" -- O código de área PSTN (ex: 212)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cujo registro deve ser consultado.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cujo registro deve ser consultado.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -114,43 +111,40 @@
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>PECL geoip 1.0.4</entry>
|
||||
<entry>
|
||||
Adicionando o continent_code apenas com a biblioteca GeoIP 1.4.3 ou mais recente
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PECL geoip 1.0.3</entry>
|
||||
<entry>
|
||||
Adicionando country_code3 e country_name
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>PECL geoip 1.0.4</entry>
|
||||
<entry>
|
||||
Adicionando o continent_code apenas com a biblioteca GeoIP 1.4.3 ou mais recente
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PECL geoip 1.0.3</entry>
|
||||
<entry>
|
||||
Adicionando country_code3 e country_name
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_record_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo o registro do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_record_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo o registro do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$record = geoip_record_by_name('www.example.com');
|
||||
@@ -159,9 +153,9 @@ if ($record) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
@@ -178,13 +172,11 @@ Array
|
||||
[area_code] => 310
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-region-by-name" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-region-by-name">
|
||||
<refnamediv>
|
||||
<refname>geoip_region_by_name</refname>
|
||||
<refpurpose>Obtém o código do país e a região</refpurpose>
|
||||
@@ -24,36 +25,32 @@
|
||||
<para>
|
||||
Os nomes das diferentes chaves do array associativo de retorno são os seguintes:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code" -- Código do país com duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"region" -- O código da região (ex: QC para Quebec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"country_code" -- Código do país com duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"region" -- O código da região (ex: QC para Quebec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja região deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>hostname</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O nome do host ou endereço IP cuja região deve ser consultada.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -65,14 +62,13 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_region_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo o código do país e a região
|
||||
do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_region_by_name</function></title>
|
||||
<para>
|
||||
Isso exibirá o array contendo o código do país e a região
|
||||
do host example.com.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$region = geoip_region_by_name('www.example.com');
|
||||
@@ -81,9 +77,9 @@ if ($region) {
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
@@ -91,13 +87,11 @@ Array
|
||||
[region] => CA
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-region-name-by-code" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.geoip-region-name-by-code">
|
||||
<refnamediv>
|
||||
<refname>geoip_region_name_by_code</refname>
|
||||
<refpurpose>Retorna o nome da região para alguma combinação de código de país e região</refpurpose>
|
||||
@@ -34,28 +35,26 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>country_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de país de duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>region_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de região de duas letras (ou dígitos) (consulte
|
||||
<function>geoip_region_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>country_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de país de duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>region_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de região de duas letras (ou dígitos) (consulte
|
||||
<function>geoip_region_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -116,7 +115,6 @@ O nome da região para JP/01 é: Aichi
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-setup-custom-directory" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.geoip-setup-custom-directory">
|
||||
<refnamediv>
|
||||
<refname>geoip_setup_custom_directory</refname>
|
||||
<refpurpose>Define um diretório personalizado para o banco de dados GeoIP</refpurpose>
|
||||
@@ -21,18 +22,16 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>path</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O caminho completo de onde o banco de dados GeoIP está no disco.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>path</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O caminho completo de onde o banco de dados GeoIP está no disco.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -43,13 +42,12 @@
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_setup_custom_directory</function></title>
|
||||
<para>
|
||||
Isso alterará o caminho padrão do banco de dados GeoIP.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Um exemplo de <function>geoip_setup_custom_directory</function></title>
|
||||
<para>
|
||||
Isso alterará o caminho padrão do banco de dados GeoIP.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
@@ -59,19 +57,17 @@ print geoip_db_filename(GEOIP_COUNTRY_EDITION);
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
/algum/outro/caminho/GeoIP.dat
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4754397753fd79f1c846868b66a2448babab1c54 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
|
||||
<refentry xml:id="function.geoip-time-zone-by-country-and-region" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: leonardolara Status: ready -->
|
||||
<!-- CREDITS: leonardolara -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.geoip-time-zone-by-country-and-region">
|
||||
<refnamediv>
|
||||
<refname>geoip_time_zone_by_country_and_region</refname>
|
||||
<refpurpose>Retorna o fuso horário para alguma combinação de código de país e região</refpurpose>
|
||||
@@ -34,28 +35,26 @@
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>country_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de país de duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>region_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de região de duas letras (ou dígitos) (consulte
|
||||
<function>geoip_region_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>country_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de país de duas letras (consulte
|
||||
<function>geoip_country_code_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>region_code</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
O código de região de duas letras (ou dígitos) (consulte
|
||||
<function>geoip_region_by_name</function>)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
@@ -116,7 +115,6 @@ Fuso horário para JP/01 é: Asia/Tokyo
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,48 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: d4d5216e7a965ca194f6b1c9dee84cecab2674e5 Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
|
||||
|
||||
<section xml:id="geoip.configuration" xmlns="http://docbook.org/ns/docbook">
|
||||
<!-- EN-Revision: 66458042beed566a850f91dde06a6b8311233ade Maintainer: fernandowobeto Status: ready -->
|
||||
<!-- CREDITS: fernandowobeto -->
|
||||
<section xmlns="http://docbook.org/ns/docbook" xml:id="geoip.configuration">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
<para>
|
||||
<table>
|
||||
<title>&ConfigureOptions; de GeoIP</title>
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Name;</entry>
|
||||
<entry>&Default;</entry>
|
||||
<entry>&Changeable;</entry>
|
||||
<entry>&Changelog;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody xml:id="geoip.configuration.list">
|
||||
<row>
|
||||
<entry><link linkend="ini.geoip.custom-directory">geoip.custom_directory</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry><constant>INI_ALL</constant></entry>
|
||||
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
<table>
|
||||
<title>&ConfigureOptions; de GeoIP</title>
|
||||
<tgroup cols="4">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Name;</entry>
|
||||
<entry>&Default;</entry>
|
||||
<entry>&Changeable;</entry>
|
||||
<entry>&Changelog;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody xml:id="geoip.configuration.list">
|
||||
<row>
|
||||
<entry><link linkend="ini.geoip.custom-directory">geoip.custom_directory</link></entry>
|
||||
<entry>""</entry>
|
||||
<entry><constant>INI_ALL</constant></entry>
|
||||
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
&ini.descriptions.title;
|
||||
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry xml:id="ini.geoip.custom-directory">
|
||||
<term>
|
||||
<parameter>geoip.custom_directory</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Vazio por padrão, mas pode ser configurado para forçar um caminho de banco de dados diferente daquele compilado na biblioteca.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry xml:id="ini.geoip.custom-directory">
|
||||
<term>
|
||||
<parameter>geoip.custom_directory</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Vazio por padrão, mas pode ser configurado para forçar um caminho de banco de dados diferente daquele compilado na biblioteca.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user