git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login/pass: error messages below page title
[minimedit.git]
/
login
/
pass
/
index.php
diff --git
a/login/pass/index.php
b/login/pass/index.php
index 4fb50d0f2993195f9bafc117287d4729dcae1f97..8db1c885a0dc383561c6d066b096fcc119511e96 100644
(file)
--- a/
login/pass/index.php
+++ b/
login/pass/index.php
@@
-9,7
+9,7
@@
if (isset($_GET['token'])) {
}
else {
http_response_code(403);
}
else {
http_response_code(403);
-
print "<p class=warn>Code onjuist, geen toestemming om wachtwoord in te stellen.</p>\n
";
+
$Page->place['warn'] = "Code onjuist, geen toestemming om wachtwoord in te stellen.
";
return TRUE;
}
}
return TRUE;
}
}
@@
-26,7
+26,7
@@
if ($_POST) {
return;
}
http_response_code(400);
return;
}
http_response_code(400);
-
print "<p class=warn>$error</p>\n\n"
;
+
$Page->place['warn'] = $error
;
}
?>
}
?>
@@
-44,3
+44,5
@@
Dit zal de huidige code vervangen.
<input type="submit" value="Wijzig" />
</p>
</form>
<input type="submit" value="Wijzig" />
</p>
</form>
+<?php
+$Page->raw .= ob_get_clean();