Hanno Böck commited on 2024-02-03 20:57:12
Zeige 3 geänderte Dateien mit 22 Einfügungen und 18 Löschungen.
| ... | ... |
@@ -402,7 +402,11 @@ function html_form($form_id, $scriptname, $querystring, $content, $extraid = "") |
| 402 | 402 |
{
|
| 403 | 403 |
$querystring = encode_querystring($querystring); |
| 404 | 404 |
$ret = ''; |
| 405 |
- $ret .= '<form id="' . $form_id . $extraid . '" action="' . $scriptname . $querystring . '" method="post">' . "\n"; |
|
| 405 |
+ $ret .= '<form id="' . $form_id . $extraid . '" '; |
|
| 406 |
+ if ($scriptname . $querystring !== "") {
|
|
| 407 |
+ $ret .= 'action="' . $scriptname . $querystring . '" '; |
|
| 408 |
+ } |
|
| 409 |
+ $ret .= 'method="post">' . "\n"; |
|
| 406 | 410 |
$ret .= '<p style="display: none;"><input type="hidden" name="formtoken" value="' . generate_form_token($form_id) . '"></p>' . "\n"; |
| 407 | 411 |
$ret .= $content; |
| 408 | 412 |
$ret .= '</form>'; |
| ... | ... |
@@ -64,20 +64,20 @@ if ($show == 'password') {
|
| 64 | 64 |
$username = get_username_for_uid($uid); |
| 65 | 65 |
title("Neues Passwort setzen");
|
| 66 | 66 |
output('<p>Bitte legen Sie jetzt Ihr neues Passwort fest.</p>' .
|
| 67 |
- html_form('initialize_useraccount', '', '', '<p style="display: none"><input type="hidden" name="uid" value="' . $uid . '" />
|
|
| 68 |
- <input type="hidden" name="token" value="' . $token . '" /><input type="hidden" name="agb" value="1" /></p> |
|
| 67 |
+ html_form('initialize_useraccount', '', '', '<p style="display: none"><input type="hidden" name="uid" value="' . $uid . '">
|
|
| 68 |
+ <input type="hidden" name="token" value="' . $token . '"><input type="hidden" name="agb" value="1"></p> |
|
| 69 | 69 |
<p><span class="login_label">Ihr Benutzername:</span> <strong>' . $username . '</strong></p> |
| 70 |
- <p><span class="login_label">Neues Passwort:</span> <input type="password" name="password" size="30" /></p> |
|
| 71 |
- <p><span class="login_label">Bestätigung:</span> <input type="password" name="password2" size="30" /></p> |
|
| 72 |
- <p><span class="login_label"> </span> <input type="submit" value="Passwort setzen" /></p> |
|
| 70 |
+ <p><span class="login_label">Neues Passwort:</span> <input type="password" name="password" size="30" autocomplete="new-password"></p> |
|
| 71 |
+ <p><span class="login_label">Bestätigung:</span> <input type="password" name="password2" size="30" autocomplete="new-password"></p> |
|
| 72 |
+ <p><span class="login_label"> </span> <input type="submit" value="Passwort setzen"></p> |
|
| 73 | 73 |
')); |
| 74 | 74 |
} elseif ($show == 'agb') {
|
| 75 | 75 |
title("Bestätigung unserer AGB");
|
| 76 | 76 |
output('<p>Die Nutzung unseres Angebots ist an unsere <a href="https://schokokeks.org/agb">Allgemeinen Geschäftsbedingungen</a> gebunden. Bitte lesen Sie diese Bedingungen und bestätigen Sie Ihr Einverständnis. Sollten Sie diese Bedingungen nicht akzeptieren, setzen Sie sich bitte mit uns in Verbindung.</p>' .
|
| 77 |
- html_form('initialize_useraccount_agb', '', '', '<p style="display: none"><input type="hidden" name="uid" value="' . $uid . '" />
|
|
| 78 |
- <input type="hidden" name="token" value="' . $token . '" /></p> |
|
| 79 |
- <p><span class="login_label"> </span><input type="checkbox" name="agb" value="1" /> Ja, ich akzeptiere die AGB.<p> |
|
| 80 |
- <p><span class="login_label"> </span> <input type="submit" value="Weiter" /></p> |
|
| 77 |
+ html_form('initialize_useraccount_agb', '', '', '<p style="display: none"><input type="hidden" name="uid" value="' . $uid . '">
|
|
| 78 |
+ <input type="hidden" name="token" value="' . $token . '"></p> |
|
| 79 |
+ <p><span class="login_label"> </span><input type="checkbox" name="agb" value="1"> Ja, ich akzeptiere die AGB.<p> |
|
| 80 |
+ <p><span class="login_label"> </span> <input type="submit" value="Weiter"></p> |
|
| 81 | 81 |
')); |
| 82 | 82 |
} elseif ($show == 'token') {
|
| 83 | 83 |
title("Neues Passwort setzen");
|
| ... | ... |
@@ -54,17 +54,17 @@ if (isset($_REQUEST['customerno']) and isset($_REQUEST['token'])) {
|
| 54 | 54 |
if ($show == 'password') {
|
| 55 | 55 |
output('<p>Bitte legen Sie jetzt Ihr neues Kunden-Passwort fest.</p>
|
| 56 | 56 |
<form method="post"> |
| 57 |
- <p style="display: none"><input type="hidden" name="customerno" value="' . $customerno . '" /> |
|
| 58 |
- <input type="hidden" name="token" value="' . $token . '" /></p> |
|
| 59 |
- <p><span class="login_label">Neues Passwort:</span> <input type="password" name="password" size="30" /></p> |
|
| 60 |
- <p><span class="login_label">Bestätigung:</span> <input type="password" name="password2" size="30" /></p> |
|
| 61 |
- <p><span class="login_label"> </span> <input type="submit" value="Passwort setzen" /></p> |
|
| 57 |
+ <p style="display: none"><input type="hidden" name="customerno" value="' . $customerno . '"> |
|
| 58 |
+ <input type="hidden" name="token" value="' . $token . '"></p> |
|
| 59 |
+ <p><span class="login_label">Neues Passwort:</span> <input type="password" name="password" size="30" autocomplete="new-password"></p> |
|
| 60 |
+ <p><span class="login_label">Bestätigung:</span> <input type="password" name="password2" size="30" autocomplete="new-password"></p> |
|
| 61 |
+ <p><span class="login_label"> </span> <input type="submit" value="Passwort setzen"></p> |
|
| 62 | 62 |
</form>'); |
| 63 | 63 |
} elseif ($show == 'token') {
|
| 64 | 64 |
output('<p>Bitte geben Sie Ihre Kundennummer und den per E-Mail zugeschickten Code ein. Alternativ können sie den Link aus der E-Mail direkt aufrufen.</p>
|
| 65 | 65 |
<form method="post"> |
| 66 |
- <p><span class="login_label">Kundennummer:</span> <input type="text" name="customerno" size="30" /></p> |
|
| 67 |
- <p><span class="login_label">Code:</span> <input type="text" name="token" size="30" /></p> |
|
| 68 |
- <p><span class="login_label"> </span> <input type="submit" value="Überprüfen" /></p> |
|
| 66 |
+ <p><span class="login_label">Kundennummer:</span> <input type="text" name="customerno" size="30"></p> |
|
| 67 |
+ <p><span class="login_label">Code:</span> <input type="text" name="token" size="30"></p> |
|
| 68 |
+ <p><span class="login_label"> </span> <input type="submit" value="Überprüfen"></p> |
|
| 69 | 69 |
</form>'); |
| 70 | 70 |
} |
| 71 | 71 |