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();
32 include_once(
"foot.php");
37 "uid" => array (
"request",
"integer", 0),
44 $r=$quota->getquota();
48 <h3><?php
__(
"Editing the quotas of a member"); ?></h3>
52 echo
$msg->msg_html_all();
54 <form method=
"post" action=
"adm_quotadoedit.php">
57 <tr><th><input type=
"hidden" name=
"uid" value=
"<?php ehe($uid); ?>" />
58 <?php
__(
"Username"); ?></th><td colspan=
"3"><code><big><?php
ehe(
$us[
"login"]); ?></big></code> </td></tr>
59 <tr><th><?php
__(
"Quota"); ?></th><th style=
"text-align: right"><?php
__(
"Total"); ?></th><th><?php
__(
"Used"); ?></th></tr>
64 if (!isset(
$r[
$key]))
continue;
67 if (
$r[
$key][
"t"]==
$r[
$key][
"u"] &&
$r[
$key][
"u"]) echo
"<span style=\"color: red;\">";
68 echo
"<label for=\"q_$key\">" .
$val .
"</label>";
71 echo
"<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"20\" value=\"".$r[
$key][
"t"].
"\" name=\"q_".
$key.
"\" id=\"q_".
$key.
"\" /></td>";
72 echo
"<td align=\"right\"><code><label for=\"q_$key\">".$r[
$key][
"u"].
"</label></code> </td>";
76 <tr
class=
"trbtn"><td colspan=
"3">
77 <input
class=
"inb ok" type=
"submit" name=
"submit" value=
"<?php __("Edit the quotas
"); ?>" />
78 <input type=
"button" class=
"inb cancel" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_list.php'" />
83 <?php include_once(
"foot.php"); ?>
if(! $admin->enabled) $fields
Show the form used to update users' quotas.
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
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 ...
if(empty($_POST['key'])||empty($_POST['val'])) $key