function showAccessDenied($auth_type) { switch ($auth_type) { case ADMIN_AUTH_TYPE: $url = "/IBSng/admin"; $role = "admin"; break; default: $url = "/IBSng/admin"; $role = ""; break; } $smarty = new IBSSmarty(); $smarty->assign_array(array("url" => $url, "role" => $role)); $smarty->display("access_denied.tpl"); exit; }