Alternc
latest
Alternc logiel libre pour l'hébergement
hta_doedituser.php
Go to the documentation of this file.
1
<?php
2
/*
3
----------------------------------------------------------------------
4
LICENSE
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License (GPL)
8
as published by the Free Software Foundation; either version 2
9
of the License, or (at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
To read the license please visit http://www.gnu.org/copyleft/gpl.html
17
----------------------------------------------------------------------
18
*/
19
20
/**
21
* Change the login / password of a protected folder
22
*
23
* @copyright AlternC-Team 2000-2017 https://alternc.com/
24
*/
25
26
require_once(
"../class/config.php"
);
27
include_once(
"head.php"
);
28
29
$fields
= array (
30
"user"
=> array (
"post"
,
"string"
,
""
),
31
"dir"
=> array (
"post"
,
"string"
,
""
),
32
"newpass"
=> array (
"post"
,
"string"
,
""
),
33
"newpassconf"
=> array (
"post"
,
"string"
,
""
),
34
);
35
getFields
(
$fields
);
36
37
if
($newpass != $newpassconf) {
38
$msg
->raise(
"ERROR"
,
"hta"
, _(
"Passwords do not match"
));
39
include(
"hta_edituser.php"
);
40
exit
();
41
}
42
43
if
($hta->change_pass(
$user
,$newpass,$dir)) {
44
$msg
->raise(
"INFO"
,
"hta"
, _(
"The password of the user %s has been successfully changed"
),
$user
);
45
$is_include
=
true
;
46
include_once(
"hta_edit.php"
);
47
}
else
{
48
include(
"hta_edituser.php"
);
49
}
50
?>
exit
exit
Definition:
adm_doadd.php:70
$msg
$msg
Definition:
bootstrap.php:75
getFields
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
Definition:
functions.php:688
$fields
$fields
Change the login / password of a protected folder.
Definition:
hta_doedituser.php:29
$user
$user
Definition:
bootstrap.php:84
$is_include
if($error) $is_include
Definition:
ssl_donew.php:55
bureau
admin
hta_doedituser.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1