26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "id" => array (
"request",
"string",
""),
34 <h3><?php
__(
"Change this user's password"); echo
" - ".$id ?></h3>
38 $r=$mysql->get_user_dblist(
$id);
40 $c=$admin->listPasswordPolicies();
44 <form method=
"post" action=
"sql_users_dopassword.php" autocomplete=
"off">
46 <input type=
"hidden" name=
"id" value=
"<?php ehe($id); ?>" />
48 <!-- honeypot fields -->
49 <input type=
"text" style=
"display: none" id=
"fakeUsername" name=
"fakeUsername" value=
"" />
50 <input type=
"password" style=
"display: none" id=
"fakePassword" name=
"fakePassword" value=
"" />
52 <table cellspacing=
"0" cellpadding=
"4" class=
"tedit">
54 <th><label
for=
"password"><?php
__(
"Password"); ?></label></th>
58 <th><label
for=
"passwordconf"><?php
__(
"Confirm password"); ?></label></th>
59 <td><input type=
"password" class=
"int" autocomplete=
"off" name=
"passwordconf" id=
"passwordconf" value=
"" size=
"20" maxlength=
"64" /></td>
63 <input type=
"submit" class=
"inb" value=
"<?php __("Change user password
"); ?>" />
64 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='sql_users_list.php'"/>
67 <?php include_once(
"foot.php"); ?>
const DEFAULT_PASS_SIZE
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel.
display_div_generate_password($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="", $classcount=3)
Show a button to set a random password for a password field.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$fields
Manage MySQL users password.
if(!isset($is_include)) if(! $key &&! $crt) $id