<?php error_reporting(7); $templatesused = 'error_nopermission, your_template'; require('./global.php'); $permissions = getpermissions(); if (!$permissions['canview']) { show_nopermission(); } eval("dooutput(\"".gettemplate('your_template')."\");"); ?>