Skip to content

Commit

Permalink
Finish translating the Apache module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sobak committed Aug 31, 2024
1 parent 33b2c4f commit d11b727
Show file tree
Hide file tree
Showing 6 changed files with 670 additions and 0 deletions.
83 changes: 83 additions & 0 deletions reference/apache/functions/apache-get-modules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: f3b9d85f71934d6814a493fabb367e10731e0394 Maintainer: sobak Status: ready -->
<!-- $Revision$ -->
<refentry xml:id="function.apache-get-modules" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>apache_get_modules</refname>
<refpurpose>Pobiera listę załadowanych modułów Apache</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>apache_get_modules</methodname>
<void/>
</methodsynopsis>
<para>
Pobiera listę załadowanych modułów Apache.
</para>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Tablica (<type>array</type>) załadowanych modułów Apache.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Przykład użycia <function>apache_get_modules</function></title>
<programlisting role="php">
<![CDATA[
<?php
print_r(apache_get_modules());
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[0] => core
[1] => http_core
[2] => mod_so
[3] => sapi_apache2
[4] => mod_mime
[5] => mod_rewrite
)
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
85 changes: 85 additions & 0 deletions reference/apache/functions/apache-get-version.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: f3b9d85f71934d6814a493fabb367e10731e0394 Maintainer: sobak Status: ready -->
<!-- $Revision$ -->
<refentry xml:id="function.apache-get-version" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>apache_get_version</refname>
<refpurpose>Pobiera wersję Apache</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>apache_get_version</methodname>
<void/>
</methodsynopsis>
<para>
Pobiera wersję Apache.
</para>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Zwraca wersję Apache w wypadku powodzenia&return.falseforfailure;.
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Przykład użycia <function>apache_get_version</function></title>
<programlisting role="php">
<![CDATA[
<?php
$version = apache_get_version();
echo "$version\n";
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Apache/1.3.29 (Unix) PHP/4.3.4
]]>
</screen>
</example>
</para>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>phpinfo</function></member>
</simplelist>
</para>
</refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
112 changes: 112 additions & 0 deletions reference/apache/functions/apache-getenv.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: a331ac8a86bb5929b79be9a369fac1e3af516241 Maintainer: sobak Status: ready -->
<!-- $Revision$ -->
<refentry xml:id="function.apache-getenv" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>apache_getenv</refname>
<refpurpose>Pobiera zmienną subprocess_env</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>apache_getenv</methodname>
<methodparam><type>string</type><parameter>variable</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>walk_to_top</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
Pobiera zmienną środowiskową Apache określoną parametrem
<parameter>variable</parameter>.
</para>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>variable</parameter></term>
<listitem>
<para>
Zmienna środowiskowa Apache
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>walk_to_top</parameter></term>
<listitem>
<para>
Czy pobrać zmienną najwyższego poziomu dostępną dla wszystkich warstw Apache
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Wartość zmiennej środowiskowej Apache w wypadku powodzenia lub &false; w
razie niepowodzenia
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Przykład użycia <function>apache_getenv</function></title>
<para>
Przykład poniżej pokazuje jak pobrać wartość zmiennej środowiskowj
Apache o nazwie <varname>SERVER_ADDR</varname>.
</para>
<programlisting role="php">
<![CDATA[
<?php
$ret = apache_getenv("SERVER_ADDR");
echo $ret;
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
42.24.42.240
]]>
</screen>
</example>
</para>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>apache_setenv</function></member>
<member><function>getenv</function></member>
<member><link linkend="language.variables.superglobals">Zmienne superglobalne</link></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Loading

0 comments on commit d11b727

Please sign in to comment.