Alternc
latest
Alternc logiel libre pour l'hébergement
ftp_switch_enable.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
* Enable a FTP account
22
*
23
* @copyright AlternC-Team 2000-2017 https://alternc.com/
24
*/
25
26
require_once(
"../class/config.php"
);
27
28
$fields
= array (
29
"id"
=>array (
"get"
,
"integer"
,
""
),
30
"status"
=>array (
"get"
,
"integer"
,
null
),
31
);
32
33
getFields
(
$fields
);
34
35
if
($ftp->switch_enabled(
$id
,$status)) {
36
if
($status)
37
$msg
->raise(
"INFO"
,
"ftp"
, _(
"The FTP account is enabled"
));
38
else
39
$msg
->raise(
"INFO"
,
"ftp"
, _(
"The FTP account is disabled"
));
40
}
41
42
require_once(
'ftp_list.php'
);
$msg
$msg
Definition:
bootstrap.php:75
$fields
$fields
Enable a FTP account.
Definition:
ftp_switch_enable.php:28
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
$id
if(!isset($is_include)) if(! $key &&! $crt) $id
Definition:
ssl_doimport.php:44
bureau
admin
ftp_switch_enable.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1