Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Hier können Sie Kontakt zum Serveradministrator aufnehmen.
<form action="kontakt.php" method="post">
<table>
<tr>
{if $smarty.session.name != ""}
<th>Von:</th><td><input type="text" name="from" value="{$smarty.session.name}" disabled="disabled" /></td>
{else}
<th>Von:</th><td><input type="text" name="from" /></th>
{/if}
</tr>
<tr>
<th>Betreff:</th><td><input type="text" name="subject" /></td>
</tr>
<tr>
<th>Nachricht:</th><td><textarea name="message" cols="30" rows="10"></textarea></td>
</tr>
<tr>
<td><img src="./captcha/captcha.php" alt="Captcha" /></td><td><input type="text" name="captcha" /></td>
</tr>
<tr>
<td><input type="submit" value="Absenden" id="ksubmit" /></td><td><input type="reset" value="Eingabe löschen" /></td>
</tr>
</table>
</form>
{$smarty.session.captcha_spam}
<?php
session_start();
unset($_SESSION['captcha_spam']);
function randomString($len) {
function make_seed(){
list($usec , $sec) = explode (' ', microtime());
return (float) $sec + ((float) $usec * 100000);
}
srand(make_seed());
//Der String $possible enthält alle Zeichen, die verwendet werden sollen
$possible="ABCDEFGHJKLMNPRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789";
$str="";
while(strlen($str)<$len) {
$str.=substr($possible,(rand()%(strlen($possible))),1);
}
return($str);
}
$text = randomString(5); //Die Zahl bestimmt die Anzahl stellen
$_SESSION['captcha_spam'] = $text;
header('Content-type: image/png');
$img = ImageCreateFromPNG('captcha.PNG'); //Backgroundimage
$color = ImageColorAllocate($img, 0, 0, 0); //Farbe
$ttf = "./XFILES.TTF"; //Schriftart
$ttfsize = 25; //Schriftgrösse
$angle = rand(0,5);
$t_x = rand(5,30);
$t_y = 35;
imagettftext($img, $ttfsize, $angle, $t_x, $t_y, $color, $ttf, $text);
imagepng($img);
imagedestroy($img);
?>
<?php
session_start();
require_once("./lib/define.php");
mysql_connect(DBHOST,DBUSER,DBPASS) or die("Error ".mysql_errno().": ".mysql_error());
mysql_select_db(DBNAME) or die("Error ".mysql_errno().": ".mysql_error());
if (isset($_SESSION["name"]) && isset($_SESSION["id"]))
$loggedin = true;
else
$loggedin = false;
require_once(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
if ($_GET["s"] == FALSE || $_GET["s"] == "") $site = "Home";
else $site = $_GET["s"];
if ($_GET["e"] != FALSE || $_GET["e"] != "") {
$equery = mysql_query("SELECT * FROM `errors` WHERE `id` = '".$_GET["e"]."' LIMIT 1") or die("Error ".mysql_errno().": ".mysql_error());
$error = mysql_fetch_assoc($equery);
}
/*viele Datenbankabfragen (gestrichen) */
/*sehr viele Zuweisungen (gestrichen) */
$smarty->display("index.tpl");
?>
We use essential cookies to make this site work, and optional cookies to enhance your experience.