tweak
authorgreg gay <ggay@ocad.ca>
Tue, 4 Jul 2006 23:31:44 +0000 (23:31 -0000)
committergreg gay <ggay@ocad.ca>
Tue, 4 Jul 2006 23:31:44 +0000 (23:31 -0000)
docs/documentation/developer/guidelines.html
docs/documentation/developer/modules.html

index 3092fc6..9a59ce1 100644 (file)
@@ -629,7 +629,7 @@ if (condition) {
        <p>All messages are handled using the <kbd>Message</kbd> class. The main purpose of the <kbd>Message</kbd> class is to encapsulate the functionality of tracking \r
                and managing various message types during a session by providing a nice layer of abstraction between you and the interface to <kbd>$_SESSION</kbd>, where the messages are stored.</p>\r
 \r
-       <p>At the moment five types of messages are supported:\r
+       <p>At the moment six types of messages are supported:\r
        <dl>\r
                <dt><kbd>Error</kbd></dt>\r
                <dd>Messages reflecting negative feedback to the user, indicating issues that need resolving or addressing.</dd>\r
index e51cc36..7888a23 100644 (file)
@@ -518,6 +518,10 @@ INSERT INTO `language_text` VALUES ('en',
 <pre>
 
 &lt;?php
+// make sure user is allowed to see this page (admins only)
+
+admin_authenticate(AT_ADMIN_PRIV_EXAMPLE_MAKER);
+       
 if (isset($_POST['submit'])) {
        // trim whitespace from the value submitted
        $_POST['uri'] = trim($_POST['uri']);