| 
      1
     | 
    
      <?php
 
     | 
  
  
    | 
      2
     | 
    
      /**
 
     | 
  
  
    | 
      3
     | 
    
       *
 
     | 
  
  
    | 
      4
     | 
    
       * @category        frontend
 
     | 
  
  
    | 
      5
     | 
    
       * @package         account
 
     | 
  
  
    | 
      6
     | 
    
       * @author          WebsiteBaker Project
 
     | 
  
  
    | 
      7
     | 
    
       * @copyright       2004-2009, Ryan Djurovich
 
     | 
  
  
    | 
      8
     | 
    
       * @copyright       2009-2011, Website Baker Org. e.V.
 
     | 
  
  
    | 
      9
     | 
    
       * @link            http://www.websitebaker2.org/
 
     | 
  
  
    | 
      10
     | 
    
       * @license         http://www.gnu.org/licenses/gpl.html
 
     | 
  
  
    | 
      11
     | 
    
       * @platform        WebsiteBaker 2.8.x
 
     | 
  
  
    | 
      12
     | 
    
       * @requirements    PHP 5.2.2 and higher
 
     | 
  
  
    | 
      13
     | 
    
       * @version         $Id: forgot.php 2 2017-07-02 15:14:29Z Manuela $
 
     | 
  
  
    | 
      14
     | 
    
       * @filesource        $HeadURL: svn://isteam.dynxs.de/wb/2.10.x/trunk/account/forgot.php $
 
     | 
  
  
    | 
      15
     | 
    
       * @lastmodified    $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
 
     | 
  
  
    | 
      16
     | 
    
       *
 
     | 
  
  
    | 
      17
     | 
    
       */
 
     | 
  
  
    | 
      18
     | 
    
      
 
     | 
  
  
    | 
      19
     | 
    
      if ( !defined( 'WB_PATH' ) ){ require(dirname(__DIR__).'/config.php'); }
     | 
  
  
    | 
      20
     | 
    
      if ( !class_exists('frontend')) { require(WB_PATH.'/framework/class.frontend.php');  }
     | 
  
  
    | 
      21
     | 
    
      // Create new frontend object
 
     | 
  
  
    | 
      22
     | 
    
      if (!isset($wb) || !($wb instanceof frontend)) { $wb = new frontend(); }
     | 
  
  
    | 
      23
     | 
    
      
 
     | 
  
  
    | 
      24
     | 
    
      $page_id = @$_SESSION['PAGE_ID'] ?: 0;
 
     | 
  
  
    | 
      25
     | 
    
      
 
     | 
  
  
    | 
      26
     | 
    
      // Required page details
 
     | 
  
  
    | 
      27
     | 
    
      // $page_id = 0;
 
     | 
  
  
    | 
      28
     | 
    
      $page_description = '';
 
     | 
  
  
    | 
      29
     | 
    
      $page_keywords = '';
 
     | 
  
  
    | 
      30
     | 
    
      define('PAGE_ID', $page_id);
     | 
  
  
    | 
      31
     | 
    
      define('ROOT_PARENT', 0);
     | 
  
  
    | 
      32
     | 
    
      define('PARENT', 0);
     | 
  
  
    | 
      33
     | 
    
      define('LEVEL', 0);
     | 
  
  
    | 
      34
     | 
    
      define('PAGE_TITLE', $MENU['FORGOT']);
     | 
  
  
    | 
      35
     | 
    
      define('MENU_TITLE', $MENU['FORGOT']);
     | 
  
  
    | 
      36
     | 
    
      define('VISIBILITY', 'public');
     | 
  
  
    | 
      37
     | 
    
      
 
     | 
  
  
    | 
      38
     | 
    
      if(!FRONTEND_LOGIN) {
     | 
  
  
    | 
      39
     | 
    
          header('Location: '.WB_URL.'/index.php');
     | 
  
  
    | 
      40
     | 
    
          exit(0);
 
     | 
  
  
    | 
      41
     | 
    
      }
 
     | 
  
  
    | 
      42
     | 
    
      
 
     | 
  
  
    | 
      43
     | 
    
      // Set the page content include file
 
     | 
  
  
    | 
      44
     | 
    
      define('PAGE_CONTENT', WB_PATH.'/account/forgot_form.php');
     | 
  
  
    | 
      45
     | 
    
      
 
     | 
  
  
    | 
      46
     | 
    
      // Set auto authentication to false
 
     | 
  
  
    | 
      47
     | 
    
      $auto_auth = false;
 
     | 
  
  
    | 
      48
     | 
    
      
 
     | 
  
  
    | 
      49
     | 
    
      // Include the index (wrapper) file
 
     | 
  
  
    | 
      50
     | 
    
      require(WB_PATH.'/index.php');
 
     |