<import src="macro/util"/>
*sigh* :(
$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 ;)
<:}:>
]]>]]<<![CDATA[
Marc Lehmann <pcg@goof.com> http://www.goof.com/pcg/marc/