Hi,
I need help with my script, I want to make it so when I am logged in then that is not "hello guest" is but "Hello User / Logout". But I have already started not coming on with the if and else queries.
Script: this is my example:
Regards tomcat
I need help with my script, I want to make it so when I am logged in then that is not "hello guest" is but "Hello User / Logout". But I have already started not coming on with the if and else queries.
Script: this is my example:
Code:
<!-- PANEL START -->
<?php if (!$Auth->loggedIn()) ?>
<div class="toppanel">
<div class="page">
<div class="tab">
<ul class="lr">
<li class="left"></li>
<li class="welcome_guest">Hallo Gast!</li>
<li class="line">|</li>
<li>
<a href="../login.html">Login</a>
<a> | </a>
<a href="../register.html">Registrieren</a>
</li>
<li class="right"></li>
</ul>
</div>
</div>
</div>
<elseif (!$Auth->loggedOut()) != 1 then>
<div class="toppanel">
<div class="page">
<div class="tab">
<ul class="lr">
<li class="left"></li>
<li class="welcome_guest">Willkommen zurück, <?php echo $Auth->username; ?></li>
<li class="line">|</li>
<li>
<a href="<?php echo WEB_ROOT; ?>/logout.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>">Abmelden</a>
</li>
<li class="right"></li>
</ul>
</div>
</div>
</div>
<else /></if>
<!-- PANEL ENDE -->