include('../config.php'); include('../func/func.php'); include('settings.php'); include('../func/write.title.class.php'); $GoTo = ''; $Content = 'gaestebuch'; $Title = new WriteTitle(); $TOPHPOTOS = 'gaestebuch'; $TEXTE = GetTexte($Content); if($_POST) { if(trim($_POST['vorname']) != '' && trim($_POST['nachname']) != '' && trim($_POST['text']) != '' && $_POST['code'] != '' && $_POST['c'] != '') { $CODE = ''; if($_POST['c'] == 1) { $CODE = '2UMS'; } elseif($_POST['c'] == 2) { $CODE = 'MH2A'; } elseif($_POST['c'] == 3) { $CODE = 'X4DR'; } if($CODE == $_POST['code']) { $sql = 'INSERT INTO gaestebuch SET vorname="'.$_POST['vorname'].'", nachname="'.$_POST['nachname'].'", email="'.$_POST['email'].'", text="'.$_POST['text'].'", language="'.$Settings['language'].'", time="'.date('H:i:s').'", date="'.date('Y-m-d').'" '; if($result = mysql_query($sql)) { $Display = $Language['erfolgreich_gespeichert']; $GoTo = 'gaestebuch.php'; } else { $Display = $Language['fehler_speichern']; } } else { $Display = $Language['code_falsch']; } } else { $Display = $Language['alle_pflichtfelder']; } } ?>
include('../content/logo.php'); ?> | include('../content/top.php'); ?> |
include('../content/angebot.php'); ?> |
$Title->text = 'Gästebuch';
$Title->paddingBottom = 10;
$Title->filename = 'gaestebuch_title.jpg';
$Title->fontSize = 30;
$Title->backgroundColor = '#F8E7CB';
?>
if($Display != '') { ?> echo($Display); ?>
} ?> if($_GET['m'] == 'add') { ?> } else { ?> echo($Language['eintrag_erstellen']); ?> $sql = 'SELECT * FROM gaestebuch ORDER BY id DESC'; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { ?>
|
include('../content/teaser.right.php'); ?> |