Beehive PHP Cross Reference Discussion Forums

Source: /start_main.php - 63 lines - 2077 bytes - Summary - Text - Print

   1  <?php
   2  
   3  /*======================================================================
   4  Copyright Project Beehive Forum 2002
   5  
   6  This file is part of Beehive Forum.
   7  
   8  Beehive Forum is free software; you can redistribute it and/or modify
   9  it under the terms of the GNU General Public License as published by
  10  the Free Software Foundation; either version 3 of the License, or
  11  (at your option) any later version.
  12  
  13  Beehive Forum is distributed in the hope that it will be useful,
  14  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16  GNU General Public License for more details.
  17  
  18  You should have received a copy of the GNU General Public License
  19  along with Beehive; if not, write to the Free Software
  20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  21  USA
  22  ======================================================================*/
  23  
  24  // Bootstrap
  25  require_once  'boot.php';
  26  
  27  // Required includes
  28  require_once  BH_INCLUDE_PATH . 'cache.inc.php';
  29  require_once  BH_INCLUDE_PATH . 'constants.inc.php';
  30  require_once  BH_INCLUDE_PATH . 'forum.inc.php';
  31  require_once  BH_INCLUDE_PATH . 'html.inc.php';
  32  require_once  BH_INCLUDE_PATH . 'messages.inc.php';
  33  // End Required includes
  34  
  35  // Get the start page
  36  if (($start_page = forum_get_setting('start_page', 'strlen', false)) !== false) {
  37  
  38      // Get the start page CSS
  39      if (($start_page_css = forum_get_setting('start_page_css', 'strlen', false)) !== false) {
  40  
  41          // Check for cached page.
  42          cache_check_last_modified(time(), md5($start_page . $start_page_css));
  43  
  44          html_draw_top("inline_css=$start_page_css");
  45          echo message_apply_formatting($start_page);
  46          html_draw_bottom();
  47  
  48      } else {
  49  
  50          // Check for cached page.
  51          cache_check_last_modified(time(), md5($start_page));
  52  
  53          html_draw_top();
  54          echo message_apply_formatting($start_page);
  55          html_draw_bottom();
  56      }
  57  
  58  } else {
  59  
  60      html_draw_top();
  61      echo "<h1>", gettext("You can edit this page from the admin interface"), "</h1>\n";
  62      html_draw_bottom();
  63  }

title

Description

title

Description

title

Description

title

title

Body