register_globals for change email process

This commit is contained in:
Benjamin Sonntag 2012-08-23 11:05:03 +00:00
parent 4f960249a9
commit f346c48470
2 changed files with 16 additions and 2 deletions

View File

@ -31,10 +31,17 @@
require_once("../class/config_nochk.php");
include_once("head.php");
$fields = array (
"usr" => array ("request", "integer", 0),
"cookie" => array ("request", "string", ""),
"cle" => array("request","string",""),
);
getFields($fields);
?>
<h3><?php __("Change the email of the account"); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();

View File

@ -30,6 +30,13 @@
require_once("../class/config_nochk.php");
$fields = array (
"usr" => array ("request", "integer", 0),
"cookie" => array ("request", "string", ""),
"cle" => array("request","string",""),
);
getFields($fields);
if (!$mem->ChangeMail2($cookie,$cle,$usr)) {
$error=$err->errstr();
}
@ -39,7 +46,7 @@ include_once("head.php");
?>
<h3><?php __("Change the email of the account"); ?></h3>
<?php
if ($error) {
if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();