Alternc
latest
Alternc logiel libre pour l'hébergement
adm_quotadoedit.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
* Edit an account's quotas
22
*
23
* @copyright AlternC-Team 2000-2017 https://alternc.com/
24
*/
25
26
require_once(
"../class/config.php"
);
27
28
if
(!$admin->enabled) {
29
$msg
->raise(
"ERROR"
,
"admin"
, _(
"This page is restricted to authorized staff"
));
30
echo
$msg
->msg_html_all();
31
exit
();
32
}
33
$fields
= array (
34
"uid"
=> array (
"post"
,
"integer"
,
"0"
),
35
);
36
getFields
(
$fields
);
37
38
if
(!
$uid
) die(
'UID Error'
);
39
40
$mem
->su(
$uid
);
41
$qlist
=$quota->qlist();
42
reset(
$qlist
);
43
44
while
(list(
$key
,
$val
)=each(
$qlist
)) {
45
$var=
"q_"
.$key;
46
$quota->setquota(
$key
,
$_REQUEST
[$var]);
47
}
48
$mem
->unsu();
49
50
if
(!
$msg
->has_msgs(
"ERROR"
))
51
$msg
->raise(
"INFO"
,
"admin"
, _(
"The quotas has been successfully edited"
));
52
53
include(
"adm_list.php"
);
54
exit
;
55
56
?>
exit
exit
Definition:
adm_quotadoedit.php:53
$fields
if(! $admin->enabled) $fields
Edit an account's quotas.
Definition:
adm_quotadoedit.php:33
$qlist
$qlist
Definition:
adm_quotadoedit.php:41
$mem
$mem
Definition:
bootstrap.php:71
$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
$uid
$uid
Definition:
mail_dodelete.php:13
$_REQUEST
$_REQUEST["domain_id"]
Definition:
mail_doedit.php:120
$val
$val
Definition:
tempovars.php:15
$key
if(empty($_POST['key'])||empty($_POST['val'])) $key
Definition:
tempovars.php:14
bureau
admin
adm_quotadoedit.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1