Register globals
This commit is contained in:
parent
b65ae184ab
commit
4d6749920b
|
@ -35,6 +35,20 @@ if (!$admin->enabled) {
|
||||||
__("This page is restricted to authorized staff");
|
__("This page is restricted to authorized staff");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
$fields = array (
|
||||||
|
"login" => array ("post", "string", ""),
|
||||||
|
"pass" => array ("post", "string", ""),
|
||||||
|
"passconf" => array ("post", "string", ""),
|
||||||
|
"canpass" => array ("post", "integer", ""),
|
||||||
|
"notes" => array ("post", "string", ""),
|
||||||
|
"nom" => array ("post", "string", ""),
|
||||||
|
"prenom" => array ("post", "string", ""),
|
||||||
|
"nmail" => array ("post", "string", ""),
|
||||||
|
"type" => array ("post", "string", ""),
|
||||||
|
"create_dom_list" => array ("post", "string", ""),
|
||||||
|
"submit" => array ("post", "string", ""),
|
||||||
|
);
|
||||||
|
getFields($fields);
|
||||||
|
|
||||||
if ($pass != $passconf) {
|
if ($pass != $passconf) {
|
||||||
$error = _("Passwords do not match");
|
$error = _("Passwords do not match");
|
||||||
|
|
|
@ -33,22 +33,24 @@ if (!$admin->enabled) {
|
||||||
__("This page is restricted to authorized staff");
|
__("This page is restricted to authorized staff");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
$fields = array (
|
||||||
|
"uid" => array ("post", "integer", "0"),
|
||||||
|
);
|
||||||
|
getFields($fields);
|
||||||
|
|
||||||
if ($submit) {
|
if (!$uid) die('UID Error');
|
||||||
|
|
||||||
$mem->su($uid);
|
$mem->su($uid);
|
||||||
$qlist=$quota->qlist();
|
$qlist=$quota->qlist();
|
||||||
reset($qlist);
|
reset($qlist);
|
||||||
|
|
||||||
while (list($key,$val)=each($qlist)) {
|
|
||||||
$var="q_".$key;
|
|
||||||
$quota->setquota($key,$_REQUEST[$var]);
|
|
||||||
}
|
|
||||||
$mem->unsu();
|
|
||||||
$error=_("The quotas has been successfully edited");
|
|
||||||
include("adm_list.php");
|
|
||||||
exit;
|
|
||||||
|
|
||||||
|
while (list($key,$val)=each($qlist)) {
|
||||||
|
$var="q_".$key;
|
||||||
|
$quota->setquota($key,$_REQUEST[$var]);
|
||||||
}
|
}
|
||||||
|
$mem->unsu();
|
||||||
|
$error=_("The quotas has been successfully edited");
|
||||||
|
include("adm_list.php");
|
||||||
|
exit;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -56,7 +56,7 @@ $mem->unsu();
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
if ($error) {
|
if (isset($error) && $error) {
|
||||||
echo "<p class=\"error\">$error</p>";
|
echo "<p class=\"error\">$error</p>";
|
||||||
include_once("foot.php");
|
include_once("foot.php");
|
||||||
exit();
|
exit();
|
||||||
|
|
Loading…
Reference in New Issue