b2evolution PHP Cross Reference Blogging Systems

Source: /skins_adm/login/_validate_form.main.php - 69 lines - 2735 bytes - Text - Print

Description: This is the account validation form. It gets included if the user needs to validate his account. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This is the account validation form. It gets included if the user needs to validate his account.
   4   *
   5   * This file is part of the evoCore framework - {@link http://evocore.net/}
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
   9   *
  10   * {@internal License choice
  11   * - If you have received this file as part of a package, please find the license.txt file in
  12   *   the same folder or the closest folder above for complete license terms.
  13   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  14   *   then you must choose one of the following licenses before using the file:
  15   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  16   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  17   * }}
  18   *
  19   * {@internal Open Source relicensing agreement:
  20   * Daniel HAHLER grants Francois PLANQUE the right to license
  21   * Daniel HAHLER's contributions to this file and the b2evolution project
  22   * under any OSI approved OSS license (http://www.opensource.org/licenses/).
  23   * }}
  24   *
  25   * @package htsrv
  26   *
  27   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  28   * @author blueyed: Daniel HAHLER
  29   * @author fplanque: Francois PLANQUE.
  30   */
  31  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  32  
  33  /**
  34   * Include page header:
  35   */
  36  $page_title = T_( 'Account activation' );
  37  $page_icon = 'register';
  38  require dirname(__FILE__).'/_html_header.inc.php';
  39  
  40  display_activateinfo( array( 'redirect_to' => url_rel_to_same_host($redirect_to, $secure_htsrv_url) ) );
  41  
  42  if( $current_User->grp_ID == 1 )
  43  { // allow admin users to validate themselves by a single click:
  44      $Form = new Form( $secure_htsrv_url.'login.php', 'form_validatemail', 'post', 'fieldset' );
  45      $Form->begin_form( 'fform' );
  46  
  47      $Form->add_crumb( 'validateform' );
  48      $Form->hidden( 'action', 'validatemail');
  49      $Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, $secure_htsrv_url) );
  50      $Form->hidden( 'reqID', 1 );
  51      $Form->hidden( 'sessID', $Session->ID );
  52  
  53      $Form->begin_fieldset();
  54      echo '<p>'.sprintf( T_('Since you are an admin user, you can activate your account (%s) by a single click.' ), $current_User->email ).'</p>';
  55      // TODO: the form submit value is too wide (in Konqueror and most probably in IE!)
  56      $Form->end_form( array(array( 'name'=>'form_validatemail_admin_submit', 'value'=>T_('Activate my account!'), 'class'=>'ActionButton' )) ); // display hidden fields etc
  57  }
  58  ?>
  59  
  60  <div style="text-align:right">
  61      <?php
  62      user_logout_link();
  63      ?>
  64  </div>
  65  
  66  <?php
  67  require dirname(__FILE__).'/_html_footer.inc.php';
  68  
  69  ?>

title

Description

title

Description

title

Description

title

title

Body