cvs: peardoc /en/package/authentication/auth/auth logout.xml
| From: | Christian Weiske | Date: | Mon, 17 Nov 2008 20:52:36 +0000 |
| Subject: | cvs: peardoc /en/package/authentication/auth/auth logout.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11283@lists.php.net to get a copy of this message | ||
cweiske Mon Nov 17 20:52:36 2008 UTC
Modified files:
/peardoc/en/package/authentication/auth/auth logout.xml
Log:
Fix doc Bug #14259: Logout functionality example changes
http://cvs.php.net/viewvc.cgi/peardoc/en/package/authentication/auth/auth/logout.xml?r1=1.4&r2=1.5&diff_format=u
Index: peardoc/en/package/authentication/auth/auth/logout.xml
diff -u peardoc/en/package/authentication/auth/auth/logout.xml:1.4
peardoc/en/package/authentication/auth/auth/logout.xml:1.5
--- peardoc/en/package/authentication/auth/auth/logout.xml:1.4 Thu Oct 9 15:16:19 2008
+++ peardoc/en/package/authentication/auth/auth/logout.xml Mon Nov 17 20:52:36 2008
@@ -17,9 +17,21 @@
<para>
Logout any currently logged in user.
</para>
- </refsection>
- <refsection xml:id="package.authentication.auth.auth.logout.note">
- &title.note;
- ¬e.notstatic;
- </refsection>
+ </refsection>
+ <refsection xml:id="package.authentication.auth.auth.logout.example">
+ &title.example;
+ <programlisting role="php"><![CDATA[
+<?php
+//$a is our Auth object
+$a->start();
+
+if (isset($_GET['action']) && $_GET['action'] == 'logout'
+ && $a->checkAuth()
+) {
+ $a->logout();
+ $a->start();
+}
+?>
+]]></programlisting>
+ </refsection>
</refentry>