Bestemmingen

'; if (ereg("\", $cts, $args)) { db_connect(); $lst = db_get_list("tree_id", "tree_name", ST_TREE, "tree_name", "tree_parent_id = $args[1] "); while (count($lst) > 0 && list($id, $nm) = each($lst)) { $buf .= " "; } } $buf .= '
 $nm
'; $cts = ereg_replace("", $buf, $cts); } elseif (intval($_GET[page]) == $_GET[page]) { $s_page_id = intval($_GET[page]); $cache = "/www/htdocs/lmz/http/lastminutes/_php/cache/$s_page_id.htm"; if (IS_FILE($cache)) { include $cache; die(); } ob_start(); include ("template.html"); $cts = ob_get_clean(); db_connect(); $tmp = db_get_all("*", ST_TREE, "tree_id = $s_page_id AND tree_type_id IN (48,50)"); $cts = ereg_replace("###title###", $tmp[tree_name], $cts); $cts = ereg_replace("###dom###", $dom, $cts); $subid = "lmz|$_GET[subdom]|".ereg_replace("\-", "_", search_safe($tmp[tree_name])); ob_start(); switch ($tmp[tree_type_id]) { case 50: //regio $bst = db_get_list("tree_id", "tree_name", ST_TREE, "tree_name", "tree_parent_id = $s_page_id"); $regior = @implode(",", array_keys($bst)); $lst = db_get_list("tree_id", "tree_name", ST_TREE, "tree_hits DESC LIMIT 30", "tree_parent_id IN ($regior)"); break; case 48: // best $regior = $tmp[tree_id]; $lst = db_get_list("tree_id", "tree_name", ST_TREE, "tree_hits DESC LIMIT 30", "tree_parent_id = $s_page_id"); break; } echo "
"; $tos = db_get_list("tree_id", "tree_name", ST_TREE, "tree_pickorder", "tree_parent_id = 5680"); while (count($lst) > 0 && list($id, $nm) = each($lst)) { $specs = st_get_specs($id); if (trim($specs[txt]) != "") { $ttos = db_get_list("val_value", "val_value", "values_int", "val_value", "val_tree_id = $specs[tree_id] AND val_prop_id = 102"); reset($tos); $j = 0; while (list($toid, $tonm) = each($tos)) { if ($ttos[$toid] != 0) { if ($j == 0) { $tsp = st_get_specs($toid); $turl = $tsp[to_aff_url].$tsp[aff_channel]; $turl = ereg_replace("ttrefid", "$subid", $turl); $turl = htmlentities($turl); } } } $pspecs = db_get_all("*", ST_TREE, "tree_id = $specs[tree_parent_id]"); echo "
\n"; echo "\"$nm\n"; echo "

$nm

\n"; echo "

$pspecs[tree_name]

\n"; echo substr(strip_tags(ereg_replace("\[bron\: [a-zA-Z ]+\]", "", $specs[txt])), 0 ,160); echo "...\n"; echo "meer info »\n"; echo "
\n\n"; } } echo "
\n\n"; echo "
\n"; ?>
 Nieuwsbrief LastminutesZoeken.nl