Würde mich freuen wenn Ihr mir ein wenig weiterhelfen könnt
Hier ist schon einmal der Code den ich angepasst habe aber er leitet noch nicht weiter...:
Code: Alles auswählen
<?php
/**
* $RCSfile$
*
* Description: Contact Form Output
*
* @version 1.0.0
* @author Andreas Lindner
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2005-08-12
* modified 2008-04-11 Rudi Bieller Changes concerning new layout
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
else
{
$tpl->reset();
}
if (!isset ($_POST['send'])) {
//Form has not been sent yet
//Create contact form
$sFormAction = $sess->url("front_content.php?idcat=$idcat&idart=$idart&parentid=$parentid");
$tpl->set("s", "BENUTZERNAME", mi18n("Benutzername"));
$tpl->set("s", "PASSWORT", mi18n("Passwort"));
$tpl->set("s", "ABSCHICKEN", mi18n("Login"));
$tpl->generate($cfgClient[$client]["path"]["frontend"]."templates/loginFormular.html");
} elseif ($_POST['send'] == 1) {
//Form has been sent
//Check user input
$noerrors = true;
$msg = '';
if ($_POST['bn'] == 'admin') {
$noerrors = true;
}
if ($_POST['bn'] != 'admin') {
$noerrors = false;
$msg .= mi18n("Bitte geben Sie den richtigen Benutzernamen ein!")."<br/>";
}
if ($_POST['pw'] == '121314') {
$noerrors = true;
}
if ($_POST['pw'] != '121314') {
$noerrors = false;
$msg .= mi18n("Bitte geben Sie das richtige Passwort ein!")."<br/>";
}
if ($noerrors == false) {
echo "<p>";
//Errors have been found
echo '<strong><div id="headfehlerMSGkf"><img src="http://www.domain.de/cms/images/falseNewsletter.png" />'.mi18n("Beim Versenden sind folgende Fehler aufgetreten:").'</div></strong><br>';
echo '<div class="fehlerMSGkf">'.$msg.'</div><br/>';
echo '<div id="zurueckLink" ><a href="javascript:history.back();">‹ '.mi18n("zurück").'</a></div>';
} else {
header('Location: http://www.google.com/');
}
}
?>