26 require_once(
"../class/config.php");
28 if (!$admin->enabled) {
29 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
30 echo
$msg->msg_html_all();
37 "uid" => array (
"post",
"integer", 0),
38 "enabled" => array (
"post",
"boolean",
true),
39 "pass" => array (
"post",
"string",
""),
40 "passconf" => array (
"post",
"string",
""),
41 "canpass" => array (
"post",
"boolean",
true),
42 "notes" => array (
"post",
"string",
""),
43 "nom" => array (
"post",
"string",
""),
44 "prenom" => array (
"post",
"string",
""),
45 "nmail" => array (
"post",
"string",
""),
46 "type" => array (
"post",
"string",
""),
47 "duration" => array (
"post",
"integer", 0),
48 "reset_quotas" => array (
"post",
"string",
false),
54 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
55 echo
$msg->msg_html_all();
59 if ($pass != $passconf) {
60 $msg->raise(
"ERROR",
"admin", _(
"Passwords do not match"));
61 include(
"adm_edit.php");
69 if (!$admin->update_mem(
$uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration, $notes, $reset_quotas)){
70 include(
"adm_edit.php");
72 $msg->raise(
"INFO",
"admin", _(
"The member has been successfully edited"));
73 include(
"adm_list.php");
if(! $admin->enabled) $subadmin
Edit an account settings (name, password, etc.)
variable_get($name, $default=null, $createit_comment=null)
Return a persistent variable.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.