cvs: peardoc /ja/package/authentication/auth intro.xml

From: 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>

« previous php.pear.doc (#2678) next »