%foto% %productnaam%
%show_case_tekst% %prijs%
meer info...» "; //tellafriend template $tellafriend_template=" Link van $domeinaam Beste %naamfriend%, %naamzender% heeft u de volgende link toegezonden

Interessante informatie uit de site van %domein%

%opmerking%
"; ?>
$row_get_free[free_titel]"; } if($i_id){ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $result_get_3=mysql_query("SELECT * FROM menu where menu_id='$s_id'"); $row_get_3=mysql_fetch_array($result_get_3); $result_get_4=mysql_query("SELECT * FROM menu where menu_id='$i_id'"); $row_get_4=mysql_fetch_array($result_get_4); $waarde = "

$row_get_3[menu]

»

$row_get_4[menu]

$row_get_2[menu]

"; echo" $waarde "; } elseif($s_id){ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $result_get_3=mysql_query("SELECT * FROM menu where menu_id='$s_id'"); $row_get_3=mysql_fetch_array($result_get_3); $waarde = "

$row_get_3[menu]

»

$row_get_2[menu]

"; echo" $waarde "; } else{ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $waarde = "

$row_get_2[menu]

"; echo" $waarde "; } } // AANMELDEN NIEUWSBRIEF ======================================================================================= function nieuwsbrief() { include ("paginas/talen/nieuwsbrief.php"); $url = $_SERVER['HTTP_HOST']; if($url == '192.168.1.152'){ $explode = explode($_SERVER['PHP_SELF'], 'index.php'); $replace = str_replace('index.php','aanmelden_nieuwsbrief.php',$_SERVER['PHP_SELF']); $link = $url . $replace; } else { $explode = explode($_SERVER['PHP_SELF'], 'index.php'); $replace = str_replace('index.php','aanmelden_nieuwsbrief.php',$_SERVER['PHP_SELF']); $link = $url . $replace; } if($_POST['action'] == 'aanmelden' && ! empty($_POST['email'])) { $uniqid = uniqid(1); $query = ' INSERT INTO aanmelden_naw SET `key` = "' . $uniqid . '", naam = "' . mysql_real_escape_string($_POST['naam']) . '", email = "' . mysql_real_escape_string($_POST['email']) . '" '; $check = mysql_query('SELECT email FROM naw WHERE email LIKE "' . mysql_real_escape_string($_POST['email']) . '"') or die(mysql_error()); $count = mysql_num_rows($check); $result_klant_gegevens = mysql_query("SELECT klant as naam,domeinnaam as domein,email FROM klant") or die (mysql_error()); $_klant = mysql_fetch_array($result_klant_gegevens,MYSQL_ASSOC); $headers = "From: {$_klant['email']}\n"; $headers .= "MIME-Version: 1.0 \n"; $headers .= "Content-type: text/html; charset=iso-8859-1 \n"; $message = ' ' . $taal_aanmeldennieuwsbrief . '

' . $taal_definitiefaanmelde . '

' . $taal_klikhier . ' ' . $taal_omaantemelden . ' '; if($count == 0) { mysql_query($query) or die(mysql_error()); mail($_POST['email'], " $taal_aanmeldennieuwsbrief ", $message, $headers); print ''; print ''; } else { print ''; print ''; } } elseif($_POST['action'] == 'aanmelden' && empty($_POST['email'])) { print ''; print ''; } else { print '
' . $taal_aanmeldtekst . '
' . $taal_naam . '

' . $taal_email . '



'; } } // VERTICAAL MENU ================================================================================================ function menu_verticaal(){ global $menu_id, $s_id, $i_id, $code, $wachtwoord, $gebruiker, $inloggen; //als is meertalig deze query gebruiken: //SELECT * FROM menu WHERE visible=1 $secure_options AND taal_id='$_SESSION[taal_id]' ORDER BY volgorde $allmenu=mysql_query("SELECT * FROM menu WHERE visible=1 $secure_options AND taal_id='$_SESSION[taal_id]' ORDER BY volgorde") or die(mysql_error()); while($r=mysql_fetch_array($allmenu)){ if($r[secure]==1){ if((isset($_SESSION[k_login])) && (isset($_SESSION[user_q_id])) && (isset($_SESSION[level_id]))){ $q_levels = explode("#", $r[levels]); if(in_array("$_SESSION[level_id]",$q_levels)){ $alle_menus[$r['parentmenu_id']][$r['menu_id']] = $r; $online[$r['menu_id']] = $r['secure']; } } } else{ $alle_menus[$r['parentmenu_id']][$r['menu_id']] = $r; $online[$r['menu_id']] = $r['secure']; } } //begin hoofdmenu ?> 0){ ?> 0){echo"
De laatste nieuwsberichten
»lees meer
 
