cvs: peardoc /fr/package/authentication/auth-http intro.xml /fr/package/authentication/auth-http/auth-http auth-http.xml example.xml example2.xml
getauth.xml getstatus.xml start.xml

From: Date: Thu, 17 Jun 2004 07:12:51 +0000
Subject: cvs: peardoc /fr/package/authentication/auth-http intro.xml /fr/package/authentication/auth-http/auth-http auth-http.xml example.xml example2.xml
getauth.xml getstatus.xml start.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4427@lists.php.net to get a copy of this message
moosh Thu Jun 17 03:12:51 2004 EDT Added files: /peardoc/fr/package/authentication/auth-http intro.xml /peardoc/fr/package/authentication/auth-http/auth-http auth-http.xml example.xml example2.xml getauth.xml getstatus.xml start.xml Log: initial translation

http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/intro.xml +++ peardoc/fr/package/authentication/auth-http/intro.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1.1.1 Maintainer: moosh Status: ready --> <refentry id="package.authentication.auth-http.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>vers une autentification bas&eacute;e sur HTTP</refpurpose> </refnamediv> <refsect1 id="packages.authentication.auth-http.intro.purpose"> <title></title> <para> &Agrave; la place de g&eacute;n&eacute;rer un forumaire HTML pilote comme <link linkend="package.authentication.auth"><classname>PEAR::Auth</classname> </link> le fait, cette classe envoie des headers au client qui lui feront appara&icirc;tre la boite de dialogue d'identification comme celle que l'on a par exemple avec les mechanismes de .htaccess d'Apache. </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/auth-http.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/auth-http.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/auth-http.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: moosh Status: ready $Date: 2004/06/17 07:12:51 $ --> <refentry id="package.authentication.auth-http.auth-http.auth-http.auth-http"> <refnamediv> <refname>Auth_HTTP::Auth_HTTP()</refname> <refpurpose>constructor</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth_HTTP::Auth_HTTP</function></funcdef> <paramdef>cha&icirc;ne <parameter><optional>$driverDeStockage = "DB"</optional></parameter> </paramdef> <paramdef>mixed <parameter><optional>$options = ""</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth-http.auth-http.auth-http.auth-http.desc"> &title.desc; <para> Constructeur pour le syst&egrave;me d'authentification </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.auth-http.auth-http.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$driverDeStockage</parameter> </term> <listitem> <para> nom du driver de stockage qui doit &ecirc;tre utilis&eacute; </para> </listitem> </varlistentry> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> une cha&icirc;ne contenant des information d'identification ou un tableau contenant une s&eacute;rie d'option pour le drvier de stockage </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.auth-http.auth-http.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.auth-http.auth-http.example"> &title.example; <example> <title>Utilisation de differents param&egrave;tres DB</title> <programlisting role="php"> <![CDATA[ require_once "Auth/HTTP.php"; $a = new Auth_HTTP("DB", "mysql://test:test@localhost/test"); $a->start(); ]]> </programlisting> </example> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/example.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/example.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/example.xml <!-- EN-Revision: 1.3 Maintainer: moosh Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.example"> <refnamediv> <refname>ExempleAuth_HTTP</refname> <refpurpose>Exemple: Un simple mot de passe prot&eacute;gant une page</refpurpose> </refnamediv> <refsect1> &title.example; <programlisting role="php"> <![CDATA[ <?php // exemple of Auth_HTTP basic implementation require_once("Auth/HTTP.php"); // Options de connection à la base de donnée. $AuthOptions = array( 'dsn'=>"pgsql://test:test@localhost/testdb", 'table'=>"table_test", // Nom de votre table 'usernamecol'=>"username", // Nom de la colonne contenant le nom d'utilisateur 'passwordcol'=>"password", // Nom de la colonne contenant le mot de passe 'cryptType'=>"none", // Type de cryptage dans votre table ); $a = new Auth_HTTP("DB", $AuthOptions); $a->setRealm('votreRoyaume'); // nom du royaume (ensemble de l'espace protégé) $a->setCancelText('<h2>Erreur 401</h2>'); // message d'erreur en cas d'echec $a->start(); // démarrage de la procédure d'authentification. if($a->getAuth()) // Verification du résultat { echo "Salut ".$a->username." bienvenue dans ma page protégée"; }; ?> ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/example2.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/example2.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/example2.xml <!-- EN-Revision: 1.4 Maintainer: moosh Status: start --> <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.example2"> <refnamediv> <refname>Exemple 2 Auth_HTTP</refname> <refpurpose> Exemple: Une page proteg&eacute;e par mot de passe avec plusieurs rang trouv&eacute; et un mot de passe md5 </refpurpose> </refnamediv> <refsect1> &title.example; <programlisting role="php"> <![CDATA[ <?php // exemple d'impl&eacute;mentation de Auth_HTTP avec mot de passe crypt&eacute; (md5) // et une r&eacute;cup&eacute;ration de colonnes annexes. require_once("Auth/HTTP.php"); // connection &agrave; la base $AuthOptions = array( 'dsn'=>"pgsql://test:test@localhost/testdb", 'table'=>"testable", // Nom de votre table 'usernamecol'=>"username", // Nom de la colonne contenant le nom d'utilisateur 'passwordcol'=>"password", // Nom de la colonne contenant le mot de passe 'cryptType'=>"md5", // Type de cryptage dans votre table 'dbFields'=>"*" // active la récupération des données des autres colonnes ); $a = new Auth_HTTP("DB", $AuthOptions); $a->setRealm('votreRoyaume'); // nom du royaume (ensemble de l'espace protégé) $a->setCancelText('<h2>Erreur 401</h2>'); // message d'erreur en cas d'echec $a->start(); // démarrage de la procédure d'authentification. if($a->getAuth()) // en cas de réussite { echo "Salut ".$a->username." bienvenue dans ma page protégée"; echo "Nos info sur vous: <BR>"; echo $a->getAuthData('userid'); // On a retrouvé d'autres info dans la table echo $a->getAuthData('telephone'); // Dans cet exemple, l'id user, son téléphone echo $a->getAuthData('email'); // et son adresse email. }; ?> ]]> </programlisting> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/getauth.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/getauth.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/getauth.xml <!-- EN-Revision: 1.3 Maintainer: moosh Status: ready --> <!-- $Revision $ --> <refentry id="package.authentication.auth-http.auth-http.getauth"> <refnamediv> <refname>Auth_HTTP::getAuth()</refname> <refpurpose>V&eacute;rifie si un utilisateur est authentifi&eacute;</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>boolean <function>Auth_HTTP::getAuth</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth-http.auth-http.getauth.desc"> &title.desc; <para> V&eacute;rifie si un utilisateur est authentifi&eacute; </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getauth.return"> &title.returns; <para> <parameter>bool&eacute;en</parameter> - Si l'utilisateur est d&eacute;j&agrave; autentifi&eacute;, la fonction retourne &true;. Sinon elle retourne &false;. </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getauth.note"> &title.note; &note.notstatic; </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/getstatus.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/getstatus.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/getstatus.xml <!-- EN-Revision: 1.3 Maintainer: moosh Status: start $Date: 2004/06/17 07:12:51 $ --> <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.getstatus"> <refnamediv> <refname>Auth_HTTP::getStatus()</refname> <refpurpose>returns informations about the current authentication status</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>chaîne <function>Auth_HTTP::getStatus</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth-http.auth-http.getstatus.desc"> &title.desc; <para> This function returns the current status of PEAR::Auth. The return values are constants that are defined by PEAR Auth. </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getstatus.return"> &title.returns; <para> <parameter>string</parameter> - possible values are <constant>AUTH_IDLED</constant>, <constant>AUTH_EXPIRED</constant>, <constant>AUTH_EXPIRED</constant> </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getstatus.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getstatus.see"> &title.see; <para> <link linkend="package.authentication.auth.constants"> PEAR Auth constants overview</link> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/authentication/auth-http/auth-http/start.xml?r=1.1&p=1 Index: peardoc/fr/package/authentication/auth-http/auth-http/start.xml +++ peardoc/fr/package/authentication/auth-http/auth-http/start.xml <!-- EN-Revision: 1.2 Maintainer: moosh Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.start"> <refnamediv> <refname>Auth_HTTP::start()</refname> <refpurpose>Démarre l'authentfication</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth_HTTP::start</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth-http.auth-http.start.desc"> &title.desc; <para> Initie la procédure d'autentification </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.start.note"> &title.note; &note.notstatic; </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 -->
« previous php.pear.doc (#4427) next »