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