bernd commited on 2008-05-27 10:03:53
Zeige 1 geänderte Dateien mit 14 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1101 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -12,7 +11,10 @@ if (isset($_REQUEST['uid']) and isset($_REQUEST['token'])) |
| 12 | 11 |
require_once('inc/security.php');
|
| 13 | 12 |
if (validate_uid_token($uid, $token)) |
| 14 | 13 |
{
|
| 14 |
+ $show = 'agb'; |
|
| 15 |
+ if ($_POST['agb'] == '1') {
|
|
| 15 | 16 |
$show = 'password'; |
| 17 |
+ } |
|
| 16 | 18 |
if (isset($_POST['password'])) |
| 17 | 19 |
{
|
| 18 | 20 |
if ($_POST['password'] != $_POST['password2']) |
| ... | ... |
@@ -48,12 +50,22 @@ if ($show == 'password') |
| 48 | 50 |
output('<h3>Neues Passwort setzen</h3>
|
| 49 | 51 |
<p>Bitte legen Sie jetzt Ihr neues Passwort fest.</p>'. |
| 50 | 52 |
html_form('initialize_useraccount', '', '', '<p style="display: none"><input type="hidden" name="uid" value="'.$uid.'" />
|
| 51 |
- <input type="hidden" name="token" value="'.$token.'" /></p> |
|
| 53 |
+ <input type="hidden" name="token" value="'.$token.'" /><input type="hidden" name="agb" value="1" /></p> |
|
| 52 | 54 |
<p><span class="login_label">Neues Passwort:</span> <input type="password" name="password" size="30" /></p> |
| 53 | 55 |
<p><span class="login_label">Bestätigung:</span> <input type="password" name="password2" size="30" /></p> |
| 54 | 56 |
<p><span class="login_label"> </span> <input type="submit" value="Passwort setzen" /></p> |
| 55 | 57 |
')); |
| 56 | 58 |
} |
| 59 |
+elseif ($show == 'agb') |
|
| 60 |
+{
|
|
| 61 |
+ output('<h3>Bestätigung unserer AGB</h3>
|
|
| 62 |
+ <p>Die Nutzung unseres Angebots ist an unsere <a href="http://www.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>'. |
|
| 63 |
+ html_form('initialize_useraccount_agb', '', '', '<p style="display: none"><input type="hidden" name="uid" value="'.$uid.'" />
|
|
| 64 |
+ <input type="hidden" name="token" value="'.$token.'" /></p> |
|
| 65 |
+ <p><span class="login_label"> </span><input type="checkbox" name="agb" value="1" /> Ja, ich akzeptiere die AGB.<p> |
|
| 66 |
+ <p><span class="login_label"> </span> <input type="submit" value="Weiter" /></p> |
|
| 67 |
+ ')); |
|
| 68 |
+} |
|
| 57 | 69 |
elseif ($show == 'token') |
| 58 | 70 |
{
|
| 59 | 71 |
output('<h3>Neues Passwort setzen</h3>
|
| 60 | 72 |