<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
<pre>
<?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']);