Register globals...

This commit is contained in:
Alan Garcia 2012-08-20 15:07:59 +00:00
parent 4d6749920b
commit 9be64ddcde
5 changed files with 29 additions and 0 deletions

View File

@ -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)

View File

@ -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");

View File

@ -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");

View File

@ -36,6 +36,7 @@ $fields = array (
"newpass" => array ("request", "string", ""),
"newpassconf" => array ("request", "string", ""),
);
getFields($fields);
if ($newpass != $newpassconf) {
$error = _("Passwords do not match");

View File

@ -31,6 +31,7 @@ require_once("../class/config.php");
include_once("head.php");
if (!$r=$hta->ListDir()) {
echo "plop";
$error=$err->errstr();
}
else {