Register globals...
This commit is contained in:
parent
4d6749920b
commit
9be64ddcde
|
@ -33,6 +33,16 @@ function ife($test,$true,$false="") {
|
|||
*/
|
||||
include("../class/config.php");
|
||||
|
||||
// FIXME Refaire ce truc hein...
|
||||
$fields = array (
|
||||
"caller" => array ("request", "string", ""),
|
||||
"select" => array ("request", "string", ""),
|
||||
"curdir" => array ("request", "string", ""),
|
||||
"lastcurdir" => array ("request", "string", ""),
|
||||
"file" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
function _subbrowse($curdir,$pos,$level) {
|
||||
global $maxlevel,$root,$brlist;
|
||||
if ($level>$maxlevel)
|
||||
|
|
|
@ -29,6 +29,15 @@
|
|||
*/
|
||||
require_once("../class/config.php");
|
||||
|
||||
$fields = array (
|
||||
"prefixe" => array ("post", "string", ""),
|
||||
"login" => array ("post", "string", ""),
|
||||
"dir" => array ("post", "string", ""),
|
||||
"pass" => array ("post", "string", ""),
|
||||
"passconf" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if ($pass != $passconf) {
|
||||
$error = _("Passwords do not match");
|
||||
include("ftp_add.php");
|
||||
|
|
|
@ -28,6 +28,14 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
$fields = array (
|
||||
"dir" => array ("post", "string", ""),
|
||||
"user" => array ("post", "string", ""),
|
||||
"password" => array ("post", "string", ""),
|
||||
"passwordconf" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
||||
if ($password != $passwordconf) {
|
||||
$error = _("Passwords do not match");
|
||||
|
|
|
@ -36,6 +36,7 @@ $fields = array (
|
|||
"newpass" => array ("request", "string", ""),
|
||||
"newpassconf" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if ($newpass != $newpassconf) {
|
||||
$error = _("Passwords do not match");
|
||||
|
|
|
@ -31,6 +31,7 @@ require_once("../class/config.php");
|
|||
include_once("head.php");
|
||||
|
||||
if (!$r=$hta->ListDir()) {
|
||||
echo "plop";
|
||||
$error=$err->errstr();
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue