Commit 94b90cb5 authored by Christoph Zysik's avatar Christoph Zysik

quick fix for some notices if user is visitor

parent 275bd206
......@@ -27,12 +27,14 @@ if (!file_exists('content' . $_GET['content'] . '.php')) $_GET['content'] = '/er
if ($_GET['content'] == '/intern/startseite') @require_once ('lib/texte/alt_startseitenpopup.txt');
if ($_GET['content'] == '/betteln') @require_once ('lib/texte/alt_bettelseitenpopup.txt');
$start_reload = $vms->reloads->hasContent( 1, $_SESSION['uid'], $ip, time());
if (true == $start_reload['in_reload'])
$datetime = "2014-09-21 20:33:28";
if( isset($_SESSION['uid']) )
{
$datetime = date("Y-m-d H:i:s", $start_reload['until']);
}else{
$datetime = "2014-09-21 20:33:28";
$start_reload = $vms->reloads->hasContent( 1, $_SESSION['uid'], $ip, time());
if (true == $start_reload['in_reload'])
{
$datetime = date("Y-m-d H:i:s", $start_reload['until']);
}
}
$ts = strtotime($datetime);
?><!DOCTYPE html>
......@@ -121,7 +123,7 @@ $ts = strtotime($datetime);
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="<?php echo $pageconfig['domain'];?>">Start</a></li>
<?php if ($_SESSION['login'] != true) { ?>
<?php if ( !isset($_SESSION['login']) || $_SESSION['login'] != true) { ?>
<li><a href="?content=/intern/anmelden">Registrieren</a></li>
<li><a href="?content=/intern/daten">Passwort anfordern!</a></li>
<?php }else{
......@@ -143,7 +145,7 @@ $ts = strtotime($datetime);
<li><a href="?content=/intern/impressum">Impressum</a></li>
</ul>
</li>
<?php if ($_SESSION['login'] != true) { ?>
<?php if (!isset($_SESSION['login']) || $_SESSION['login'] != true) { ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Login <span class="caret"></span></a>
<ul class="dropdown-menu">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment