plugins/index.php
changeset 312 6c7060d36a23
parent 0 902822492a68
equal deleted inserted replaced
311:a007145a0ff6 312:6c7060d36a23
     1 <?php
     1 <?php
     2 /*
       
     3 Plugin Name:
       
     4 Plugin URI:
       
     5 Description: 
       
     6 Author:
       
     7 Version:
       
     8 Author URI:
       
     9 */
       
    10 
     2 
    11 $_GET['title'] = 'Enano:Access_denied';
     3 $title = 'Access denied';
    12 require('../includes/common.php');
     4 require('../includes/common.php');
    13 header('HTTP/1.1 403 Forbidden');
     5 header('HTTP/1.1 403 Forbidden');
    14 $session->perms['edit_page'] = AUTH_DENY;
       
    15 $session->perms['view_source'] = AUTH_DENY;
       
    16 $template->tpl_strings['PAGE_NAME'] = 'Access denied';
       
    17 
     6 
    18 $template->header();
     7 $template->header();
    19 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>';
    20 $template->footer();
     9 $template->footer();
    21 $db->close();
    10