b2evolution PHP Cross Reference Blogging Systems

Source: /skins/login.main.php - 39 lines - 1351 bytes - Text - Print

Description: This file is the template that includes required css files to display in-skin login form

   1  <?php
   2  /**

   3   * This file is the template that includes required css files to display in-skin login form

   4   *

   5   * b2evolution - {@link http://b2evolution.net/}

   6   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

   7   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

   8   *

   9   * @package evoskins

  10   *

  11   * @version $Id: login.main.php 6136 2014-03-08 07:59:48Z manuel $

  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  global $current_User;
  16  
  17  if( is_logged_in() )
  18  { // User is already logged in
  19      if( $current_User->check_status( 'can_be_validated' ) )
  20      { // account is not active yet, redirect to the account activation page
  21          $Messages->add( T_( 'You are logged in but your account is not activated. You will find instructions about activating your account below:' ) );
  22          header_redirect( get_activate_info_url(), 302 );
  23          // will have exited

  24      }
  25  
  26      // User is already logged in, redirect to "redirect_to" page

  27      $Messages->add( T_( 'You are already logged in.' ), 'note' );
  28      $redirect_to = param( 'redirect_to', 'url', NULL );
  29      if( empty( $redirect_to ) )
  30      {
  31          $redirect_to = regenerate_url( 'disp', '', '', '&' );
  32      }
  33      header_redirect( $redirect_to, 302 );
  34      // will have exited

  35  }
  36  
  37  require $ads_current_skin_path.'index.main.php';
  38  
  39  ?>

title

Description

title

Description

title

Description

title

title

Body