\\2",$text); $text = preg_replace("#\\[img=([^\\[]*) align=([^\\[]*) width=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) align=([^\\[]*) height=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) align=([^\\[]*) width=([^\\[]*)] height=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) align=([^\\[]*) height=([^\\[]*)] width=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) width=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) height=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) width=([^\\[]*)] height=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) height=([^\\[]*)] width=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*) align=([^\\[]*)]#","",$text); $text = preg_replace("#\\[img=([^\\[]*)]#","",$text); $text = preg_replace("#\\[b]([^\\[]*)\\[/b\\]#","\\1",$text); $text = preg_replace("#\\[kop]([^\\[]*)\\[/kop\\]#","

\\1

",$text); $text = preg_replace("#\\[kop1]([^\\[]*)\\[/kop1\\]#","

\\1

",$text); $text = preg_replace("#\\[kop2]([^\\[]*)\\[/kop2\\]#","

\\1

",$text); $text = preg_replace("#\\[kop3]([^\\[]*)\\[/kop3\\]#","

\\1

",$text); //$text = preg_replace("#\\[p]([^\\[]*)\\[/p\\]#","

\\1

",$text); $text = preg_replace("#\\[prijs]([^\\[]*)\\[/prijs\\]#","€ \\1
",$text); $text = preg_replace("#\\[info]([^\\[]*)\\[/info\\]#","\\1",$text); $text = preg_replace("#\\[p]([^\\[]*)\\[/p\\]#","

\\1

",$text); $text = nl2br($text); return $text; } function page($name,$lng) { $sql="SELECT * FROM `PaginaTekst` WHERE `Naam` LIKE '".$name."' LIMIT 1;"; $result = @mysql_query($sql); $pagina_tekst = @mysql_fetch_assoc($result); return $pagina_tekst['val_'.$lng]; } function vars($var) { $sql="SELECT * FROM `Variabel` WHERE `Naam` LIKE '".$var."' LIMIT 1;"; $result = @mysql_query($sql); $vars = @mysql_fetch_assoc($result); return $vars["Waarde"]; } function lng($text) { $nl=Array("HOME"=>"HOME","MENU"=>"MENU","INFO"=>"INFO","TAPAS"=>"TAPAS","PROEVERIJ"=>"PROEVERIJ","FOTO'S"=>"FOTO'S","RESERVEREN"=>"RESERVEREN" ,"Datum"=>"Datum" ,"Tijd"=>"Tijd" ,"uur"=>"uur" ,"Personen"=>"Personen" ,"Email"=>"Email" ,"Tel"=>"Tel" ,"Volledige naam"=>"Volledige naam" ,"Reserveer"=>"Reserveer"); $en=Array("HOME"=>"HOME","MENU"=>"MENU","INFO"=>"INFO","TAPAS"=>"TAPAS","PROEVERIJ"=>"TASTING","FOTO'S"=>"PHOTO'S","RESERVEREN"=>"RESERVE" ,"Datum"=>"Date" ,"Tijd"=>"Time" ,"uur"=>"hour" ,"Personen"=>"Persons" ,"Email"=>"Email" ,"Tel"=>"Tel" ,"Volledige naam"=>"Full name" ,"Reserveer"=>"Reserve"); $lng=Array("NL"=>$nl,"EN"=>$en); return $lng[$_SESSION['lng']][$text]; } $minHour=vars('minHour'); $maxHour=vars('maxHour'); ?>