if(document.getElementById(\'taalelement_'.$rij['taal_onderdeel'].'\')) { $(\'taalelement_'.$rij['taal_onderdeel'].'\').update(\''.$rij['taal_inhoud'].'\'); } '; } } elseif($_GET['actie'] == 'verander_taalbalk') { echo taal_menu($_GET['taal']); } elseif($_GET['actie'] == 'content') { if(substr($_GET['content_item'], 0, 4) == 'cq6_') { $item = substr($_GET['content_item'], 4); } else { $item = $_GET['content_item']; } echo '
'; switch($item) { case 'gallery': toon_galerij(substr($_GET['content_item'], 0, -8)); break; case 'gallerytestsail': toon_galerij('gallerytestsail'); break; case 'videos': toon_videos(); break; case 'nieuwsbrief': toon_nieuwsbrief(); break; default: $query = mysql_query('SELECT content_titel, content_inhoud FROM linq_content WHERE content_item = "'.mysql_real_escape_string($_GET['content_item']).'" AND content_taal = "'.$taal.'"')or die(mysql_error()); $rij = mysql_fetch_assoc($query); echo '

'.$rij['content_titel'].'

'; echo stripslashes($rij['content_inhoud']); echo '

'; } echo '
'; } elseif($_GET['actie'] == 'content_plaatje') { $plaatjes = array( 'cq6_specs' => 'quote_poortman.jpg', 'technology' => 'wireframe_technology.jpg', 'shop' => 'quotes_linq-buy.jpg', 'news' => 'quotes_linq_premiere.jpg', ); if(in_array($_GET['content_item'], array_keys($plaatjes))) { echo ''; } else { $willekeurig = array('quote1.jpg', 'quote2.jpg', 'quote3.jpg', 'quote4.jpg', 'quotes_linq-buy.jpg'); echo ''; } } elseif($_GET['actie'] == 'verstuur_formulier') { if(empty($_POST['naam'])) { echo ''; echo get_taal('geen_naam'); } elseif(check_email_address($_POST['email']) == false) { echo ''; echo get_taal('foutief_email'); } else { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'To: sales@linqboats.com' . "\r\n";; $headers .= 'From: no-reply@linqboats.com'. "\r\n"; $message = 'A request has been done for reservation forms:
'; $message .= 'Name: '.$_POST['naam'].'
'; $message .= 'E-mail: '.$_POST['email'].'
'; $message .= 'Comments: '.$_POST['comments']; mail('sales@linqboats.com', 'E-mail from website', $message, $headers); echo ''; } } elseif($_GET['actie'] == 'nieuwsbrief') { if(empty($_POST['naam'])) { echo ''; echo get_taal('geen_naam'); } elseif(check_email_address($_POST['email']) == false) { echo ''; echo get_taal('foutief_email'); } else { $sql = mysql_query('SELECT nieuwsbrief_id FROM linq_nieuwsbrief WHERE nieuwsbrief_email = "'.mysql_real_escape_string($_POST['email']).'"'); if(mysql_num_rows($sql) == 0) { mysql_query('INSERT INTO linq_nieuwsbrief ( nieuwsbrief_naam, nieuwsbrief_email, nieuwsbrief_current, nieuwsbrief_experience, nieuwsbrief_first_heared, nieuwsbrief_comments) VALUES ("'.mysql_real_escape_string($_POST['naam']).'","'.mysql_real_escape_string($_POST['email']).'", "'.mysql_real_escape_string($_POST['current']).'","'.mysql_real_escape_string($_POST['experience']).'", "'.mysql_real_escape_string($_POST['heard']).'","'.mysql_real_escape_string($_POST['comments']).'")'); echo ''; } else { mysql_query('DELETE FROM linq_nieuwsbrief WHERE nieuwsbrief_email = "'.mysql_real_escape_string($_POST['email']).'"'); echo ''; } } } } ?>