26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "domain" => array (
"request",
"string",
""),
40 <h3><?php
__(
"FTP accounts list"); ?></h3>
45 echo
$msg->msg_html_all();
47 if ($quota->cancreate(
"ftp")) { ?>
49 <span
class=
"inb add"><a href=
"ftp_edit.php?create=1"><?php
__(
"Create a new FTP account"); ?></a></span>
55 $mem->show_help(
"ftp_list_no");
56 include_once(
"foot.php");
61 <form method=
"post" action=
"ftp_del.php">
63 <table
class=
"tlist" id=
"ftp_list_table">
65 <tr><th colspan=
"2"> </th><th><?php
__(
"Enabled"); ?></th><th><?php
__(
"Username"); ?></th><th><?php
__(
"Folder"); ?></th></tr>
71 <td align=
"center"><input type=
"checkbox" class=
"inc" id=
"del_<?php ehe($val["id"]); ?>" name=
"del_<?php ehe($val["id"]); ?>" value=
"<?php ehe($val["id"]); ?>" /></td>
72 <td><div
class=
"ina edit"><a href=
"ftp_edit.php?id=<?php eue($val["id"]); ?>"><?php
__(
"Edit"); ?></a></div></td>
74 <td><a href=
'ftp_switch_enable.php?id=<?php eue($val['id']); echo '&status=
'.( ($val['enabled'])?'0
':'1
' ) ;?>' onClick=
'return confirm("<?php __("Are you sure you want to change his status?"); ?>");'><?php
75 if (
$val[
'enabled']) {
76 echo
"<img src='images/check_ok.png' alt=\""._(
"Enabled").
"\"/>";
77 echo
"<span style='display:none;'>ENABLED</span>";
79 echo
"<img src='images/check_no.png' alt=\""._(
"Disabled").
"\"/>";
80 echo
"<span style='display:none;'>DISABLED</span>";
84 <td><label
for=
"del_<?php ehe($val["id"]); ?>"><?php
ehe(
$val[
"login"]); ?></label>
85 <input type=
"hidden" name=
"names[<?php ehe($val['id']); ?>]" value=
"<?php ehe($val["login
"]); ?>" />
88 <a href=
"bro_main.php?R=<?php eue(str_replace(getuserpath(),'', $val["dir
"])); ?>"><code><?php
ehe(substr(
$val[
"dir"],strlen(
getuserpath()) )); ?></code></a>
89 <?php
if ( ! file_exists(
$val[
'dir'])) { echo
" <span class=\"alerte\">"._(
"Directory not found").
"</span>"; } ?>
96 <p><input type=
"submit" name=
"submit" class=
"inb delete" value=
"<?php __("Delete checked accounts
"); ?>" /></p>
102 <h3><?php
__(
"FTP configuration information");?></h3>
104 <?php
__(
"Here are some configuration information you will need to configure your FTP application.");?>
107 <li><?php echo
'<b>'._(
"Server:").
'</b> '.$ftp->srv_proftpd; ?></li>
108 <li><?php echo
'<b>'._(
"FTP mode for data transfer:").
'</b> '._(
"passive");?></li>
109 <li><?php echo
'<b>'._(
"User/password:").
'</b> '._(
"the one you specified when you created the account. You can edit them in the panel.");?></li>
113 $mem->show_help(
"ftp_list");
115 <script type=
"text/javascript">
117 $(document).ready(
function()
119 $(
"#ftp_list_table").tablesorter();
124 <?php include_once(
"foot.php"); ?>
$fields
List the FTP accounts of the user.
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.
getuserpath($user=null)
get the home of the user
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