SYNOPSIS

 <import src="macro/util"/>


DESCRIPTION

*sigh* :(


FUNCTIONS

plain_header [title]
Create a plain and ugly html header (with an optional title).

plain_footer
Create a plain and ugly html footer.

access_page $access, $title, \&body
Create a simple access-protected page. $access is the required access level (editform in the macro manpage), $title is the page title. The body argument must be a function reference. If the uer has the required access right a plain page is created (using the functions above) and the body function is called. Otherwise the user is informed of his missing rights and gets the opportunity to log-in.

Use it like this:

   <phtml><![CDATA[
   <:access_page "app_access", "Main Page", sub {:>
      <h1>Main Page</h1>
      You are logged in now ;)
   <:}:>
   ]]>]]&lt;<![CDATA[


AUTHOR

 Marc Lehmann <pcg@goof.com>
 http://www.goof.com/pcg/marc/