[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/skins_adm/login/ -> _reg_complete.main.php (source)

   1  <?php
   2  /**

   3   * This is displayed when registration is complete

   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-2007 by Francois PLANQUE - {@link http://fplanque.net/}

   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   * }}

  21   *

  22   * @package htsrv

  23   *

  24   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  25   * @author fplanque: Francois PLANQUE.

  26   */
  27  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  28  
  29  
  30  /**

  31   * Include page header:

  32   */
  33  $page_title = T_('Registration complete');
  34  $page_icon = 'icon_register.gif';
  35  require dirname(__FILE__).'/_html_header.inc.php';
  36  
  37  // dh> TODO: this form is not really required and only used for the info fields below.

  38  $Form =& new Form( $htsrv_url_sensitive.'login.php', 'login', 'post', 'fieldset' );
  39  
  40  $Form->begin_form( 'fform' );
  41  
  42  $Form->hidden( 'login', $login );
  43  $Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, $htsrv_url_sensitive) );
  44  
  45  $Form->begin_fieldset();
  46  $Form->info( T_('Login'), $login );
  47  $Form->info( T_('Email'), $email );
  48  $Form->end_fieldset();
  49  
  50  // Now the user has been logged in automatically at the end of the registration progress.

  51  // Allow him to proceed or go to the blogs, though he will see the "validate account" screen then,

  52  // if he has not clicked the validation link yet and validation is required.

  53  if( empty($redirect_to) )
  54  {
  55      $redirect_to = $baseurl; // dh> this was the old behaviour, I think there could be a better default

  56  }
  57  echo '<p class="center"><a href="'
  58      .htmlspecialchars(url_rel_to_same_host($redirect_to, $htsrv_url_sensitive))
  59      .'">'.T_('Continue').' &raquo;</a> '; // dh> TODO: this does not seem to be sensible for dir=rtl.

  60  echo '</p>';
  61  
  62  
  63  $Form->end_form();
  64  
  65  require dirname(__FILE__).'/_html_footer.inc.php';
  66  
  67  /*

  68   * $Log: _reg_complete.main.php,v $

  69   * Revision 1.2  2007/06/25 23:19:07  blueyed

  70   * Use $redirect_to (and fallback only to $baseurl) for "Continue" link in favor of too generic "Go to blogs link"

  71   *

  72   * Revision 1.1  2007/06/25 11:02:38  fplanque

  73   * MODULES (refactored MVC)

  74   *

  75   * Revision 1.9  2007/04/26 00:11:10  fplanque

  76   * (c) 2007

  77   *

  78   * Revision 1.8  2007/02/13 21:03:40  blueyed

  79   * Improved login/register/validation process:

  80   * - "Your account has been validated already." if an account had already been validated

  81   * - "We have already sent you %d email(s) with a validation link." note

  82   * - Autologin the user after he has registered (he just typed his credentials!)

  83   *

  84   * Revision 1.7  2006/11/24 18:27:26  blueyed

  85   * Fixed link to b2evo CVS browsing interface in file docblocks

  86   *

  87   * Revision 1.6  2006/10/15 21:30:46  blueyed

  88   * Use url_rel_to_same_host() for redirect_to params.

  89   *

  90   * Revision 1.5  2006/06/25 23:34:15  blueyed

  91   * wording pt2

  92   *

  93   * Revision 1.4  2006/06/25 23:23:38  blueyed

  94   * wording

  95   *

  96   * Revision 1.3  2006/06/22 22:30:04  blueyed

  97   * htsrv url for password related scripts (login, register and profile update)

  98   *

  99   * Revision 1.2  2006/04/19 20:13:52  fplanque

 100   * do not restrict to :// (does not catch subdomains, not even www.)

 101   *

 102   */
 103  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics