cvs: peardoc /ja/package/authentication/auth intro.xml
| From: | Tadashi Jokagi | Date: | Sun, 22 Feb 2004 08:52:08 +0000 |
| Subject: | cvs: peardoc /ja/package/authentication/auth intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2678@lists.php.net to get a copy of this message | ||
elf Sun Feb 22 03:52:08 2004 EDT
Modified files:
/peardoc/ja/package/authentication/auth intro.xml
Log:
o translation updated.
http://cvs.php.net/diff.php/peardoc/ja/package/authentication/auth/intro.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/ja/package/authentication/auth/intro.xml
diff -u peardoc/ja/package/authentication/auth/intro.xml:1.1
peardoc/ja/package/authentication/auth/intro.xml:1.2
--- peardoc/ja/package/authentication/auth/intro.xml:1.1 Sat Nov 1 08:54:11 2003
+++ peardoc/ja/package/authentication/auth/intro.xml Sun Feb 22 03:52:07 2004
@@ -1,5 +1,5 @@
-<!-- $Revision: 1.1 $ -->
-<!-- Sync: 1.7 -->
+<!-- $Revision: 1.2 $ -->
+<!-- EN-Revision: 1.7 -->
<refentry id="package.authentication.auth.intro">
<refnamediv>
<refname>å°å
¥</refname>
@@ -51,11 +51,9 @@
</para>
<para>
æåã®è¡ã§ã¯ãPEARãã£ã¬ã¯ããªãããã¡ã¤ã«ãèªã¿è¾¼ãã§ãã¾ãã
- The first line in the above script includes the file from your
- PEAR directory.
-
ããã«ã¯ãPEAR::Authãå®è¡ããéã«å¿
è¦ãªã³ã¼ããå
¨ã¦å«ã¾ãã¦ãã¾ãã
- It contains all the necessary code to run
- <classname>PEAR::Auth</classname>.
+ ããã¯ã
+ <classname>PEAR::Auth</classname>
+
ãå®è¡ããéã«å¿
è¦ãªã³ã¼ããå
¨ã¦å«ã¿ã¾ãã
ãã®å¾ããã°ã¤ã³ç»é¢ã表示ãã颿°ã1ã¤å®ç¾©ãã¾ãã
ãã®é¢æ°ã¯ã
ãã®ãã¼ã¸ãé²è¦§ããè
ããã°ã¤ã³ãã¼ã¿ãå
¥åããããã«ä½¿ç¨ããã¾ãã
@@ -84,23 +82,40 @@
å¾è¿°ãã詳細ãªèª¬æãåç
§ä¸ããã
</para>
<para>
- After that we create the authentication object. The first
- parameter defines the name of the storage container. Because we
- want to use a database driven storage container, we pass "DB"
- here. The second parameter is the connection parameter for the
- container driver. We use the previously defined DSN string. The
- third parameter is the name of our function that we defined at the
- beginning of the script. It prints the login form.
- </para>
- <para>
- Now our authentication object is initialized and we need to check
- if the user is logged in. This is done via the method
- <function>getAuth</function>. If it returns &true;, we can pass the
- content of our page to the user.
+
ãã®å¾ãç§ãã¡ã¯èªè¨¼ãªãã¸ã§ã¯ãã使ãã¾ãã
+
æåã®ãã©ã¡ã¼ã¿ã¼ã¯ãã¹ãã¬ã¼ã¸ã³ã³ããã®ååãå®ç¾©ãã¾ãã
+
ç§ãã¡ã¯ãã¼ã¿ãã¼ã¹ãæä½ããã¹ãã¬ã¼ã¸ã³ã³ããã使ç¨ãããã®ã§ã
+ ããã§ã¯"DB"ãæå®ãã¾ãã
+
第2ã®ãã©ã¡ã¼ã¿ã¼ã¯ã³ã³ãããã©ã¤ãã®æ¥ç¶ãã©ã¡ã¼ã¿ã§ãã
+
ç§ãã¡ã¯ãããããå®ç¾©ããDSNæååã使ç¨ãã¾ãã
+
ç§ãã¡ã¯ä»¥åã«å®ç¾©ãããDSNã¹ããªã³ã°ã使ç¨ãã¾ãã
+ 3çªç®ã®ãã©ã¡ã¼ã¿ã¯ã
+
ã¹ã¯ãªããã®åãã«ç§ãã¡ãå®ç¾©ãã颿°ã®ååã§ãã
+
ããã¯ãã°ã¤ã³ãã©ã¼ã ãåºåãã¾ãã
+ </para>
+ <para>
+
ä»ãç§ãã¡ã®èªè¨¼ãªãã¸ã§ã¯ãã¯åæåã¨ãç§ãã¡ã¯ã
+
ã¦ã¼ã¶ããã°ã¤ã³ãã¦ãããã©ãããã§ãã¯ããå¿
è¦ãããã¾ãã
+
ããã¯<function>getAuth</function>ãéãã¦è¡ãã¾ãã
+ ããã&true;ãè¿ãå ´åã
+
ç§ãã¡ã¯ãã¼ã¸ã®å
容ãã¦ã¼ã¶ã¸æ¸¡ããã¨ãã§ãã¾ãã
</para>
<para>
<warning>
<para>
+ ä»ã®ã¨ãã<literal>register_globals=on</literal>ã¨
+ <programlisting role="php">
+ <![CDATA[
+ $auth = new Auth(...);
+ ]]>
+ </programlisting>
+ ã¯<varname>$auth</varname>
+ ãã»ãã·ã§ã³å¤æ°
+
(<classname>PEAR::Auth</classname>ãå
é¨ã§ä½¿ç¨ãã¾ã)
+ ã®ååãªã®ã§ã
+
<literal>register_globals=on</literal>ã§ã¯ä½¿ç¨åºæ¥ã¾ããã
+ </para>
+ <para>
For now one cannot use
<programlisting role="php">
<![CDATA[
@@ -115,7 +130,7 @@
</para>
</example>
<example>
- <title>Using optional authentication</title>
+ <title>ãªãã·ã§ã³ã®èªè¨¼ã®ä½¿ç¨</title>
<programlisting role="php">
<![CDATA[
require_once "Auth/Auth.php";
@@ -169,10 +184,10 @@
</example>
<example>
- <title>Logout functionality</title>
+ <title>ãã°ã¢ã¦ãæ©è½æ§</title>
<simpara>
- The following example performs a <quote>logout</quote> for the
- current user and displays the login form again.
+
次ã®ä¾ã¯ã«ã¬ã³ãã¦ã¼ã¶ã¼ã<quote>ãã°ã¢ã¦ã</quote>ãã
+
åã³ãã°ã¤ã³ãã©ã¼ã ã表示ãã¾ãã
</simpara>
<programlisting role="php">
$myauth->start();
@@ -185,12 +200,13 @@
</example>
<para>
- In the following passages we cover more detailed information about
- the functions of <classname>PEAR::Auth</classname>.
+ 次ã®ç¯ã§ã¯ã
+ ç§ãã¡ã¯<classname>PEAR::Auth</classname>
+
ã®æ©è½ã«é¢ããããå¤ãã®è©³ç´°æ
å ±ãã«ãã¼ãã¾ãã
</para>
<para>
- This SQL statement creates a table usable under the default
- database authentication scheme using MySQL:
+ ãã®SQLæã¯MySQLã使ç¨ãã¦ã
+
ããã©ã«ãã®ãã¼ã¿ãã¼ã¹èªè¨¼ã¹ãã¼ã ã§ä½¿ç¨å¯è½ãªãã¼ãã«ã使ãã¾ãã
</para>
<programlisting role="sql">
<![CDATA[
@@ -203,8 +219,8 @@
]]>
</programlisting>
<para>
- These are the table and field names necessary for working
- authentication. The password column must be at least 32 characters
+
ãããã¯èªè¨¼ãå¦çãããã¨ã«å¿
è¦ãªãã¼ãã«ããã³ãã£ã¼ã«ãåã§ãã
+ The password column must be at least 32 characters
long because we store passwords encrypted using md5() and that is
the length of the values returned by md5().
</para>