Commit f346c484 authored by Benjamin Sonntag's avatar Benjamin Sonntag
Browse files

register_globals for change email process

parent 4f960249
......@@ -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();
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment