26 require_once(
"../class/config.php");
27 include_once(
"head.php");
29 if (!$admin->enabled) {
30 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
31 echo
$msg->msg_html_all();
36 "uid" => array (
"request",
"integer", 0),
43 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
44 echo
$msg->msg_html_all();
50 $c=$admin->listPasswordPolicies();
54 <h3><?php
__(
"Member Edition"); ?></h3>
58 echo
$msg->msg_html_all();
60 <form method=
"post" action=
"adm_doedit.php" name=
"main" id=
"main" autocomplete=
"off">
65 <th><input type=
"hidden" name=
"uid" value=
"<?php echo $uid ?>" />
66 <?php
__(
"Username"); ?></th>
67 <td><?php echo
$r[
"login"]; ?></td>
70 <th><label><?php
__(
"Account Enabled?"); ?></label></th>
72 <?php
if (
$r[
"uid"]==
$mem->user[
"uid"]) { ?>
73 <?php
__(
"You cannot disable your own account."); ?>
75 <input type=
"radio" class=
"inc" id=
"enabled0" name=
"enabled" value=
"0"<?php
cbox(
$r[
"enabled"]==0); ?> /><label
for=
"enabled0"><?php
__(
"No"); ?></label><br />
76 <input type=
"radio" class=
"inc" id=
"enabled1" name=
"enabled" value=
"1"<?php
cbox(
$r[
"enabled"]==1); ?> /><label
for=
"enabled1"><?php
__(
"Yes"); ?></label><br />
82 <th><label
for=
"pass"><?php
__(
"Password"); ?></label></th>
86 <th><label
for=
"passconf"><?php
__(
"Confirm password"); ?></label></th>
87 <td><input type=
"password" class=
"int" id=
"passconf" autocomplete=
"off" name=
"passconf" value=
"" size=
"20" maxlength=
"64" /></td>
90 <th><label><?php
__(
"Password change allowed?"); ?></label></th>
92 <input type=
"radio" class=
"inc" id=
"canpass0" name=
"canpass" value=
"0"<?php
cbox(
$r[
"canpass"]==0); ?>/><label
for=
"canpass0"><?php
__(
"No"); ?></label><br />
93 <input type=
"radio" class=
"inc" id=
"canpass1" name=
"canpass" value=
"1"<?php
cbox(
$r[
"canpass"]==1); ?>/><label
for=
"canpass1"><?php
__(
"Yes"); ?></label><br />
97 <th><label
for=
"notes"><?php
__(
"Notes"); ?></label></th>
98 <td><textarea name=
"notes" id=
"notes" class=
"int" cols=
"32" rows=
"5"><?php
ehe(
$r[
'notes']); ?></textarea></td>
101 <th><label
for=
"nom"><?php echo _(
"Surname").
"</label> / <label for=\"prenom\">"._(
"First Name"); ?></label></th>
102 <td><input type=
"text" class=
"int" name=
"nom" id=
"nom" value=
"<?php ehe($r["nom
"]); ?>" size=
"20" maxlength=
"128" /> / <input type=
"text" class=
"int" name=
"prenom" id=
"prenom" value=
"<?php ehe($r["prenom
"]); ?>" size=
"20" maxlength=
"128" /></td>
105 <th><label
for=
"nmail"><?php
__(
"Email address"); ?></label></th>
106 <td><input type=
"text" class=
"int" name=
"nmail" id=
"nmail" value=
"<?php ehe($r["mail
"]); ?>" size=
"30" maxlength=
"128" /></td>
109 <th><label
for=
"type"><?php
__(
"Account type"); ?></label></th>
110 <td><select name=
"type" id=
"type" class=
"inl">
112 eoption($quota->listtype(),
$r[
'type'],
true);
113 ?></select> <input type=
"checkbox" name=
"reset_quotas" id=
"reset_quotas" class=
"inc" /><label
for=
"reset_quotas"><?php
__(
"Reset quotas to default?") ?></label></td>
116 <th><label
for=
"duration"><?php
__(
"Period"); ?></label></th>
119 <tr
class=
"trbtn"><td colspan=
"2">
120 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Edit
this account
"); ?>" />
121 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_list.php'" />
129 <?php
if(
$r[
'duration']) { ?>
130 <form method=
"post" action=
"adm_dorenew.php">
132 <input type=
"hidden" name=
"uid" value=
"<?php echo $uid ?>" />
133 <table border=
"1" cellspacing=
"0" cellpadding=
"4" class=
"tedit">
135 <th><label
for=
"periods"><?php
__(
"Renew for") ?></label></th>
136 <td><input name=
"periods" id=
"periods" type=
"text" size=
"2" value=
"1"/><?php echo
' ' . _(
'period(s)') ?></td>
139 <td colspan=
"2" align=
"center"><input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Renew
"); ?>" />
148 if (
$mem->user[
"uid"]==2000 &&
$r[
"uid"]!=2000) {
151 <b><?php
__(
"This account is a super-admin account"); ?></b>
154 <?php
if ($admin->onesu()) {
155 __(
"There is only one administrator account, you cannot turn this account back to normal");
158 <span
class=
"ina"><a href=
"adm_donosu.php?uid=<?php echo $r["uid
"]; ?>"><?php
__(
"Turn this account back to normal"); ?></a></span>
161 <span
class=
"ina"><a href=
"adm_dosu.php?uid=<?php echo $r["uid
"]; ?>"><?php
__(
"Make this account a super admin one"); ?></a></span>
167 if (
$c=$admin->get(
$r[
"creator"])) {
168 printf(_(
"Account created by %s"),
$c[
"login"]);
172 <script type=
"text/javascript">
173 document.forms[
'main'].pass.focus();
175 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $fields
Show a form to edit an account.
if($subadmin==0 &&! $admin->checkcreator($uid)) $r
variable_get($name, $default=null, $createit_comment=null)
Return a persistent variable.
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.
eoption($values, $cur, $onedim=false)
select_values($arr,$cur) echo des <option> du tableau $values ou de la table sql $values selectionne ...
duration_list($name, $selected=0)
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
cbox($test, $echo=true)
ECHOes checked="checked" only if the parameter is true useful for checkboxes and radio buttons.
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 ...