//$debug = "true";
if($debug == "true")
{
print_r($_POST);
echo "
";
print_r($_GET);
}
//define constants
/*
define ("intro", "intro");
define ("home", "home");
define ("home_e", "home_e");
define ("galerie_d", "galerie_d");
define ("val_rand", "val_rand");
*/
$var_site = $_GET['site'];
//$var_site = $_POST['site'];
//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // DEBUG
include("classes.php4");
include("connect_db.php4");
include("head.php4");
echo "\n\n\n\n";
##########################################################
// H O M E //
##########################################################
if ($var_site == "home")
{
echo "
";
//ABSCHNITT INTRO
echo "".sql($var_site,intro)."";
//ABSCHNITT MITTE
$sql = mysql_query("SELECT * FROM $var_site WHERE abschnitt = 'mitte' ");
$row = mysql_fetch_row($sql);
echo "".fonts_html()."";
$string = htmlentities($row[2]);
$string = sonder_umw($string,$var_site);
$bild = $row[3];
//$string = str_replace("{bild}","",$string);
$string = str_replace("Aktuell","Aktuell",$string); // Termine
$string = str_replace("Info","Info",$string); // Info
$string = str_replace("Historie","Historie",$string); // Trio
$string = str_replace("Herstellung","Herstellung",$string); // Links
$string = str_replace("Produkte","Produkte",$string); // Presse
$string = str_replace("Cocktails","Cocktails ",$string); // Highlights
$string = str_replace("Kontakt","Kontakt",$string); // Links
$string = str_replace("Pressematerial","Pressematerial",$string); // Presse VA
echo $string;
//
//ABSCHNITT ENDE
$sql = mysql_query("SELECT * FROM $var_site WHERE abschnitt = 'ende' ");
$row = mysql_fetch_row($sql);
echo "".fonts_html()."";
$string = htmlentities($row[2]);
$string = sonder_umw("$string","$var_site");
$bild = $row[3];
//$string = str_replace("{bild}","",$string);
$string = str_replace("Aktuell","Aktuell",$string); // Termine
$string = str_replace("Info","Info",$string); // Info
$string = str_replace("Historie","Historie",$string); // Trio
$string = str_replace("Herstellung","Herstellung",$string); // Links
$string = str_replace("Produkte","Produkte",$string); // Presse
$string = str_replace("Cocktails","Cocktails ",$string); // Highlights
$string = str_replace("Kontakt","Kontakt",$string); // Links
echo $string;
echo "
";
//
}
#################################################################################
// C O C K T A I L S //
#################################################################################
/*
if ( $var_site == "cock" )
{
echo "".fonts_html()."";
echo "".sql($var_site,intro)."";
echo "".fonts_html()."";
echo "".sql($var_site,mitte)."";
echo "".fonts_html()."";
echo "".sql($var_site,final)."";
//echo "".sql($var_site,ende)."";
echo "
";
}
*/
#################################################################################
// H I S T O R I E + H E R S T E L L U N G + A K T U E L L Cocktails und Produkte //
#################################################################################
if ($var_site == "historie" || $var_site == "herstellung" || $var_site == "aktuell" || $var_site == "cock" || $var_site == "cock1" || $var_site == "cock2" || $var_site == "cock3" || $var_site == "cock4" || $var_site == "cock5" || $var_site == "cock6" || $var_site == "prod" || $var_site == "prod1" || $var_site == "prod2")
{
echo "".fonts_html()."";
echo "".sql($var_site,head)."";
echo "".fonts_html()."";
echo "".sql($var_site,intro)."";
echo "".fonts_html()."";
echo "".sql($var_site,mitte)."";
echo "".fonts_html()."";
echo "".sql($var_site,final)."";
echo "
";
//echo "".sql($var_site,ende)."";
echo "Zurück
";
echo "
";
}
##########################################################
// I N F O //
##########################################################
if ($var_site == "info_d")
{
require("info_d.php4");
}
if ($var_site == "info_e")
{
require("info_e.php4");
}
##########################################################
// L I N K S //
##########################################################
/*
if ($var_site == "links_d")
{
echo "".fonts_html()."Links
";
$sql = mysql_query("SELECT link_name,url,text_d FROM links");
echo "\n
\n"; echo "\n"; echo "".fonts_html()."\n"; $string = htmlentities("$row[0]"); echo $string; echo"\n | \n
\n"; echo "\n"; $string = htmlentities("$row[2]"); echo $string; echo"\n | \n
".fonts_html()."";
$string = str_replace("Monday","Montag",$row[4]);
$string = str_replace("Tuesday","Dienstag",$string);
$string = str_replace("Wednesday","Mittwoch",$string);
$string = str_replace("Thursday","Donnerstag",$string);
$string = str_replace("Friday","Freitag",$string);
$string = str_replace("Saturday","Samstag",$string);
$string = str_replace("Sunday","Sonntag",$string);
echo $string;
echo" ".fonts_html()."Beginn: "; $uae = split(":",$row[0]); echo $uae[0].':'.$uae[1]; echo" | ".fonts_html()."";
echo $row[1];
echo" "; echo $row[2]; echo " |
".fonts_html().""; echo "mit: "; echo $row[3]; echo " | |
".fonts_html()."$row[5] |
".fonts_html()."";
echo $row[4];
echo" ".fonts_html()."Begin: "; $uae = split(":",$row[0]); echo $uae[0].':'.$uae[1]; echo" | ".fonts_html()."";
echo $row[1];
echo" "; echo $row[2]; echo " |
".fonts_html().""; echo "with: "; echo $row[3]; echo " | |
".fonts_html()."$row[5] |