Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<div class="lo">
<div class="ro">
<div class="ru">
<div class="lu">
<div id="haupt">
<?php include("gaestebuch/index.php"); ?>
</div>
</div>
</div>
</div>
</div>
<?php
// Kontrolle ob settings.inc.php vorhanden
if(file_exists("gaestebuch/settings.inc.php")) {
// settings.inc.php includieren
include("gaestebuch/settings.inc.php");
}
else {
// wenn settings.inc.php nicht vorhanden ist
echo "<br><br><center><font face=\"Verdana\" size=\"2\"><font color=\"#FF0000\">Datei</font><i> 'settings.inc.php' </i><font color=\"#FF0000\">wurde nicht gefunden!</font></font></center>";
}
// Verbindung zur Datenbank herstellen
$link = mysql_connect("$db_host", "$db_user", "$db_pass")
or die("<br><br><center><font face=\"Verdana\" size=\"2\"><font color=\"#FF0000\">Keine Verbindung zur Datenbank möglich!</font></font></center>");
mysql_select_db("$db_name")
or die("<br><br><center><font face=\"Verdana\" size=\"2\"><font color=\"#FF0000\">Auswahl der Datenbank</font><i> '".$db_name."' </i><font color=\"#FF0000\">fehlgeschlagen!</font></font></center>");
$settings = mysql_query("SELECT * FROM ".$prefix."settings");
while($set=mysql_fetch_array($settings)) {
$titel = $set['titel'];
$steps = $set['steps'];
$ueber = $set['ueber'];
$titel_bild = $set['titel_bild'];
$titel_text = $set['titel_text'];
$ff_ueber = $set['ff_ueber'];
$fs_ueber = $set['fs_ueber'];
$fc_ueber = $set['fc_ueber'];
$ff_normal = $set['ff_normal'];
$fs_normal = $set['fs_normal'];
$fc_normal = $set['fc_normal'];
$ff_name = $set['ff_name'];
$fs_name = $set['fs_name'];
$fc_name = $set['fc_name'];
$ff_extra = $set['ff_extra'];
$fs_extra = $set['fs_extra'];
$fc_extra = $set['fc_extra'];
$ff_entry = $set['ff_entry'];
$fs_entry = $set['fs_entry'];
$fc_entry = $set['fc_entry'];
$ff_menu = $set['ff_menu'];
$fs_menu = $set['fs_menu'];
$fc_menu = $set['fc_menu'];
$bg_color_1 = $set['bg_color_1'];
$bg_color_2 = $set['bg_color_2'];
$color_no = $set['color_no'];
$deco_no = $set['deco_no'];
$color_mo = $set['color_mo'];
$deco_mo = $set['deco_mo'];
$cursor_mo = $set['cursor_mo'];
}
echo "<html>
<head>
<title>".$titel."</title>
<style>
body {
background-color: #0000FF;
}
a {
color: ".$color_no.";
text-decoration: ".$deco_no.";
}
a:hover {
color: ".$color_mo.";
text-decoration: ".$deco_mo.";
cursor: ".$cursor_mo.";
}
table {
border-color:#000000;
}
.eintragen {
color:#0033FF;
text-decoration:none;
}
.eintragen:hover {
color:#FF0000;
text-decoration:underline;
}
.daten {
font-size:14px;
color:#FFFFFF;
}
.datum_nr {
font-size:12px;
color:#0000FF;
}
</style>
</head>
<body>
<div id=\"inhalt2\">";
//<br> <center>*;
if($ueber=="1") {
echo " <font style=\"font-size:".$fs_ueber."px;color:".$fc_ueber.";font-family:".$ff_ueber."\">
<b>$titel_text</b>
</font>\n";
}
elseif($ueber=="2") {
echo " <img src=\"".$titel_bild."\" border=\"0\">\n";
}
$result = mysql_query("SELECT * FROM ".$prefix."entry");
$entries = mysql_num_rows($result);
echo "<br>
<br>
<table border=\"0\" align=\"center\">
<tr>
<td align=\"center\">
<font style=\"font-size:".$fs_normal."px;color:".$fc_normal.";font-family:".$ff_normal."\">
<a class=\"eintragen\" href=\"index.php?page=add_entry\">Eintragen</a> | Einträge: $entries
<br>\n";
if(!$step) {
$step=$steps; // Wieviele Einträge angezeigt werden sollen
}
if(!isset($_REQUEST['start'])) {
$start=0;
}
else
{
$start = $_REQUEST['start'];
}
// Anzahl aller Einträge feststellen
$result=mysql_query( "SELECT * FROM ".$prefix."entry ORDER BY ID DESC " );
$nr=mysql_num_rows($result);
// Einträge für die gewählte Seite holen
$result=mysql_query( "SELECT * FROM ".$prefix."entry ORDER BY ID DESC LIMIT $start,$step" );
// Links zu den anderen Seiten anzeigen
echo "Gehe zu Seite: ";
for ($i=0;$i<$nr;$i=$i+$step)
{
$link=($i/$step)+1;
if ($start==$i)
{
echo " <b>[".$link."]</b> ";
} else {
echo "<a href=\"index.php?page=gaestebuch.php?start=".$i."\"> ".$link." </a>";
}
}
echo " </font>
</td>
</tr>
</table>
<br>
<br>";
$result = mysql_query("SELECT * FROM ".$prefix."entry ORDER BY ID DESC LIMIT $start,$step");
while($row=mysql_fetch_array($result)) {
$row['text'] = strip_tags($row['text']); // Kein HTML-Code
$row['text'] = trim($row['text']); // Keine Leerstellen
$row['text'] = str_replace("\n","<br>",$row['text']);
//Smileys Anfang
$row['text'] = str_replace(":-)", "<img src=\"../gaestebuch/images/smiley/lachen.gif\">",$row['text']);
$row['text'] = str_replace(";-)", "<img src=\"../gaestebuch/images/smiley/zwinker.gif\">",$row['text']);
$row['text'] = str_replace(":rolleyes:", "<img src=\"../gaestebuch/images/smiley/rolleyes.gif\">",$row['text']);
$row['text'] = str_replace(":-(", "<img src=\"../gaestebuch/images/smiley/trauer.gif\">",$row['text']);
$row['text'] = str_replace(":cheers:", "<img src=\"../gaestebuch/images/smiley/cheers.gif\">",$row['text']);
$row['text'] = str_replace(":clouds:", "<img src=\"../gaestebuch/images/smiley/clouds.gif\">",$row['text']);
$row['text'] = str_replace(":type:", "<img src=\"../gaestebuch/images/smiley/type.gif\">",$row['text']);
$row['text'] = str_replace(":thx:", "<img src=\"../gaestebuch/images/smiley/thx.gif\">",$row['text']);
$row['text'] = str_replace("8-)", "<img src=\"../gaestebuch/images/smiley/cool.gif\">",$row['text']);
$row['text'] = str_replace(":RIP:", "<img src=\"../gaestebuch/images/smiley/death.gif\">",$row['text']);
$row['text'] = str_replace(":flag:", "<img src=\"../gaestebuch/images/smiley/flagging.gif\">",$row['text']);
$row['text'] = str_replace(":group:", "<img src=\"../gaestebuch/images/smiley/grouphug.gif\">",$row['text']);
$row['text'] = str_replace(":gmiadlich:", "<img src=\"../gaestebuch/images/smiley/gmiadlich.gif\">",$row['text']);
$row['text'] = str_replace(":hi:", "<img src=\"../gaestebuch/images/smiley/hi.gif\">",$row['text']);
$row['text'] = str_replace(":juhu:", "<img src=\"../gaestebuch/images/smiley/juhu.gif\">",$row['text']);
$row['text'] = str_replace(":karnickel:", "<img src=\"../gaestebuch/images/smiley/karnickel.gif\">",$row['text']);
$row['text'] = str_replace(":kasten:", "<img src=\"../gaestebuch/images/smiley/kasten.gif\">",$row['text']);
$row['text'] = str_replace(":kisten:", "<img src=\"../gaestebuch/images/smiley/kisten.gif\">",$row['text']);
$row['text'] = str_replace(":kuss:", "<img src=\"../gaestebuch/images/smiley/kuss.gif\">",$row['text']);
$row['text'] = str_replace(":krank:", "<img src=\"../gaestebuch/images/smiley/krank.gif\">",$row['text']);
$row['text'] = str_replace(":koch:", "<img src=\"../gaestebuch/images/smiley/koch.gif\">",$row['text']);
$row['text'] = str_replace(":love:", "<img src=\"../gaestebuch/images/smiley/love3.gif\">",$row['text']);
$row['text'] = str_replace(":nacht:", "<img src=\"../gaestebuch/images/smiley/nacht.gif\">",$row['text']);
$row['text'] = str_replace(":nono:", "<img src=\"../gaestebuch/images/smiley/nono.gif\">",$row['text']);
$row['text'] = str_replace(":ole:", "<img src=\"../gaestebuch/images/smiley/ole.gif\">",$row['text']);
$row['text'] = str_replace(":prost:", "<img src=\"../gaestebuch/images/smiley/prost2.gif\">",$row['text']);
$row['text'] = str_replace(":rausch:", "<img src=\"../gaestebuch/images/smiley/rausch.gif\">",$row['text']);
$row['text'] = str_replace(":respekt:", "<img src=\"../gaestebuch/images/smiley/respekt.gif\">",$row['text']);
$row['text'] = str_replace(":rofl:", "<img src=\"../gaestebuch/images/smiley/rofl.gif\">",$row['text']);
$row['text'] = str_replace(":smoke:", "<img src=\"../gaestebuch/images/smiley/smoke.gif\">",$row['text']);
$row['text'] = str_replace(":angry:", "<img src=\"../gaestebuch/images/smiley/angry.gif\">",$row['text']);
$row['text'] = str_replace(":schal:", "<img src=\"../gaestebuch/images/smiley/schal.gif\">",$row['text']);
$row['text'] = str_replace(":suaf:", "<img src=\"../gaestebuch/images/smiley/suaf.gif\">",$row['text']);
$row['text'] = str_replace(":stars:", "<img src=\"../gaestebuch/images/smiley/stars.gif\">",$row['text']);
$row['text'] = str_replace(":sport:", "<img src=\"../gaestebuch/images/smiley/sport.gif\">",$row['text']);
$row['text'] = str_replace(":sperm:", "<img src=\"../gaestebuch/images/smiley/sperm.gif\">",$row['text']);
$row['text'] = str_replace(":tequila:", "<img src=\"../gaestebuch/images/smiley/tequila.gif\">",$row['text']);
$row['text'] = str_replace(":thump:", "<img src=\"../gaestebuch/images/smiley/thumb.gif\">",$row['text']);
$row['text'] = str_replace(":thumpsup:", "<img src=\"../gaestebuch/images/smiley/thumbsup.gif\">",$row['text']);
$row['text'] = str_replace(":vomit:", "<img src=\"../gaestebuch/images/smiley/vomit2.gif\">",$row['text']);
//Smileys Ende
echo "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse\" width=\"80%\" align=\"center\">
<tr>
<td bgcolor=\"#0000FF\" width=\"30%\" valign=\"top\">
<table width=\"100%\" border=\"0\" class=\"daten\">
<tr>
<td width=\"30%\">Name:</td>
<td colspan=\"2\">$row[name]</td>
</tr>
<tr>
<td>";
if(empty($row['ort'])) {
echo "";
}
else {
echo "Ort:";
}
echo "</td>
<td colspan=\"2\">";
if(empty($row['ort'])) {
echo "";
}
else {
echo "$row[ort]";
}
echo "</td>
</tr>
<tr>
<td>";
if(empty($row['betreff'])) {
echo "";
}
else {
echo "Betreff:";
}
echo "</td>
<td colspan=\"2\">";
if(empty($row['betreff'])) {
echo "";
}
else {
echo "$row[betreff]";
}
echo "</td>
</tr>
<tr>
<td align=\"left\" width=\"30%\">";
if(!$row['email'] OR $row['email']=="muster@muster.at") {
echo "";
}
else{
echo "<a href=\"sendmail.php?id=".$row['ID']."\" title=\"".$row['email']."\"><img src=\"gaestebuch/images/gb/email.gif\" width=\"14\" height=\"11\" border=\"0\" /></a>";
}
echo "</td>
<td align=\"center\" width=\"40%\">";
if(!$row['website'] OR $row['website']=="http://") {
echo "";
}
else {
echo "<a href=\"".$row['website']."\"title=\"".$row['website']."\" target=\"_blank\"><img src=\"gaestebuch/images/gb/web.gif\" width=\"14\" height=\"14\" border=\"0\" /></a>";
}
echo "</td>
<td align=\"right\" width=\"30%\">";
if(empty($row['icq'])) {
echo "";
}
else {
echo "<img src=\"http://status.icq.com/online.gif?icq=$row[icq]&img=5\" title=\"$row[icq]\" border=\"0\">";
}
echo "</td>
</tr>
<tr>
<td colspan=\"3\">Berwertung:<br />";
if(!($row['bewertung']) OR $row['bewertung']=="0") {
echo "Keine Bewertung";
}
elseif ($row['bewertung']=="1") {
echo "<img src=\"gaestebuch/images/gb/star_note_1.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
elseif ($row['bewertung']=="2") {
echo "<img src=\"gaestebuch/images/gb/star_note_2.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
elseif ($row['bewertung']=="3") {
echo "<img src=\"gaestebuch/images/gb/star_note_3.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
elseif ($row['bewertung']=="4") {
echo "<img src=\"gaestebuch/images/gb/star_note_4.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
elseif ($row['bewertung']=="5") {
echo "<img src=\"gaestebuch/images/gb/star_note_5.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
elseif ($row['bewertung']=="6") {
echo "<img src=\"gaestebuch/images/gb/star_note_6.gif\" width=\"72\" height=\"12\" border=\"0\" />";
}
echo "</td>
</tr>
</table></td>
<td width=\"70%\" align=\"right\" valign=\"top\">
<table width=\"100%\" border=\"0\">
<tr class=\"datum_nr\">
<td width=\"15%\" align=\"left\" valign=\"top\">#".$row['ID']."</td>
<td width=\"85%\" align=\"right\" valign=\"top\">".$row['datum']." um ".$row['uhrzeit']." Uhr</td>
</tr>
<tr>
<td colspan=\"2\" class=\"text\">$row[text]";
if($row['kommentar']) {
echo "<br><br>
<b>Kommentar";
if(empty($row['KName'])) {
echo ":";
}
else {
echo " von $row[KName]:";
}
echo "</b><br>
<i>".$row['kommentar']."</i>";
}
echo" </td>
</tr>
</table></td>
</tr>
</table>
<br>\n";
}
$passwd = mysql_query("SELECT * FROM ".$prefix."admin WHERE ID='1'");
$adm = mysql_fetch_array($passwd);
echo " <form method=\"post\" action=\"admin.php\">
<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse\" width=\"180px\" align=\"center\">
<tr>
<td>
<center>
Admin Bereich: <br>
<input type=\"text\" name=\"admin\" style=\"width:75px\">
<input type=\"password\" name=\"passwort\" style=\"width:75px\"><br>
<input type=\"submit\" value=\"Login\">
</center>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>";
?>
<body>
<div id="top">
<div id="erv_bev"></div>
<br />
<div class="menue">
<table border="0" width="100%" align="center" >
<tr>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=home">Home</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=me">Über Mich</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=erfolge">Erfolge</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=news">News</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=bilder">Bilder</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=videos">Videos</a></td>
<td width="14%" align="center" valign="top"><a class="links" target="_parent" href="index.php?page=gaestebuch">Gästebuch</a></td>
</tr>
</table>
</div>
</div>
<?php
if(!isset($_GET['page'])) {
$_GET['page'] = "home";
}
if(file_exists($_GET['page'].".php")) {
include($_GET['page'].".php");
}
else {
echo "<br><b><center>Noch nicht implementiert</center></b><br>";
} ?>
<br />
</body>
echo "<a href=\"index.php?page=gaestebuch.php?start=".$i."\"> ".$link." </a>";
echo "<a href=\"index.php?page=gaestebuch&start=".$i."\"> ".$link." </a>";