b2evolution PHP Cross Reference Blogging Systems

Source: /skins_adm/_access_denied.main.php - 32 lines - 1192 bytes - Text - Print

Description: This page displays an error message if the user is denied access to the admin section

   1  <?php
   2  /**
   3   * This page displays an error message if the user is denied access to the admin section
   4   *
   5   * @package evocore
   6   */
   7  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
   8  
   9  header_http_response('403 Forbidden');
  10  headers_content_mightcache( 'text/html', 0 );        // Do NOT cache error messages! (Users would not see they fixed them)
  11  ?>
  12  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13  <html xmlns="http://www.w3.org/1999/xhtml">
  14      <head>
  15          <title><?php echo T_('Access denied') ?></title>
  16      </head>
  17  <body>
  18      <div style="background-color:#fee; border: 1px solid red; text-align:center;">
  19          <h1><?php echo T_('Access denied') ?></h1>
  20          <p><?php echo T_('Sorry, you have no permission to access this section.') ?></p>
  21      </div>
  22      <p style="text-align:center;"><?php
  23          $secure_httsrv_url = get_secure_htsrv_url();
  24          echo '<a href="'.$secure_httsrv_url.'login.php?action=logout&amp;redirect_to='.rawurlencode(url_rel_to_same_host($ReqURL, $secure_httsrv_url)).'">'.T_('Logout').'</a>
  25                      &bull;
  26                      <a href="'.$baseurl.'">'.T_('Exit to blogs').'</a>';
  27      ?></p>
  28  </body>
  29  </html>
  30  <?php
  31      exit(0);
  32  ?>

title

Description

title

Description

title

Description

title

title

Body