|
From: Benjamin C. <bc...@us...> - 2001-10-09 04:03:37
|
Update of /cvsroot/phpbt/phpbt/docs/html
In directory usw-pr-cvs1:/tmp/cvs-serv26978/html
Modified Files:
devguide.html devstandards.html index.html
Log Message:
Finishing up (I hope) the dependencies section
Index: devguide.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/devguide.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- devguide.html 2001/10/08 13:57:11 1.9
+++ devguide.html 2001/10/09 04:03:35 1.10
@@ -87,6 +87,20 @@
HREF="devguide.html#DEPENDENCIES"
>Dependencies</A
></DT
+><DD
+><DL
+><DT
+>3.1.1. <A
+HREF="devguide.html#DEP-PHPLIB"
+>PHPlib</A
+></DT
+><DT
+>3.1.2. <A
+HREF="devguide.html#DEP-JPGRAPH"
+>JpGraph</A
+></DT
+></DL
+></DD
><DT
>3.2. <A
HREF="devstandards.html"
@@ -139,7 +153,7 @@
NAME="AEN218"
></A
><P
->phpBugTracker requires one external package, PHPlib, and can optionally use JpGraph. Of course a web server and a database are also necessary.</P
+>phpBugTracker requires one external package, PHPlib, and can optionally use JpGraph. Of course a web server running a version of PHP later than 4.0 and a database server are also necessary.</P
></DIV
></BLOCKQUOTE
><DIV
@@ -342,9 +356,60 @@
><P
><B
>Perm. </B
+>There are two types of checks that are made in phpBugTracker: permission and group membership. These checks can be made two different ways -- one that exits and displays an access denied message (useful for protecting an entire page) or one that returns whether the user passed the check (useful for determining whether to display a piece of information).</P
+></DIV
+><DIV
+CLASS="EXAMPLE"
+><A
+NAME="AEN269"
+></A
+><P
+><B
+>Example 3-3. Permission and Group Checking</B
></P
+><TABLE
+BORDER="0"
+BGCOLOR="#EEEEEE"
+WIDTH="100%"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+> // Non-failing checks
+ if ($perm->have_perm('EditBug')) {
+ echo 'You can edit a bug!';
+ }
+ if ($perm->in_group('User')) {
+ echo 'You are logged in and belong to the User group';
+ }
+
+ // Failing checks -- the script exits at this point if the check fails
+ $perm->check('Admin');
+ $perm->check_group('Developer');
+ </PRE
+></TD
+></TR
+></TABLE
+></DIV
></DIV
></DIV
+><DIV
+CLASS="SECT2"
+><H2
+CLASS="SECT2"
+><A
+NAME="DEP-JPGRAPH"
+>3.1.2. JpGraph</A
+></H2
+><P
+>This section will not cover the usage of JpGraph in any detail, since it is not an integral part of phpBugTracker. Developers who are interested in using this class for generating bug reports or charting activity can see <TT
+CLASS="FILENAME"
+>images.php</TT
+> for an example and are encouraged to visit JpGraph's web site at <A
+HREF="http://www.aditus.nu/jpgraph/"
+TARGET="_top"
+>http://www.aditus.nu/jpgraph</A
+>.</P
></DIV
></DIV
></DIV
Index: devstandards.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/devstandards.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- devstandards.html 2001/10/08 13:57:11 1.10
+++ devstandards.html 2001/10/09 04:03:35 1.11
@@ -77,7 +77,7 @@
><DIV
CLASS="ABSTRACT"
><A
-NAME="AEN271"
+NAME="AEN279"
></A
><P
> This section details the coding and process standards to be
Index: index.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/docs/html/index.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- index.html 2001/10/08 04:53:46 1.7
+++ index.html 2001/10/09 04:03:35 1.8
@@ -122,6 +122,11 @@
HREF="devguide.html#AEN241"
>Using the template class</A
></DT
+><DT
+>3-3. <A
+HREF="devguide.html#AEN269"
+>Permission and Group Checking</A
+></DT
></DL
></DIV
></DIV
|