26 require_once(
"../class/config.php");
28 "id" => array (
"post",
"integer",
""),
29 "create" => array (
"post",
"integer",
""),
30 "pass" => array (
"post",
"string",
""),
31 "passconf" => array (
"post",
"string",
""),
32 "prefixe" => array (
"post",
"string",
""),
33 "login" => array (
"post",
"string",
""),
34 "dir" => array (
"post",
"string",
""),
39 $msg->raise(
"ERROR",
"ftp", _(
"Error: neither a creation nor an edition"));
40 include(
"ftp_list.php");
45 $r=$ftp->add_ftp($prefixe,
$login,$pass,$dir);
47 $r=$ftp->put_ftp_details(
$id,$prefixe,
$login,$pass,$dir);
52 $rr[0][
"prefixe"]=$prefixe;
55 include_once(
"ftp_edit.php");
59 $msg->raise(
"INFO",
"ftp", _(
"The FTP account has been successfully created"));
61 $msg->raise(
"INFO",
"ftp", _(
"The FTP account has been successfully saved"));
63 include(
"ftp_list.php");
if(! $r=$aws->get_list()) $create
$fields
change settings of an FTP account
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
if(!isset($is_include)) if(! $key &&! $crt) $id