)|(<))', $txt, -1, PREG_SPLIT_DELIM_CAPTURE); for ($i = 0; $i < count($r); $i++) { if ($r[$i] == "<") { $i++; continue; } $r[$i] = preg_replace( "/($search)/i", "\\1", $r[$i] ); } return join("", $r); } $db = mysql_connect($mysqlhost,$user,$password); mysql_select_db("$database",$db); if (isset ($pagina)) { $sql = "SELECT * FROM $bladzijden WHERE id=$pagina"; } $result = mysql_query($sql); $myrow = mysql_fetch_assoc($result); $titel = $myrow["titel"]; $titel_speciaal = ereg_replace(" ","%20",strip_tags($titel)); $tekst = $myrow["tekst"]; $tekst = stripslashes($tekst); $tekst = ereg_replace('testsite','website',$tekst); $kolom1 = $myrow["kolom1"]; $statbar = strip_tags($myrow["kolom1"]); $sound = $myrow["sound"]; $dn = $myrow["priority"]; $tijd = $myrow["datum"]; $dir = $myrow["menuitem"]; $grp = $myrow["icoon"]; $style = $myrow["menuitem"]; if ($style == "" || $style == "transp.gif") $style ="style_1.css"; $plaatjes = explode("|", $menuitem); $AantalPlaatjes = count($plaatjes); $editor = $myrow["editor"]; $datum = $myrow["datum"]; $jaar = substr("$datum",0,4); $maand = substr("$datum",4,2); $dag = substr("$datum",6,2); $uur = substr("$datum",8,2); $minuut = substr("$datum",10,2); } $tekst = ereg_replace('id=9','id=10',$tekst); include("pickquote.php"); $tekst = ereg_replace('#quote#',$quote,$tekst); ?> Cordys Onderwijstrajecten -