cvs: peardoc /fr/package/fileformats/file-passwd/file-passwd-authbasic adduser.xml changepasswd.xml file-passwd-authbasic.xml generatepassword.xml
getmode.xml listmodes.xml parse.xml save.xml setmode.xml staticauth.xml verifypasswd.xml

From: Date: Wed, 28 Jul 2004 20:54:55 +0000
Subject: cvs: peardoc /fr/package/fileformats/file-passwd/file-passwd-authbasic adduser.xml changepasswd.xml file-passwd-authbasic.xml generatepassword.xml
getmode.xml listmodes.xml parse.xml save.xml setmode.xml staticauth.xml verifypasswd.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4680@lists.php.net to get a copy of this message
yannick Wed Jul 28 16:54:55 2004 EDT Added files: /peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic adduser.xml changepasswd.xml file-passwd-authbasic.xml generatepassword.xml getmode.xml listmodes.xml parse.xml save.xml setmode.xml staticauth.xml verifypasswd.xml Log: initial translation

http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/adduser.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/adduser.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/adduser.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.adduser"> <refnamediv> <refname><function>File_Passwd_Authbasic::addUser</function></refname> <refpurpose>Ajoute un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> mixed <function>File_Passwd_Authbasic::addUser</function> </funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.adduser.desc"> &title.desc; <para> Le nom de l'utilisateur doit commencer par un caract&egrave;re alphanum&eacute;rique et ne doit PAS contenir d'autres caract&egrave;res que des caract&egrave;res alphanum&eacute;riques, un underline (_) et le tiret (-). </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.adduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> nom de l'utilisateur </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.adduser.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_ALREADY</entry> <entry>l'utilisateur &agrave; ajouter existe d&eacute;j&agrave;</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>le nom de l'utilisateur &agrave; ajouter contient des caract&egrave;res invalides</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.adduser.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/fileformats/file-passwd/file-passwd-authbasic/changepasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/changepasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/changepasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.changepasswd"> <refnamediv> <refname><function>File_Passwd_Authbasic::changePasswd</function></refname> <refpurpose>Modifie le mot de passe d'un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> mixed <function>File_Passwd_Authbasic::changePasswd</function> </funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.changepasswd.desc"> &title.desc; <para>Modifie le mot de passe d'un utilisateur.</para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.changepasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur dont on doit modifier le mot de passe </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le nouveau mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.changepasswd.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur dont on doit modifierle mot de passe n'existe pas</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.changepasswd.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/fileformats/file-passwd/file-passwd-authbasic/file-passwd-authbasic.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/file-passwd-authbasic.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/file-passwd-authbasic.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.file-passwd-authbasic"> <refnamediv> <refname><function>File_Passwd_Authbasic::File_Passwd_Authbasic</function></refname> <refpurpose>Constructeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'File/Passwd/Authbasic.php';</funcsynopsisinfo> <funcprototype> <funcdef> object &amp;new <function>File_Passwd_Authbasic</function> </funcdef> <paramdef>string <parameter> <optional>$file = '.htpasswd'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.file-passwd-authbasic.desc"> &title.desc; <para> Initialise un nouvel objet File_Passwd_Authbasic avec le chemin fourni vers le fichier passwd. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.file-passwd-authbasic.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.file-passwd-authbasic.return"> &title.returns; <para> Retourne un &type.object; <classname>File_Passwd_Authbasic</classname>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.file-passwd-authbasic.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/fileformats/file-passwd/file-passwd-authbasic/generatepassword.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/generatepassword.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/generatepassword.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword"> <refnamediv> <refname><function>File_Passwd_Authbasic::generatePassword</function></refname> <refpurpose>G&eacute;n&egrave;re un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::generatePassword</function></funcdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter><optional>$mode = 'des'</optional></parameter></paramdef> <paramdef>string <parameter><optional>$salt = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.desc"> &title.desc; <para> G&eacute;n&egrave;re un mot de passe utilisable avec l'identification &quot;AuthBasic&quot;. </para> <para> Le mode de cryptage peut &ecirc;tre soit <constant>FILE_PASSWD_DES</constant>, <constant>FILE_PASSWD_SHA</constant> ou <constant>FILE_PASSWD_MD5</constant>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair &agrave; crypter </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> le mode de cryptage &agrave; utiliser </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$salt</parameter> </term> <listitem> <para> les options pour le cryptage (souvent vide) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.return"> &title.returns; <para> Retourne un mot de passe crypt&eacute; sous la forme d'une cha&icirc;ne de caract&egrave;res ou <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_ENC_MODE</constant> si le mode de cryptage n'est pas support&eacute;. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.example"> &title.example; <example id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.example.listing"> <title>File_Passwd_Authbasic::generatePassword()</title> <programlisting role="php"> <![CDATA[ require_once 'File/Passwd/Authbasic.php'; $pass = File_Passwd_Authbasic::generatePassword('secret', FILE_PASSWD_MD5); ]]> </programlisting> </example> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.generatepassword.note"> &title.note; &note.shouldstatic; </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/fileformats/file-passwd/file-passwd-authbasic/getmode.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/getmode.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/getmode.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.getmode"> <refnamediv> <refname><function>File_Passwd_Authbasic::getMode</function></refname> <refpurpose>R&eacute;cup&egrave;re le mode de cryptage actuel</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> string <function>File_Passwd_Authbasic::getMode</function> </funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.getmode.desc"> &title.desc; <para> R&eacute;cup&egrave;re le mode de cryptage actuel. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.getmode.return"> &title.returns; <para> <type>string</type> - mode de cryptage actuel </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.getmode.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/fileformats/file-passwd/file-passwd-authbasic/listmodes.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/listmodes.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/listmodes.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.listmodes"> <refnamediv> <refname><function>File_Passwd_Authbasic::listModes</function></refname> <refpurpose>R&eacute;cup&egrave;re les modes de cryptage support&eacute;s</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> array <function>File_Passwd_Authbasic::listModes</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.listmodes.desc"> &title.desc; <para> Retourne un tableau contenant les modes de cryptage support&eacute;s. </para> <para> <![CDATA[ <pre> array + md5 + sha + des </pre> ]]> </para> <para> ATTENTION : le mode de cryptage DES n'est pas disponible sous Win32. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.listmodes.return"> &title.returns; <para> <type>array</type> - modes de cryptage support&eacute;s. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.listmodes.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/fileformats/file-passwd/file-passwd-authbasic/parse.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/parse.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/parse.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.parse"> <refnamediv> <refname><function>File_Passwd_Authbasic::parse</function></refname> <refpurpose>Analyse le fichier d'identification des utilisateurs</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::parse</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.parse.desc"> &title.desc; <para> Analyse le fichier d'identification des utilisateurs. &pdevrel; </para> <para> Intervient habituellement dans <link linkend="package.fileformats.file-passwd.file-passwd-common.load"> <function>File_Passwd_Authbasic::load</function> </link>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.parse.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_INVALID_FORMAT</entry> <entry>le fichier passwd a un format invalide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.parse.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/fileformats/file-passwd/file-passwd-authbasic/save.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/save.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/save.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.save"> <refnamediv> <refname><function>File_Passwd_Authbasic::save</function></refname> <refpurpose>Sauvegarde les modifications</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::save</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.save.desc"> &title.desc; <para> Applique les modifications et &eacute;crit le fichier d'identification des utilisateurs. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.save.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_DIR_NOT_CREATED</entry> <entry>le dossier dans lequel le fichier passwd doit &ecirc;tre plac&eacute; n'a pu &ecirc;tre cr&eacute;&eacute;</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu &ecirc;tre ouvert en &eacute;criture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu &ecirc;tre verrouill&eacute; exclusivement</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier passwd n'a pu &ecirc;tre d&eacute;verrouill&eacute;</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu &ecirc;tre ferm&eacute;</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.save.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/fileformats/file-passwd/file-passwd-authbasic/setmode.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/setmode.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/setmode.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.setmode"> <refnamediv> <refname><function>File_Passwd_Authbasic::setMode</function></refname> <refpurpose>D&eacute;finie le mode de cryptage</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::setMode</function></funcdef> <paramdef>string <parameter>$mode</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.setmode.desc"> &title.desc; <para>Vous pouvez choisir parmis md5, sha ou des.</para> <para>ATTENTION: le mode de cryptage DES n'est pas disponible sous Win32 !</para> <para>Retourne un objet PEAR_Error si le mode de cryptage n'est pas support&eacute;.</para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.setmode.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> le mode de cryptage &agrave; utiliser </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.setmode.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.setmode.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/fileformats/file-passwd/file-passwd-authbasic/staticauth.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/staticauth.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/staticauth.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.staticauth"> <refnamediv> <refname><function>File_Passwd_Authbasic::staticAuth</function></refname> <refpurpose>Identification rapide</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'File/Passwd/Authbasic.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::staticAuth</function></funcdef> <paramdef>string <parameter>$file</parameter></paramdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter>$mode</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.staticauth.desc"> &title.desc; <para> Identification d'un utilisateur statiquement. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.staticauth.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> utilisateur &agrave; identifier </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> mot de passe en clair </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> mode de cryptage : des, sha ou md5 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.staticauth.return"> &title.returns; <para> Retourne &true; si l'identification s'effectue avec succ&egrave;s sinon, un objet <classname>PEAR_Error</classname>. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_NOT_EXISTS</entry> <entry>le fichier passwd n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu &ecirc;tre ouvert en lecture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu &ecirc;tre verrouill&eacute;</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier n'a pu &ecirc;tre d&eacute;verrouill&eacute; (seulement si l'identification &eacute;choue)</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu &ecirc;tre ferm&eacute; (uniquement si l'identification &eacute;choue)</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.staticauth.note"> &title.note; &note.shouldstatic; </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/fileformats/file-passwd/file-passwd-authbasic/verifypasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/verifypasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-authbasic/verifypasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-authbasic.verifypasswd"> <refnamediv> <refname><function>File_Passwd_Authbasic::verifyPasswd</function></refname> <refpurpose>V&eacute;rifie un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Authbasic::verifyPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.verifypasswd.desc"> &title.desc; <para> V&eacute;rifie le mot de passe d'un utilisateur. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.verifypasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur dont l'on doit v&eacute;rifier le mot de passe </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair &agrave; v&eacute;rifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.verifypasswd.return"> &title.returns; <para> Retourne &true; si les mots de passe correspondent, &false; sinon ou un objet <classname>PEAR_Error</classname>. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>le mode de cryptage demand&eacute; n'est pas un mode valide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-authbasic.verifypasswd.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 (#4680) next »