b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: htsrv ] [ index: htsrv ] [ all elements ]

Source for file _login_form.php

Documentation is available at _login_form.php

  1. <?php
  2. /**
  3.  * This is the 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-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  8.  *
  9.  * @package htsrv
  10.  */
  11.  
  12. /**
  13.  * Include page header:
  14.  */
  15. $page_title T_('Login form');
  16. $page_icon 'icon_login.gif';
  17. require(dirname(__FILE__).'/_header.php');
  18.  
  19. param'redirect_to''string'$ReqURI );
  20. param'log''string''' );        // last typed login
  21.  
  22. $location $redirect_to;
  23. debug_log'location: '.$location );
  24. ?>
  25.  
  26. <form action="<?php echo $location  ?>" method="post" class="fform">
  27.  
  28.     <?php
  29.         if!empty($mode) )
  30.         {    // We're in the process of bookmarkletting something, we don't want to loose it:
  31.             param'text''html''' );
  32.             param'popupurl''html''' );
  33.             param'popuptitle''html''' );
  34.         ?>
  35.             <input type="hidden" name="mode" value="<?php echo format_to_output$mode'formvalue' ?>" />
  36.             <input type="hidden" name="text" value="<?php echo format_to_output$text'formvalue' ?>" />
  37.             <input type="hidden" name="popupurl" value="<?php echo format_to_output$popupurl'formvalue' ?>" />
  38.             <input type="hidden" name="popuptitle" value="<?php echo format_to_output$popuptitle'formvalue' ?>" />
  39.         <?php
  40.         }
  41.     ?>
  42.  
  43.     <fieldset>
  44.  
  45.         <div class="center"><span class="notes"><?php printfT_('You will have to accept cookies in order to log in.') ) ?></span></div>
  46.  
  47.         <fieldset>
  48.             <div class="label"><label for="log"><?php echo T_('Login:'?></label></div>
  49.             <div class="input"><input type="text" name="log" id="log" size="16" maxlength="20" value="<?php echo format_to_output($log'formvalue')?>" class="large" /></div>
  50.         </fieldset>
  51.  
  52.         <fieldset>
  53.             <div class="label"><label for="pwd"><?php echo T_('Password:'?></label></div>
  54.             <div class="input"><input type="password" name="pwd" id="pwd" size="16" maxlength="20" value="" class="large" /></div>
  55.         </fieldset>
  56.  
  57.         <fieldset>
  58.             <div class="input">
  59.                 <input type="submit" name="submit" value="<?php echo T_('Log in!'?>" class="search" />
  60.             </div>
  61.         </fieldset>
  62.     </fieldset>
  63. </form>
  64.  
  65. <div style="text-align:right">
  66. <?php user_register_link''' &middot; ' )?>
  67. <a href="<?php echo $baseurl ?>"><?php echo T_('Go to Blogs'?></a>
  68. &middot;
  69. <a href="<?php echo $htsrv_url ?>/login.php?action=lostpassword&amp;redirect_to=<?php echo urlencode$redirect_to ?>"><?php echo T_('Lost your password ?'?></a>
  70. </div>
  71.  
  72. <?php
  73.     require(dirname(__FILE__).'/_footer.php');
  74. ?>

Documentation generated on Tue, 20 May 2008 01:55:25 +0200 by phpDocumentor 1.4.2