parent
8e3bfca0c5
commit
d42843ad89
|
@ -28,6 +28,16 @@
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
$fields = array (
|
||||||
|
"id" => array ("post", "integer", ""),
|
||||||
|
"pass" => array ("post", "string", ""),
|
||||||
|
"passconf" => array ("post", "string", ""),
|
||||||
|
"prefixe" => array ("post", "string", ""),
|
||||||
|
"login" => array ("post", "string", ""),
|
||||||
|
"dir" => array ("post", "string", ""),
|
||||||
|
);
|
||||||
|
getFields($fields);
|
||||||
|
|
||||||
|
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
$error=_("No account selected!");
|
$error=_("No account selected!");
|
||||||
|
@ -55,7 +65,7 @@ include_once("head.php");
|
||||||
?>
|
?>
|
||||||
<div align="center"><h3><?php __("Editing an FTP account"); ?></h3></div>
|
<div align="center"><h3><?php __("Editing an FTP account"); ?></h3></div>
|
||||||
<?php
|
<?php
|
||||||
if ($error) {
|
if (isset($error) && $error) {
|
||||||
echo "<p class=\"error\">$error</p>";
|
echo "<p class=\"error\">$error</p>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -51,6 +51,7 @@ if (isset($error) && $error) {
|
||||||
include_once("foot.php");
|
include_once("foot.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
printVar($r);
|
||||||
?>
|
?>
|
||||||
<form method="post" action="ftp_doedit.php" name="main" id="main">
|
<form method="post" action="ftp_doedit.php" name="main" id="main">
|
||||||
<table border="1" cellspacing="0" cellpadding="4">
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
@ -58,7 +59,7 @@ if (isset($error) && $error) {
|
||||||
<label for="login"><?php __("Username"); ?></label></th><td>
|
<label for="login"><?php __("Username"); ?></label></th><td>
|
||||||
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php ehe($r[0]["login"]); ?>" size="20" maxlength="64" />
|
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php ehe($r[0]["login"]); ?>" size="20" maxlength="64" />
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe($r[0]["dir"]); ?>" size="20" maxlength="64" />
|
<tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe("/".$r[0]["dir"]); ?>" size="20" maxlength="64" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -82,7 +82,7 @@ while (list($key,$val)=each($r))
|
||||||
<td><div class="ina"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
|
<td><div class="ina"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
|
||||||
|
|
||||||
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
|
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
|
||||||
<td><code><?php echo $val["dir"] ?></code></td>
|
<td><code><?php echo str_replace(ALTERNC_HTML,'',$val["dir"]) ?></code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue