b2evolution PHP Cross Reference Blogging Systems

Source: /skins/_login.disp.php - 56 lines - 1712 bytes - Text - Print

Description: This file implements the login form

   1  <?php
   2  /**
   3   * This file implements the login form
   4   *
   5   * This file is not meant to be called directly.
   6   *
   7   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}.
   8   *
   9   * @package evocore
  10   *
  11   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  12   * @author asimo: Evo Factory / Attila Simo
  13   *
  14   * @version $Id: _login.disp.php 6136 2014-03-08 07:59:48Z manuel $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  global $blog, $action, $disp, $rsc_url, $Settings, $rsc_path, $transmit_hashed_password, $dummy_fields;
  19  
  20  if( is_logged_in() )
  21  { // already logged in
  22      echo '<p>'.T_('You are already logged in').'</p>';
  23      return;
  24  }
  25  
  26  $login = param( $dummy_fields[ 'login' ], 'string', '' );
  27  $action = param( 'action', 'string', '' );
  28  $redirect_to = param( 'redirect_to', 'url', '' );
  29  $source = param( 'source', 'string', 'inskin login form' );
  30  $login_required = ( $action == 'req_login' );
  31  
  32  global $admin_url, $ReqHost, $secure_htsrv_url;
  33  
  34  if( !isset( $redirect_to ) )
  35  {
  36      $redirect_to = regenerate_url( 'disp' );
  37  }
  38  
  39  $params = array(
  40      'source' => $source,
  41      'login_required' => $login_required,
  42      'redirect_to' => $redirect_to,
  43      'login' => $login,
  44      'action' => $action,
  45      'transmit_hashed_password' => $transmit_hashed_password,
  46  );
  47  
  48  display_login_form( $params );
  49  
  50  echo '<div class="notes" style="margin: 1em"><a href="'.$secure_htsrv_url.'login.php?source='.rawurlencode($source).'&redirect_to='.rawurlencode( $redirect_to ).'">'.T_( 'Use standard login form instead').' &raquo;</a></div>';
  51  
  52  echo '<div class="form_footer_notes">'.sprintf( T_('Your IP address: %s'), $Hit->IP ).'</div>';
  53  
  54  echo '<div class="clear"></div>';
  55  
  56  ?>

title

Description

title

Description

title

Description

title

title

Body