IsSMTP(true); // tell the class to use SMTP $mail->SMTPAuth = true; // enable SMTP authentication $mail->Port = 25; // set the SMTP server port $mail->Host = "mail.strandcoach.com"; // SMTP server $mail->Username = "beachcoach"; // SMTP server username $mail->Password = "reflaction"; // SMTP server password $mail->AddReplyTo($_POST['emailadres'],$_POST['naam']); $mail->From = $_POST['emailadres']; $mail->FromName = $_POST['naam']; $to = "peter@strandcoach.com"; $mail->AddAddress($to); $mail->Subject = $_POST['onderwerp']; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->WordWrap = 80; // set word wrap $mail->MsgHTML($body); $mail->IsHTML(true); // send as HTML $mail->Send(); header("Location: index.php?p=bedankt"); exit(); } catch (phpmailerException $e) { $result = $e->errorMessage(); } } $pagina = $database->query("SELECT * FROM paginas WHERE modrewrite='{0}'", $values=array($_GET['p'])); $quote = $database->query("SELECT text,paginas FROM quotes WHERE language='nl' ORDER BY RAND()"); //Laad de slideshow foto's $slideshow = $database->query("SELECT id,album,photos FROM slideshow WHERE id={0}",$values=array($pagina[0]['slideshowalbum'])); $dbfile = $database->query("SELECT bestandnummer,naam FROM bestanden"); if(count($slideshow) == 1) { $slideshowpictures = ''; $files = explode(',',$slideshow[0]['photos']); if($pagina[0]['slideshoworder'] == "1") shuffle($dbfile); for($x=0; $x'; } } $latestnews = $database->query("SELECT modrewrite, name, created FROM news_items WHERE language='nld' and visible='1' ORDER BY priority DESC, created DESC LIMIT 4",$values=array()); for($i=0;$i
'; $newssidebar .= 'Geplaatst op '. $nieuws->dateFormat($latestnews[$i]['created']) .'
'; $newssidebar .= 'Lees Meer >'; } if($pagina[0]['modrewrite'] == "nieuws"){ if(isset($_GET['a'])){ $newsitem = $database->query("SELECT * FROM news_items WHERE modrewrite='{0}' AND language='nld'",$values=array($_GET['a'])); $newscontent = ""; if(count($newsitem) > 0){ $newscontent .= '

'.stripslashes($newsitem[0]['name']).'

'; $newscontent .= '
Geplaatst op '. $nieuws->dateTimeFormat($newsitem[0]['created']) .'
'; $newscontent .= '

'.stripslashes($newsitem[0]['content']).'

'; $newscontent .= '

Terug naar het nieuwsoverzicht

'; } $pagina[0]['description'] = $newsitem[0]['description']; $pagina[0]['keywords'] = $newsitem[0]['keywords']; $pagina[0]['title'] = $newsitem[0]['title']; }else{ $newsitem = $database->query("SELECT * FROM news_items WHERE language='nld' AND visible='1' ORDER BY priority DESC, created DESC"); $newscontent = ""; for($i=0;$iquery($sql); $html = ''; }else{ $html = ''; } $newscontent .= '
'; $newscontent .= '

'.stripslashes($newsitem[$i]['name']).'

'; $newscontent .= '
Geplaatst op '. $nieuws->dateTimeFormat($newsitem[$i]['created']) .' - Lees Meer >
'; if(strlen($newsitem[$i]['content']) > 255){ $newscontent .= '

'. $html .substr(stripslashes(strip_tags($newsitem[$i]['content'])), 0, 230).'...

'; $newscontent .= '

'; }else{ $newscontent .= '

'. $html . stripslashes($newsitem[$i]['content']).'

'; } $newscontent .= '
'; } } } ?> Strandcoach :
'1+1=3'
>>