cvs: peardoc /peardoc2/en/package/authentication/auth-http/auth-http auth-http.xml getauth.xml getstatus.xml start.xml
/peardoc2/en/package/authentication/auth/auth auth.xml getauth.xml getstatus.xml setexpire.xml setsessionname.xml start.xml

From: Date: Tue, 28 Jan 2003 01:56:48 +0000
Subject: cvs: peardoc /peardoc2/en/package/authentication/auth-http/auth-http auth-http.xml getauth.xml getstatus.xml start.xml
/peardoc2/en/package/authentication/auth/auth auth.xml getauth.xml getstatus.xml setexpire.xml setsessionname.xml start.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-316@lists.php.net to get a copy of this message
alexmerz Mon Jan 27 20:56:48 2003 EDT Added files: /peardoc/peardoc2/en/package/authentication/auth/auth auth.xml getauth.xml getstatus.xml setexpire.xml setsessionname.xml start.xml /peardoc/peardoc2/en/package/authentication/auth-http/auth-http auth-http.xml getauth.xml getstatus.xml start.xml Log: move to new dir structure, use variablelist instead of itemizedlist for parameter overview

Index: peardoc/peardoc2/en/package/authentication/auth/auth/auth.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/auth.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.auth"> <refnamediv> <refname>Auth::Auth()</refname> <refpurpose>constructor</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef><function>Auth::Auth</function></funcdef> <paramdef>string <parameter>$storageDriver = "DB"</parameter></paramdef> <paramdef>mixed <parameter>$options = ""</parameter></paramdef> <paramdef>string <parameter>$loginFunction = ""</parameter></paramdef> <paramdef>boolean <parameter><optional>$showLogin = true</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.auth.desc"> &title.desc; <para> Constructor for the authentication system. </para> </refsect1> <refsect1 id="package.authentication.auth.auth.auth.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$storageDriver</parameter> </term> <listitem> <para> name of the storage driver that should be used </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$loginFunction</parameter> </term> <listitem> <para> the name of a user-defined function that prints the login screen </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$showLogin</parameter> </term> <listitem> <para> defines if the login is optional or not </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.authentication.auth.auth.auth.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.authentication.auth.auth.auth.see"> &title.see; <para> <link linkend="package.authentication.auth.auth.intro-storage"> Introduction - The storage drivers </link> </para> </refsect1> <refsect1 id="package.authentication.auth.auth.auth.example"> &title.example; <example> <title>Using different DB parameters</title> <programlisting role="php"> <![CDATA[ require_once "Auth/Auth.php"; function myOutput($username, $status) { ... /** See example 1 for the full listing */ } $params = array( "dsn" => "mysql://martin:test@localhost/auth", "table" => "myAuth", "usernamecol" => "myUserColumn", "passwordcol" => "myPasswordColumn" ); $a = new Auth("DB", $params, "myOutput"); $a->start(); if ($a->getAuth()) { echo "You have been authenticated successfully."; } ]]>; </programlisting> </example> <para> This example shows you, how you can specifiy alternative names for the database table and the column names. In our example, we use the table myAuth, select the username from the field myUserColumn and the password from the field myPasswordColumn. The default values for this fields are auth, username and password. </para> <para> This feature is necessary if you want to use PEAR::Auth with a database layout that is different from the one, PEAR::Auth uses by default. </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 --> Index: peardoc/peardoc2/en/package/authentication/auth/auth/getauth.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/getauth.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.getauth"> <refnamediv> <refname>Auth::getAuth()</refname> <refpurpose>check for a authenticated user</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>boolean <function>Auth_HTTP::getAuth</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.getauth.desc"> &title.desc; <para> Check if the user has been authenticated. </para> </refsect1> <refsect1 id="package.authentication.auth.auth.getauth.return"> &title.returns; <para> <parameter>boolean</parameter> - If the user has already been authenticated, the function returns true. Otherwise it returns false. </para> </refsect1> <refsect1 id="package.authentication.auth.auth.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 --> Index: peardoc/peardoc2/en/package/authentication/auth/auth/getstatus.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/getstatus.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.getstatus"> <refnamediv> <refname>Auth::getStatus()</refname> <refpurpose>returns informations about the current authentication status</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>string <function>Auth::getStatus</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.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.auth.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.auth.getstatus.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.authentication.auth.auth.getstatus.see"> &title.see; <para> <link linkend="package.authentication.auth.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 --> Index: peardoc/peardoc2/en/package/authentication/auth/auth/setexpire.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/setexpire.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.setexpire"> <refnamediv> <refname>Auth::setExpire()</refname> <refpurpose>set expiration time for authentication</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth::setExpire</function></funcdef> <paramdef>integer <parameter>$time</parameter></paramdef> <paramdef>boolean <parameter><optional>$add = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.setexpire.desc"> &title.desc; <para> With this function you can set the maximum expire time that is used by auth to a new value. </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setexpire.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$time</parameter> </term> <listitem> <para> expiration time, number of seconds </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$add</parameter> </term> <listitem> <para> if true <parameter>$time</parameter> is added to the existing expiration time, if false the exitsing time value will be replaced. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setexpire.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 --> Index: peardoc/peardoc2/en/package/authentication/auth/auth/setsessionname.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/setsessionname.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.setsessionname"> <refnamediv> <refname>Auth::setSessionname()</refname> <refpurpose>set a custom session name</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth::setSessionname</function></funcdef> <paramdef>string <parameter>name</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.setsessionname.desc"> &title.desc; <para> This function can set a customized name for the session that is created during the login process. The default for this session name is "PHPSESSID". </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setsessionname.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$name</parameter> </term> <listitem> <para> the session name to use </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.authentication.auth.auth.setsessionname.note"> &title.note; &note.notstatic; <para> You have to use <function>setSessionname</function>, if you are running two or more different applications with Auth on the same domain. If you don't use this function, a user who has once logged in at one of the applications can also use the other applications without logging in again! </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 --> Index: peardoc/peardoc2/en/package/authentication/auth/auth/start.xml +++ peardoc/peardoc2/en/package/authentication/auth/auth/start.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth.auth.start"> <refnamediv> <refname>Auth::start()</refname> <refpurpose>start authentication</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>Auth::start</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.authentication.auth.auth.start.desc"> &title.desc; <para> Start the authentication process. </para> </refsect1> <refsect1 id="package.authentication.auth.auth.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 --> Index: peardoc/peardoc2/en/package/authentication/auth-http/auth-http/auth-http.xml +++ peardoc/peardoc2/en/package/authentication/auth-http/auth-http/auth-http.xml <!-- $Revision: 1.1 $ --> <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>string <parameter><optional>$storageDriver = "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> Constructor for the authentication system </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.auth-http.auth-http.parameter"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$storageDriver</parameter> </term> <listitem> <para> name of the storage driver that should be used </para> </listitem> </varlistentry> <varlistentry> <term> &type.mixed; <parameter>$options</parameter> </term> <listitem> <para> a string containing some login information or an array containing a bunch of options for the storage driver </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>Using different DB parameters</title> <programlisting role="php"> <![CDATA[ require_once "Auth_HTTP/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 --> Index: peardoc/peardoc2/en/package/authentication/auth-http/auth-http/getauth.xml +++ peardoc/peardoc2/en/package/authentication/auth-http/auth-http/getauth.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.getauth"> <refnamediv> <refname>Auth_HTTP::getAuth()</refname> <refpurpose>check for a authenticated user</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> Check if the user has been authenticated. </para> </refsect1> <refsect1 id="package.authentication.auth-http.auth-http.getauth.return"> &title.returns; <para> <parameter>boolean</parameter> - If the user has already been authenticated, the function returns true. Otherwise it returns 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 --> Index: peardoc/peardoc2/en/package/authentication/auth-http/auth-http/getstatus.xml +++ peardoc/peardoc2/en/package/authentication/auth-http/auth-http/getstatus.xml <!-- $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>string <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-http.auth-http.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 --> Index: peardoc/peardoc2/en/package/authentication/auth-http/auth-http/start.xml +++ peardoc/peardoc2/en/package/authentication/auth-http/auth-http/start.xml <!-- $Revision: 1.1 $ --> <refentry id="package.authentication.auth-http.auth-http.start"> <refnamediv> <refname>Auth_HTTP::start()</refname> <refpurpose>start authentication</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> Start the authentication process. </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 (#316) next »