includes/index.php
changeset 253 6c7060d36a23
parent 1 fe660c52c48f
equal deleted inserted replaced
252:a007145a0ff6 253:6c7060d36a23
     1 <?php
     1 <?php
     2 
     2 
     3 $_GET['title'] = 'Enano:Access_denied';
     3 $title = 'Access denied';
     4 require('../includes/common.php');
     4 require('../includes/common.php');
     5 header('HTTP/1.1 403 Forbidden');
     5 header('HTTP/1.1 403 Forbidden');
     6 $session->perms['edit_page'] = AUTH_DENY;
       
     7 $session->perms['view_source'] = AUTH_DENY;
       
     8 $template->tpl_strings['PAGE_NAME'] = 'Access denied';
       
     9 
     6 
    10 $template->header();
     7 $template->header();
    11 echo '<p>The administrator has flagged the page "' . $_SERVER['REQUEST_URI'] . '" so that it cannot be accessed from the web. Perhaps this is because this is a cache or includes directory and only needs to be accessed by scripts.</p><p>HTTP error: 403 Forbidden</p>';
     8 echo '<p>The administrator has flagged the page "' . htmlspecialchars($_SERVER['REQUEST_URI']) . '" so that it cannot be accessed from the web. Perhaps this is because this is a cache or includes directory and only needs to be accessed by scripts.</p><p>HTTP error: 403 Forbidden</p>';
    12 $template->footer();
     9 $template->footer();
    13 $db->close();
    10