";} } // CHECK EMAILADRES ======================================================================================= function check_email($email){ $pattern = "^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))"; if(eregi($pattern, $email)){ return true; } } // SITEMAP OVERZICHT ======================================================================================= function sitemap(){ global $menus, $menusubs, $menu_id; // GET nenus voor function sitemap $query_c = mysql_query("SELECT * FROM menu WHERE parentmenu_id=0 AND taal_id=$_SESSION[taal_id] ORDER BY volgorde ASC"); while($c_row = mysql_fetch_array($query_c,MYSQL_ASSOC)){ $menus[$c_row['menu_id']] = $c_row['menu']; } $query_s= mysql_query("SELECT * FROM menu WHERE parentmenu_id!=0 AND taal_id=$_SESSION[taal_id] ORDER BY volgorde ASC"); while($s_row = mysql_fetch_array($query_s,MYSQL_ASSOC)){ $menusubs[$s_row['parentmenu_id']][$s_row['menu_id']] = $s_row['menu']; } echo""; } function sitemap2(){ // drop down global $menus, $menusubs, $menu_id; // GET menus voor function sitemap $query_c = mysql_query("SELECT * FROM menu WHERE parentmenu_id=0 ORDER BY taal_id,menu_id ASC"); while($c_row = mysql_fetch_array($query_c,MYSQL_ASSOC)){ $menus[$c_row['menu_id']] = $c_row['menu']; } $query_s= mysql_query("SELECT * FROM menu WHERE parentmenu_id!=0 ORDER BY taal_id,menu_id ASC"); while($s_row = mysql_fetch_array($query_s,MYSQL_ASSOC)){ $menusubs[$s_row['parentmenu_id']][$s_row['menu_id']] = $s_row['menu']; } echo"
"; } // TREFWOORDEN METATAGS ======================================================================================= function trefwoorden($welke){ $result_trefwoorden = mysql_query("SELECT * FROM trefwoorden WHERE trefwoorden_id=$_SESSION[taal_id]") or die (mysql_error()); $row_trefwoorden = mysql_fetch_array($result_trefwoorden); if($welke=="keywords"){ printf(stripslashes($row_trefwoorden[keywords])); } if($welke=="description"){ printf(stripslashes($row_trefwoorden[description])); } } // Google Analytics function useGoogleAnalytics() { $activeRecord = new ActiveRecord('analytics'); $records = $activeRecord->retreive(); if (count($records) == 0) return false; return (bool) $records[0]->get('enabled'); } function googleAnalyticsUacct() { $activeRecord = new ActiveRecord('analytics'); $records = $activeRecord->retreive(); return $records[0]->get('uacct'); } // MODULE CHECK ======================================================================================= if((!$product_id) && (!$product) && (!$freecms_id)){ $product_query=mysql_fetch_array(mysql_query("select product_id AS product_id, secure AS secure, levels AS levels from menu where menu_id='$menu_id' LIMIT 1")); $product_id=$product_query['product_id']; $secure_id = $product_query['secure']; $levels = $product_query['levels']; } if($product_id){ $result_pagina = mysql_query("SELECT * FROM product WHERE product_id='$product_id'") or die (mysql_error()); $row_pagina = mysql_fetch_array($result_pagina); if($row_pagina['product_id']!=1){ $te_includen_pagina2 = "paginas/cms.php"; } if(!$menu_id){ $menu_id=mysql_fetch_array(mysql_query("select menu_id from menu where product_id='$product_id' LIMIT 1")); $menu_id=$menu_id['menu_id']; } $te_includen_pagina1 = "paginas/".$row_pagina['pagina'].".php"; } if($freecms_id){ $te_includen_pagina1 = "paginas/cms.php"; } // HORIZONTAAL MENU ================================================================================================ function menu_horizontaal(){ /* HOOFDMENU */ echo "
"; echo ""; echo "
"; /* SUBMENU */ echo "
"; $head_result = mysql_query("SELECT * FROM menu WHERE parentmenu_id = '0' AND visible = '1'"); while($head_row = mysql_fetch_object($head_result)) { echo ""; } echo "
"; echo " "; } // RANDOM PASSWORDS ============================================================ function generateRandomPassword() { $totalChar = 8; // number of chars in the password $salt = 'abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ123456789'; // salt to select chars from srand((double)microtime()*1000000); // start the random generator $password = ''; // set the inital variable for ($i = 0; $i < $totalChar; $i++) // loop and create password $password = $password . substr($salt, rand() % strlen($salt), 1); return $password; } // TITLE PAD // HET PAD VOOR DE MENU ITEMS ================================================================================================ function get_path_title(){ global $i_id, $s_id, $menu_id, $freecms_id; if(freecms_id!=""){ $result_get_free=mysql_query("SELECT * FROM freecms where freecms_id='$freecms_id'"); $row_get_free=mysql_fetch_array($result_get_free); echo"$row_get_free[free_titel]"; } if($i_id){ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $result_get_3=mysql_query("SELECT * FROM menu where menu_id='$s_id'"); $row_get_3=mysql_fetch_array($result_get_3); $result_get_4=mysql_query("SELECT * FROM menu where menu_id='$i_id'"); $row_get_4=mysql_fetch_array($result_get_4); $waarde = "$row_get_2[menu]"; echo" $waarde "; } elseif($s_id){ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $result_get_3=mysql_query("SELECT * FROM menu where menu_id='$s_id'"); $row_get_3=mysql_fetch_array($result_get_3); $waarde = "$row_get_2[menu]"; echo" $waarde "; } else{ $result_get_2=mysql_query("SELECT * FROM menu where menu_id='$menu_id'"); $row_get_2=mysql_fetch_array($result_get_2); $waarde = "$row_get_2[menu]"; echo" $waarde "; } } ?>