Ejemplo n.º 1
0
    if ($loggedInUser->getWritePost()) {
        echo "<a href='createPost' title='create post'>+&nbsp;</a>";
    }
    echo "<a href='logout' title='logout' class='loginbutton'><img src='img/logout.png' width='20px' height='20px'></a>";
} else {
    echo "<a href='javascript:void(0)' onClick='login()' class='loginbutton' title='login'><img src='img/login.png' width='20px' height='20px'></img></a>";
}
?>
            </div>
          </span>
        </h1>
      </div>
      <div id='content'>
        <?php 
if (isset($_GET['id'])) {
    $posting = $dbman->getPosting($_GET['id']);
    include 'beitrag.php';
} else {
    $postings = $dbman->getAllPostings();
    foreach ($postings as $posting) {
        include 'beitrag.php';
    }
}
?>
      </div>
      <div id='login' class='hidden'>
        <div class='closebutton'>
          <a href='#' onclick="login()">x&nbsp;</a>
        </div>
        <form action='Login.php' method='post'>
          <ul>