本文整理汇总了PHP中auth_get_password_max_size函数的典型用法代码示例。如果您正苦于以下问题:PHP auth_get_password_max_size函数的具体用法?PHP auth_get_password_max_size怎么用?PHP auth_get_password_max_size使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了auth_get_password_max_size函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: string_attribute
" value="<?php
echo string_attribute($f_username);
?>
" class="<?php
echo $t_username_field_autofocus;
?>
" /></span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="password"><span><?php
echo lang_get('password');
?>
</span></label>
<span class="input"><input id="password" type="password" name="password" size="32" maxlength="<?php
echo auth_get_password_max_size();
?>
" class="<?php
echo $t_password_field_autofocus;
?>
" /></span>
<span class="label-style"></span>
</div>
<?php
if (ON == config_get('allow_permanent_cookie')) {
?>
<div class="field-container">
<label for="remember-login"><span><?php
echo lang_get('save_login');
?>
</span></label>
示例2: config_get
if ( ( LDAP != config_get_global( 'login_method' ) ) &&
( ON == config_get( 'lost_password_feature' ) ) &&
( ON == config_get( 'send_reset_password' ) ) &&
( ON == config_get( 'enable_email_notification' ) ) ) {
echo '<li><a href="lost_pwd_page.php">', lang_get( 'lost_password_link' ), '</a></li>';
}
?>
</ul>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="username"><span><?php echo lang_get( 'username' ) ?></span></label>
<span class="input"><input id="username" type="text" name="username" size="32" maxlength="<?php echo DB_FIELD_SIZE_USERNAME;?>" value="<?php echo string_attribute( $f_username ); ?>" class="<?php echo $t_username_field_autofocus ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="password"><span><?php echo lang_get( 'password' ) ?></span></label>
<span class="input"><input id="password" type="password" name="password" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" class="<?php echo $t_password_field_autofocus ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="remember-login"><span><?php echo lang_get( 'save_login' ) ?></span></label>
<span class="input"><input id="remember-login" type="checkbox" name="perm_login" <?php echo ( $f_perm_login ? 'checked="checked" ' : '' ) ?>/></span>
<span class="label-style"></span>
</div>
<?php if ( $t_session_validation ) { ?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label id="secure-session-label" for="secure-session"><span><?php echo lang_get( 'secure_session' ) ?></span></label>
<span class="input">
<input id="secure-session" type="checkbox" name="secure_session" <?php echo ( $t_default_secure_session ? 'checked="checked" ' : '' ) ?>/>
<span id="session-msg"><?php echo lang_get( 'secure_session_long' ); ?></span>
</span>
<span class="label-style"></span>
示例3: helper_alternate_class_no_attribute
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="email-field"><span><?php echo lang_get( 'email' ) ?></span></label>
<span class="input"><?php print_email_input( 'email', '' ) ?></span>
<span class="label-style"></span>
</div><?php
}
if ( OFF == config_get( 'send_reset_password' ) ) { ?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="user-password"><span><?php echo lang_get( 'password' ) ?></span></label>
<span class="input"><input type="password" id="user-password" name="password" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="user-verify-password"><span><?php echo lang_get( 'verify_password' ) ?></span></label>
<span class="input"><input type="password" id="user-verify-password" name="password_verify" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /></span>
<span class="label-style"></span>
</div><?php
} ?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="user-access-level"><span><?php echo lang_get( 'access_level' ) ?></span></label>
<span class="select">
<select id="user-access-level" name="access_level">
<?php print_project_access_levels_option_list( config_get( 'default_new_account_access_level' ) ) ?>
</select>
</span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="user-enabled"><span><?php echo lang_get( 'enabled' ) ?></span></label>
<span class="checkbox"><input type="checkbox" id="user-enabled" name="enabled" checked="checked" /></span>
示例4: auth_reauthenticate_page
/**
* Generate the intermediate authentication page.
* @param integer $p_user_id User ID.
* @param string $p_username Username.
* @return boolean
* @access public
*/
function auth_reauthenticate_page($p_user_id, $p_username)
{
$t_error = false;
if (true == gpc_get_bool('_authenticate')) {
$f_password = gpc_get_string('password', '');
if (auth_attempt_login($p_username, $f_password)) {
auth_set_tokens($p_user_id);
return true;
} else {
$t_error = true;
}
}
html_page_top();
?>
<div class="important-msg">
<?php
echo lang_get('reauthenticate_message');
if ($t_error != false) {
echo '<br /><span class="error-msg">', lang_get('login_error'), '</span>';
}
?>
</div>
<div id="reauth-div" class="form-container">
<form id="reauth-form" method="post" action="">
<fieldset>
<legend><span><?php
echo lang_get('reauthenticate_title');
?>
</span></legend>
<?php
# CSRF protection not required here - user needs to enter password
# (confirmation step) before the form is accepted.
print_hidden_inputs($_POST);
print_hidden_inputs($_GET);
?>
<input type="hidden" name="_authenticate" value="1" />
<div class="field-container">
<label for="username"><span><?php
echo lang_get('username');
?>
</span></label>
<span class="input"><input id="username" type="text" disabled="disabled" size="32" maxlength="<?php
echo DB_FIELD_SIZE_USERNAME;
?>
" value="<?php
echo string_attribute($p_username);
?>
" /></span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="password"><span><?php
echo lang_get('password');
?>
</span></label>
<span class="input"><input id="password" type="password" name="password" size="32" maxlength="<?php
echo auth_get_password_max_size();
?>
" class="autofocus" /></span>
<span class="label-style"></span>
</div>
<span class="submit-button"><input type="submit" class="button" value="<?php
echo lang_get('login_button');
?>
" /></span>
</fieldset>
</form>
</div>
<?php
html_page_bottom();
exit;
}
示例5: auth_reauthenticate_page
/**
* Generate the intermediate authentication page.
* @param integer User ID
* @param string Username
* @return bool
* @access public
*/
function auth_reauthenticate_page($p_user_id, $p_username)
{
$t_error = false;
if (true == gpc_get_bool('_authenticate')) {
$f_password = gpc_get_string('password', '');
if (auth_attempt_login($p_username, $f_password)) {
auth_set_tokens($p_user_id);
return true;
} else {
$t_error = true;
}
}
html_page_top();
?>
<div align="center">
<p>
<?php
echo lang_get('reauthenticate_message');
if ($t_error != false) {
echo '<br /><font color="red">', lang_get('login_error'), '</font>';
}
?>
</p>
<form name="reauth_form" method="post" action="<?php
echo string_attribute(form_action_self());
?>
">
<?php
# CSRF protection not required here - user needs to enter password
# (confirmation step) before the form is accepted.
print_hidden_inputs(gpc_strip_slashes($_POST));
print_hidden_inputs(gpc_strip_slashes($_GET));
?>
<input type="hidden" name="_authenticate" value="1" />
<table class="width50 center">
<tr>
<td class="form-title" colspan="2"><?php
echo lang_get('reauthenticate_title');
?>
</td>
</tr>
<tr class="row-1">
<td class="category"><?php
echo lang_get('username');
?>
</td>
<td><input type="text" disabled="disabled" size="32" maxlength="<?php
echo DB_FIELD_SIZE_USERNAME;
?>
" value="<?php
echo $p_username;
?>
" /></td>
</tr>
<tr class="row-2">
<td class="category"><?php
echo lang_get('password');
?>
</td>
<td><input type="password" name="password" size="32" maxlength="<?php
echo auth_get_password_max_size();
?>
" /></td>
</tr>
<tr>
<td class="center" colspan="2"><input type="submit" class="button" value="<?php
echo lang_get('login_button');
?>
" /></td>
</tr>
</table>
</form>
</div>
<?php
if (ON == config_get('use_javascript')) {
?>
<!-- Autofocus JS -->
<script type="text/javascript" language="JavaScript">
<!--
window.document.reauth_form.password.focus();
// -->
</script>
<?php
}
?>
//.........这里部分代码省略.........
示例6: helper_alternate_class_no_attribute
# Without LDAP
$t_show_update_button = true;
?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<span class="display-label"><span><?php echo lang_get( 'username' ) ?></span></span>
<span class="input"><span class="field-value"><?php echo string_display_line( $u_username ) ?></span></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="password" <?php if ( $t_force_pw_reset ) { ?> class="required" <?php } ?>><span><?php echo lang_get( 'password' ) ?></span></label>
<span class="input"><input id="password" type="password" name="password" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="password-confirm" <?php if ( $t_force_pw_reset ) { ?> class="required" <?php } ?>><span><?php echo lang_get( 'confirm_password' ) ?></span></label>
<span class="input"><input id="password-confirm" type="password" name="password_confirm" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" /></span>
<span class="label-style"></span>
</div><?php
} ?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<span class="display-label"><span><?php echo lang_get( 'email' ) ?></span></span>
<span class="input"><?php
if ( $t_ldap && ON == config_get( 'use_ldap_email' ) ) {
// With LDAP
echo '<span class="field-value">' . string_display_line( $u_email ) . '</span>';
} else {
// Without LDAP
$t_show_update_button = true;
print_email_input( 'email', $u_email );
} ?>
</span>