Beehive PHP Cross Reference Discussion Forums

Source: /llogon.php - 60 lines - 1859 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  'lboot.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 . 'header.inc.php';
  31  require_once  BH_INCLUDE_PATH . 'html.inc.php';
  32  require_once  BH_INCLUDE_PATH . 'light.inc.php';
  33  require_once  BH_INCLUDE_PATH . 'logon.inc.php';
  34  require_once  BH_INCLUDE_PATH . 'user.inc.php';
  35  // End Required includes
  36  
  37  // Don't cache this page
  38  cache_disable();
  39  
  40  // Error messages string
  41  $error_msg_array = array();
  42  
  43  // Check for logon post data
  44  if (isset($_POST['user_logon']) && isset($_POST['user_password'])) {
  45  
  46      if (logon_perform()) {
  47  
  48          header_redirect("lthread_list.php?webtag=$webtag", gettext("You logged in successfully."));
  49  
  50      } else {
  51  
  52          $error_msg_array[] = gettext("The username or password you supplied is not valid.");
  53      }
  54  }
  55  
  56  light_html_draw_top();
  57  
  58  light_draw_logon_form($error_msg_array);
  59  
  60  light_html_draw_bottom();

title

Description

title

Description

title

Description

title

title

Body