Name: ".$_POST['name']."
Email: ".$_POST['email']."
Message: ".$_POST['message']."
"; $plain = strip_tags($content); $html = $content; $subject = "Informatie aanvraag via site EXP"; include('classes/mailSendx.php'); $ms = new MCMailer($subject, $plain, $html); $ms->AddAddress('info@audioarts.nl'); $ms->FromName = $_POST['name']; $ms->From = $_POST['email']; $ms->Send(); $vSuccesmessage = 'Uw bericht is verstuurd'; } else { $vErrormessage = '!!Error: een van de verplichte velden is niet of foutief ingevuld!!'; } } include('globals.php'); include('classes/mcxml.php'); include('classes/environment.php'); include('classes/mysql.php'); include('classes/main.php'); include('classes/resultset.php'); include('classes/template.php'); include('classes/htmlelements.php'); $main = new template('templateindexEXP'); $sql = new MySQLConnector($mysqlDatabaseName); if (! isset($ID)) { exit(); } $chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $string = ""; for ( $i = 0; $i < 5; $i++ ) $string .= $chars{rand ( 0, strlen ( $chars ) )}; $id = time ( ); fwrite ( fopen ( "kaptcha/$id.txt", "w" ), $string ); $page = $sql->getQuery("SELECT * FROM page WHERE ID=".$ID); $newsItems = $sql->getQuery("SELECT ID, time, name FROM news ORDER BY ID DESC LIMIT 40"); if ($newsItems) { $newsI[] = ''; foreach($newsItems->data as $nItem) { $nItem['time'] = date('d-m-Y', $nItem['time']); $newsI[] = new template('void', $nItem, Array(), ''); } $newsI[] = '
{time}{name}
'; $main->setValue('newsitems', $newsI); } else { $main->setValue('newsitems', ''); } $contents[] = $page->data[0]['content']; if (@!$vSuccesmessage) { @$contents[] = $vErrormessage; $contents[] = new template('ti_contactform', Array('CAPTCHA' => $id) ); } else { $contents[] = $vSuccesmessage; } $main->setValue('content', $contents); $main->setValue('title', $page->data[0]['name']); $main->setValue('titleapp', $page->data[0]['name']); print $main->parse(); ?>