From 107774ca3f628c7b42386b8e054f84a25e3c8a46 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 20 Aug 2012 15:44:19 +0000 Subject: [PATCH] Register globals --- bureau/admin/mem_param.php | 2 +- bureau/admin/mem_passwd.php | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bureau/admin/mem_param.php b/bureau/admin/mem_param.php index 678fbf33..f9c8f8ff 100644 --- a/bureau/admin/mem_param.php +++ b/bureau/admin/mem_param.php @@ -62,7 +62,7 @@ if (!$mem->user["canpass"]) { - +
" size="20" maxlength="128" />
(1)" size="20" maxlength="60" />
(2)" size="20" maxlength="61" />
(2)" size="20" maxlength="61" />
" />
diff --git a/bureau/admin/mem_passwd.php b/bureau/admin/mem_passwd.php index da2bdc67..43fc1eb7 100644 --- a/bureau/admin/mem_passwd.php +++ b/bureau/admin/mem_passwd.php @@ -29,6 +29,15 @@ */ require_once("../class/config.php"); +$fields = array ( + "oldpass" => array ("post", "string", ""), + "newpass" => array ("post", "string", ""), + "newpass2" => array ("post", "string", ""), +); +getFields($fields); + + + if (!$mem->passwd($oldpass,$newpass,$newpass2)) { $error=$err->errstr(); } else { @@ -40,10 +49,10 @@ include_once("head.php"); ?>

$error"; include("foot.php"); exit(); } ?> - \ No newline at end of file +