//
//
$Vorlage = str_replace("", $K, $Vorlage);
$Vorlage = str_replace("", $Titel, $Vorlage);
if (is_file("templates/".$Einstellungen[Template]."/Menue1.php"))
{
ob_start();
include("templates/".$Einstellungen[Template]."/Menue1.php");
$Menue1 = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Menue1, $Vorlage);
}
if (is_file("templates/".$Einstellungen[Template]."/Menue2.php"))
{
ob_start();
include("templates/".$Einstellungen[Template]."/Menue2.php");
$Menue2 = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Menue2, $Vorlage);
}
if (is_file("templates/".$Einstellungen[Template]."/Menue3.php"))
{
ob_start();
include("templates/".$Einstellungen[Template]."/Menue3.php");
$Menue3 = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Menue3, $Vorlage);
}
if (is_file("templates/".$Einstellungen[Template]."/Menue4.php"))
{
ob_start();
include("templates/".$Einstellungen[Template]."/Menue4.php");
$Menue4 = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Menue4, $Vorlage);
}
if ($_POST[Herkunft] == "")
{
if ($Katalog != "")
{
ob_start();
include("Katalog.inc.php");
$Content = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Content, $Vorlage);
$Vorlage = str_replace("", $Content2, $Vorlage);
$Vorlage = str_replace("", $Content3, $Vorlage);
}
elseif ($_GET[ID] != "")
{
ob_start();
include("Details.inc.php");
$Content = ob_get_contents();
ob_end_clean();
$Vorlage = str_replace("", $Content, $Vorlage);
$Vorlage = str_replace("", $Content2, $Vorlage);
$Vorlage = str_replace("", $Content3, $Vorlage);
}
else
{
$Vorlage = str_replace("", $Content, $Vorlage);
$Vorlage = str_replace("", $Content2, $Vorlage);
$Vorlage = str_replace("", $Content3, $Vorlage);
}
}
else
{
if (is_dir('chaptcha/'))
{
$Stamp2 = time() - 2*60*60;
$SQL ="select * from chapcha where code = '$_POST[captcha]' and Stamp > ".$Stamp2." and URL = '' Order by Stamp DESC Limit 1";
$ergebnisBL = mysql_query($SQL);
if (mysql_num_rows($ergebnisBL) > 0)
{
$ergebnisBL2 = mysql_query( "UPDATE chapcha set URL = 'OK' where code = '$_POST[captcha]'");
$ergebnisBL2 = mysql_query( "delete from chapcha where Stamp < ".$Stamp2."");
$captchaOK = 1;
}
if ($captchaOK == 1)
{
while(list($key, $val) = each($_POST))
{
$msg .= "$key: $val\n";
}
mail($Einstellungen[EMailAdresse],"Nachricht aus Kontaktformular", "$msg",'Content-Type: text/plain; charset=UTF-8');
$Vorlage = "
".$Einstellungen[KontaktformularText]."
"; } else { $Vorlage = "Der Code war leider falsch, bitte versuchen Sie es noch einmal.
"; } } else { while(list($key, $val) = each($_POST)) { $msg .= "$key: $val\n"; } mail($Einstellungen[EMailAdresse],"Nachricht aus Kontaktformular", "$msg",'Content-Type: text/plain; charset=UTF-8'); $Vorlage = "".$Einstellungen[KontaktformularText]."
"; } } $Vorlage = str_replace("", $Verz, $Vorlage); $Vorlage = str_replace("", $Einstellungen[Projektname], $Vorlage); //Social Bookmarks $Vorlage = str_replace("", urlencode(curPageURL()), $Vorlage); $Vorlage = str_replace("", urlencode($Titel), $Vorlage); print $Vorlage; ?>