26 require_once(
"../class/config.php");
30 while (list(
$key,
$val)=each($_POST)) {
31 if (substr(
$key,0,4)==
"del_") {
37 header (
"Location: /ftp_list.php");
42 "confirm_del" => array (
"post",
"string",
""),
43 "names" => array (
"post",
"array",
""),
48 if(!empty($confirm_del)) {
50 $r=$ftp->delete_ftp($v);
52 $msg->raise(
"INFO",
"ftp", _(
"The FTP account %s has been successfully deleted"),
$r);
55 include(
"ftp_list.php");
58 include_once(
'head.php');
60 <h3><?php
__(
"Confirm the FTP accounts deletion"); ?></h3>
63 <?php
__(
"Do you really want to delete those accounts?");?>
66 echo
"<li><b>".$names[
$t].
"</b></li>\n";
70 <form method=
"post" action=
"ftp_del.php" name=
"main" id=
"main">
73 echo
'<input type="hidden" name="del_'.ehe(
$t,
false).
'" value="'.
ehe(
$t,
false).
'" >'.
"\n";
75 <input type=
"submit" class=
"inb" name=
"confirm_del" value=
"<?php __("Delete
")?>" />
76 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='ftp_list.php'" />
80 include_once(
'foot.php');
while(list($key, $val)=each($_POST)) if(empty($lst_todel)) $fields
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 ...
foreach($domaines_user as $domaine) $t
if(empty($_POST['key'])||empty($_POST['val'])) $key