|
From: Benjamin C. <bc...@us...> - 2001-10-08 13:57:17
|
Update of /cvsroot/phpbt/phpbt/docs/sgml
In directory usw-pr-cvs1:/tmp/cvs-serv18087/sgml
Modified Files:
dependencies.sgml primer.sgml
Log Message:
A little closer
Index: dependencies.sgml
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/sgml/dependencies.sgml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- dependencies.sgml 2001/10/08 04:53:46 1.5
+++ dependencies.sgml 2001/10/08 13:57:11 1.6
@@ -57,16 +57,18 @@
<sect3>
<title>Session and Authentication</title>
<para>The session start and authentication code is included in <filename>include.php</filename>. The session is started by a call to <function>page_open()</function>, with the arguments specifying which session elements should be created. &phpbt; uses the <classname>Auth</classname> and <classname>Perm</classname> classes from PHPlib in addition to the base <classname>Session</classname> class. </para>
- <sect4>
+ <formalpara>
<title>Session</title>
- <para>Session variables, or variables that should be retained from page to page, are set via the <varname>$sess</varname> variable, which is an instantiation of the <classname>usess</classname> class. </para>
- </sect4>
- <sect4>
+ <para>Session variables, or variables that should be retained from page to page, are set via the <varname>$sess</varname> variable, which is an instantiation of the <classname>usess</classname> class. You can register a session variable with <function>$sess->register('<replaceable>varname</replaceable>')</function>. When registering, make sure you don't include the $ with <replaceable>varname</replaceable>. This variable will now be available in the global scope until the session is destroyed by the user closing the browser.</para>
+ </formalpara>
+ <formalpara>
<title>Auth</title>
- </sect4>
- <sect4>
+ <para>The login handler is located near the end of <filename>include.php</filename>. Via the <classname>uath</classname> class, the global variable <varname>$u</varname> is set to the user id of the user if logged in, or to 'nobody' if not logged in. This variable should be used as the CreatedBy or LastModifiedBy value for database inserts and updates.</para>
+ </formalpara>
+ <formalpara>
<title>Perm</title>
- </sect4>
+ <para></para>
+ </formalpara>
</sect3>
</sect2>
</sect1>
Index: primer.sgml
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/sgml/primer.sgml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- primer.sgml 2001/10/08 04:53:46 1.4
+++ primer.sgml 2001/10/08 13:57:11 1.5
@@ -18,10 +18,10 @@
<screeninfo>Project selection</screeninfo>
<mediaobject>
<imageobject>
- <imagedata fileref="images/shots/user/enterbug-chooseproject.png" format="PNG" align="middle">
+ <imagedata fileref="images/shots/user/enterbug-chooseproject.png" format="PNG">
</imageobject>
<imageobject>
- <imagedata fileref="images/shots/user/enterbug-chooseproject.jpg" format="JPG" align="center">
+ <imagedata fileref="images/shots/user/enterbug-chooseproject.jpg" format="JPG">
</imageobject>
<imageobject>
<imagedata fileref="images/shots/user/enterbug-chooseproject.eps" format="EPS" align="center">
@@ -41,10 +41,10 @@
<screeninfo>Adding a bug</screeninfo>
<mediaobject>
<imageobject>
- <imagedata fileref="images/shots/user/enterbug-detail.png" format="PNG" align="center">
+ <imagedata fileref="images/shots/user/enterbug-detail.png" format="PNG">
</imageobject>
<imageobject>
- <imagedata fileref="images/shots/user/enterbug-detail.jpg" format="JPG" align="center">
+ <imagedata fileref="images/shots/user/enterbug-detail.jpg" format="JPG">
</imageobject>
<imageobject>
<imagedata fileref="images/shots/user/enterbug-detail.eps" format="EPS" align="center">
|