M5 A1 bis auf 9)

This commit is contained in:
S170H
2023-12-18 18:59:00 +01:00
committed by Robert
parent 94f7100138
commit 5ee2f923fe
4 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
<?php $_shouldextend[1]=1; ?>
<?php $this->startSection("main"); ?>
<?php if(!isset($_SESSION['name'])): ?>
<meta http-equiv="refresh" content="0;url=/" />
<?php endif; ?>
<?php $this->stopSection(); ?>
<?php if (isset($_shouldextend[1])) { echo $this->runChild("m5_a1.layout_anmeldung"); } ?>

View File

@@ -17,7 +17,18 @@
<a href="#wichtig">Wichtig für uns</a>
</div>
<div>
<?php if(($_SESSION['login'] ?? NULL) == 0): ?>
<a href="/anmeldung">Anmelden</a>
<?php else: ?>
Angemeldet als:<br>
<div><?php echo \htmlentities($_SESSION['name']??'', ENT_QUOTES, 'UTF-8', false); ?></div>
<a href="/abmeldung">Abmelden</a>
<?php endif; ?>
</div>
</div>
<?php $this->stopSection(); ?>
<?php $this->startSection("text"); ?>

View File

@@ -4,7 +4,7 @@
@if(!isset($_SESSION['name']))
<meta http-equiv="refresh" content="0;url=/werbeseite" />
<meta http-equiv="refresh" content="0;url=/" />
@endif

View File

@@ -17,7 +17,18 @@
<a href="#wichtig">Wichtig für uns</a>
</div>
<div>
@if(($_SESSION['login'] ?? NULL) == 0)
<a href="/anmeldung">Anmelden</a>
@else
Angemeldet als:<br>
<div>{{ $_SESSION['name'] }}</div>
<a href="/abmeldung">Abmelden</a>
@endif
</div>
</div>
@endsection
@section("text")