|
if (!0 || $_SESSION['login_user']) : ?>
endif; ?>
|
if ($user_lock) :
include('login_pagexy.php');
else : ?>
|
Newsletter by Interlaken Adventure
To get your newsletter just enter your email address and click on "register".
|
| |
|
|
| |
|
Welcome to the Interlaken Adventure guestbook!
We are looking forward to seeing your personal adventure story...
|
| |
session_start();
$gaestebuch = 12;
$anz_pro_seite = 10;
$anz_seitenlinks = 6;
$site = 'verein-web.ch';
$ok = strtoupper($_SESSION['CAPTCHAString']) == strtoupper($_POST['captchastring']) && strlen($_SESSION['CAPTCHAString']) == 6;
if ($_POST['name'] and $ok) {
$long_id=md5(uniqid(microtime()));
$del_id=md5(uniqid(microtime()));
query ("INSERT INTO gaestebuch_beitrag VALUES(NULL, '$long_id', '$del_id', $gaestebuch, NOW(), '".$_POST['name']."', '".$_POST['text']."')");
$ga_id = mysql_insert_id();
$_GET['id'] = $long_id;
$imgname = "images/gaestebuch_$ga_id";
if (move_uploaded_file($_FILES['bild']['tmp_name'], "$imgname.tmp")) {
require_once ('img2thumb3.inc.php');
$bilderbreite = array(180, 180, 1024, 556);
include("hooks/22_hooks.php");
HookBilder($imgname);
unlink("$imgname.tmp");
}
if ($mailaddr = mySQL_Get_One("SELECT noti_email FROM gaestebuch WHERE ga_id=$gaestebuch")) {
$Mailtext = "New Entry in Guestbook:\n\n";
$Mailtext .= "From: ".$_POST['name']."\n";
$Mailtext .= $_POST['text']."\n\n";
$Mailtext .= "\nKlick below to delete the entry.\n";
$Mailtext .= 'http://www.interlakenadventure.ch/'.basename($_SERVER['PHP_SELF'])."?del=$del_id\n";
include_once ('htmlMimeMail.php');
$mail = new htmlMimeMail();
$mail->setSubject('New Entry in Guestbook');
$mail->setFrom("gaestebuch@$site");
$mail->setText($Mailtext);
$mail->send(array($mailaddr), 'smtp');
}
}
if ($_GET['del']) {
query ("DELETE FROM gaestebuch_beitrag WHERE del_id='".$_GET['del']."'");
echo "Entry deleted.
";
}
?>
if ($_POST['name'] and !$ok): ?>
endif ?>
|
| |
endif; ?>
|
sponsor links

if (!function_exists('doConnect'))
include ('../../mysql.inc.php');
$banners = array(110,122,124,178,168,186,180,182);
$banner_platziert = array();
for ($i=1; $i<=3;$i++) {
$ba_id = $banners[mt_rand(0, 8 - 1)];
while (in_array($ba_id, $banner_platziert) && $retry < 100) {
$ba_id = $banners[mt_rand(0, 8 - 1)];
$retry++;
}
$banner_platziert[] = $ba_id;
$row = mySQL_Get_Row("SELECT * FROM ba_banner WHERE ba_id=$ba_id");
if ($row['attach'] == '.swf') {
?>
}
else
echo "  \n";
query ("UPDATE ba_summe SET anz=anz+1 WHERE id_banner=$ba_id and aktion=1 and datum=date(NOW())");
if (mysql_affected_rows() == 0)
query ("INSERT INTO ba_summe VALUES (NULL, $ba_id, 1, NOW(), 1)");
}
?>
|