add link to tos at register
parent
14c359a7d5
commit
e13eb09a55
|
@ -11,6 +11,12 @@
|
||||||
$RUNTIME['REGISTER']['PASS'] = null;
|
$RUNTIME['REGISTER']['PASS'] = null;
|
||||||
$RUNTIME['REGISTER']['EMAIL'] = null;
|
$RUNTIME['REGISTER']['EMAIL'] = null;
|
||||||
$RUNTIME['REGISTER']['AVATAR'] = null;
|
$RUNTIME['REGISTER']['AVATAR'] = null;
|
||||||
|
$RUNTIME['REGISTER']['TOS'] = false;
|
||||||
|
|
||||||
|
if(isset($_REQUEST['tos']) || @$_REQUEST['tos'] != "")
|
||||||
|
{
|
||||||
|
$RUNTIME['REGISTER']['TOS'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($_REQUEST['username']) || @$_REQUEST['username'] != "")
|
if(isset($_REQUEST['username']) || @$_REQUEST['username'] != "")
|
||||||
{
|
{
|
||||||
|
@ -78,7 +84,9 @@
|
||||||
|
|
||||||
if(isset($_REQUEST['doRegister']) || @$_REQUEST['doRegister'] != "")
|
if(isset($_REQUEST['doRegister']) || @$_REQUEST['doRegister'] != "")
|
||||||
{
|
{
|
||||||
if($RUNTIME['REGISTER']['AVATAR'] != null && $RUNTIME['REGISTER']['EMAIL'] != null && $RUNTIME['REGISTER']['PASS'] != null && $RUNTIME['REGISTER']['Name'] != null)
|
if($RUNTIME['REGISTER']['TOS'] == true)
|
||||||
|
{
|
||||||
|
if($RUNTIME['REGISTER']['AVATAR'] != null && $RUNTIME['REGISTER']['EMAIL'] != null && $RUNTIME['REGISTER']['PASS'] != null && $RUNTIME['REGISTER']['Name'] != null && $RUNTIME['REGISTER']['TOS'] == true)
|
||||||
{
|
{
|
||||||
$avatarUUID = $RUNTIME['OPENSIM']->gen_uuid();
|
$avatarUUID = $RUNTIME['OPENSIM']->gen_uuid();
|
||||||
$passwordSalt = md5($avatarUUID.time());
|
$passwordSalt = md5($avatarUUID.time());
|
||||||
|
@ -131,10 +139,14 @@
|
||||||
}else{
|
}else{
|
||||||
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "Ups da stimmt was nicht. Versuche es bitte noch mal.");
|
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "Ups da stimmt was nicht. Versuche es bitte noch mal.");
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "Du musst die Nutzungsbedingungen lesen und Akzeptieren.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "");
|
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "");
|
||||||
|
$HTML->ReplaceLayoutInhalt("%%tosURL%%", $RUNTIME['TOOLS']['TOS'] );
|
||||||
$HTML->ReplaceLayoutInhalt("%%INVCODE%%", $_REQUEST['code']);
|
$HTML->ReplaceLayoutInhalt("%%INVCODE%%", $_REQUEST['code']);
|
||||||
|
|
||||||
$HTML->build();
|
$HTML->build();
|
||||||
|
|
|
@ -56,6 +56,11 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="wrap-input100" data-validate="Bitte gebe deine E-Mail ein.">
|
||||||
|
<input type="checkbox" name="tos"> Ich habe die <a href="%%tosURL%%" target="_blank">Nutzungsbedingungen</a> gelesen.
|
||||||
|
<span class="focus-input100"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container-login100-form-btn m-t-17">
|
<div class="container-login100-form-btn m-t-17">
|
||||||
<input type="hidden" name="code" value="%%INVCODE%%">
|
<input type="hidden" name="code" value="%%INVCODE%%">
|
||||||
<button class="login100-form-btn" name="doRegister">
|
<button class="login100-form-btn" name="doRegister">
|
||||||
|
|
Loading…
Reference in New Issue