<?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.php'); } require 'gb.php'; $gb = new GB(); $db = $gb->getDB(); $l = $gb->getLanguage($gb->getUserSettings()['user_language']); $gbs = $gb->getGbSettings(); $user = $gb->getUserSettings(); $unpublic_count = $db->getCountOfUnpablicPosts(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title><?php echo $l['gb']; ?> : <?php echo $gbs['gb_title']; ?> </title> <!-- Font-Awesome CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- Bootstrap Core CSS --> <link href="conf/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS -->
<head> <meta charset="UTF-8"> <title>Gästebuch: HomepageHelfer</title> <!-- Zum richtigen darstellen des GB kommt dieser Teil zwischen <head> und </head>. ANFANG GB Meta. Von hier --> <?php $gb->includeMeta(); ?> <!-- bis hier. ENDE GB Meta --> </head> <body> <div style="width:97%;margin:auto;"> <!-- Dieser Teil kommt in den Textbereich der Seite oft auch Content-Bereich genannt. ANFANG GB Body. Von hier --> <h3 class="hh_form"><?php echo $gb->getGbSettings()['gb_title']; ?> </h3> <!-- Load the submit form --> <?php $gb->showGBookForm(basename(__FILE__)); ?> <!-- Load all Posts from database --> <?php $gb->showGBookPosts(); ?> <!-- Load page navigation for GB --> <?php $gb->showGBpageNavi();