[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> signup_page.php (source)

   1  <?php
   2  # Mantis - a php based bugtracking system
   3  
   4  # Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
   5  # Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
   6  
   7  # Mantis is free software: you can redistribute it and/or modify
   8  # it under the terms of the GNU General Public License as published by
   9  # the Free Software Foundation, either version 2 of the License, or
  10  # (at your option) any later version.
  11  #
  12  # Mantis is distributed in the hope that it will be useful,
  13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15  # GNU General Public License for more details.
  16  #
  17  # You should have received a copy of the GNU General Public License
  18  # along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
  19  
  20      # --------------------------------------------------------
  21      # $Id: signup_page.php,v 1.33.18.1 2007-10-13 22:34:31 giallu Exp $
  22      # --------------------------------------------------------
  23  
  24      require_once ( 'core.php' );
  25  
  26      # Check for invalid access to signup page
  27      if ( OFF == config_get( 'allow_signup' ) ) {
  28          print_header_redirect( 'login_page.php' );
  29      }
  30  
  31      html_page_top1();
  32      html_page_top2a();
  33  
  34      $t_key = mt_rand( 0,99999 );
  35  ?>
  36  
  37  <br />
  38  <div align="center">
  39  <form name="signup_form" method="post" action="signup.php">
  40  <table class="width50" cellspacing="1">
  41  <tr>
  42      <td class="form-title" colspan="3">
  43          <?php echo lang_get( 'signup_title' ) ?>
  44      </td>
  45  </tr>
  46  <tr class="row-1">
  47      <td class="category" width="30%">
  48          <?php echo lang_get( 'username' ) ?>:
  49      </td>
  50      <td width="70%" colspan="2">
  51          <input type="text" name="username" size="32" maxlength="32" />
  52      </td>
  53  </tr>
  54  <tr class="row-2">
  55      <td class="category">
  56          <?php echo lang_get( 'email' ) ?>:
  57      </td>
  58      <td colspan="2">
  59          <?php print_email_input( 'email', '' ) ?>
  60      </td>
  61  </tr>
  62  <?php
  63      $t_allow_passwd = helper_call_custom_function( 'auth_can_change_password', array() );
  64      if( ON == config_get( 'signup_use_captcha' ) && get_gd_version() > 0 && ( true == $t_allow_passwd ) ) {
  65          # captcha image requires GD library and related option to ON
  66  ?>
  67  <tr class="row-1">
  68      <td class="category">
  69          <?php echo lang_get( 'signup_captcha_request' ) ?>:
  70      </td>
  71      <td>
  72          <?php print_captcha_input( 'captcha', '' ) ?>
  73      </td>
  74      <td>
  75          <img src="make_captcha_img.php?public_key=<?php echo $t_key ?>">
  76          <input type="hidden" name="public_key" value="<?php echo $t_key ?>">
  77      </td>
  78  </tr>
  79  <?php
  80      }
  81      if( false == $t_allow_passwd ) {
  82  ?>
  83  <tr class="row-1">
  84      <td class="category">
  85      </td>
  86      <td colspan="2">
  87          <?php echo lang_get( 'no_password_request' ) ?>
  88      </td>
  89  </tr>
  90  <?php
  91      }
  92  ?>
  93  <tr>
  94      <td colspan="3">
  95          <br/>
  96          <?php echo lang_get( 'signup_info' ) ?>
  97          <br/><br/>
  98      </td>
  99  </tr>
 100  <tr>
 101      <td class="center" colspan="3">
 102          <input type="submit" class="button" value="<?php echo lang_get( 'signup_button' ) ?>" />
 103      </td>
 104  </tr>
 105  </table>
 106  </form>
 107  </div>
 108  
 109  <?php
 110      PRINT '<br /><div align="center">';
 111      print_login_link();
 112      PRINT '&nbsp;';
 113      print_lost_password_link();
 114      PRINT '</div>';
 115  
 116      if ( ON == config_get( 'use_javascript' ) ) {
 117  ?>
 118  <!-- Autofocus JS -->
 119  <?php if ( ON == config_get( 'use_javascript' ) ) { ?>
 120  <script type="text/javascript" language="JavaScript">
 121  <!--
 122      window.document.signup_form.username.focus();
 123  // -->
 124  </script>
 125  <?php } ?>
 126  <?php
 127      }
 128  
 129      html_page_bottom1a( __FILE__ );
 130  ?>


Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics