0) { while($hk_mainquery_uitvoeren_result_nieuwstopic = @mysql_fetch_array($hk_mainquery_uitvoeren_nieuwstopic)){ $nieuws_urlnaam = $hk_mainquery_uitvoeren_result_nieuwstopic['naam_url']; $nieuws_titel = $hk_mainquery_uitvoeren_result_nieuwstopic['naam']; $nieuws_tekst = $hk_mainquery_uitvoeren_result_nieuwstopic['bericht']; $pos = strpos($nieuws_tekst, '.', 260); if ($pos !== false) { $nieuws_tekst = substr($nieuws_tekst, 0, $pos); } $display_nieuws_lijst .= "".$nieuws_titel."
".$nieuws_tekst.".
Lees verder..


"; } } $meta_titel = "Hardloopnieuws"; $meta_keywords = "hardlopen,nieuws,hardloopnieuws"; $meta_description = "Nieuws over hardlopen. Lees over gadgets, evenementen, hardlopers, hardloopschoenen, uitslagen, training, tips, schema's, afvallen en meer."; } else { $urlnaam = mysql_real_escape_string($url_array[2]); $hk_mainquery_nieuwstopic = "SELECT * FROM lprz_hk_nieuws "; $hk_mainquery_nieuwstopic .= "WHERE naam_url = '".$urlnaam."' AND status = '30' AND naam_url != 'voedingstips-voor-hardlopers'"; //echo $hk_mainquery; $hk_mainquery_uitvoeren_nieuwstopic = mysql_query($hk_mainquery_nieuwstopic); if (mysql_num_rows($hk_mainquery_uitvoeren_nieuwstopic) > 0) { $hk_mainquery_uitvoeren_result_nieuwstopic = @mysql_fetch_array($hk_mainquery_uitvoeren_nieuwstopic); $nieuws_titel = $hk_mainquery_uitvoeren_result_nieuwstopic['naam']; $nieuws_tekst = $hk_mainquery_uitvoeren_result_nieuwstopic['bericht']; $nieuws_bron = $hk_mainquery_uitvoeren_result_nieuwstopic['bron']; $nieuws_bron_link = $hk_mainquery_uitvoeren_result_nieuwstopic['website']; $nieuws_plaats = $hk_mainquery_uitvoeren_result_nieuwstopic['plaats']; $nieuws_datum = strftime("%A %e %B %Y",strtotime($hk_mainquery_uitvoeren_result_nieuwstopic['datum'])); $meta_titel = $nieuws_titel; $meta_keywords = str_replace(" ",",",$nieuws_titel).",hardlopen"; $meta_description = substr(strip_tags($nieuws_tekst),0,255); //echo $hk_mainquery_uitvoeren_result_nieuwstopic["titel"]; } else { header("HTTP/1.1 301 Moved Permanently"); //ivm redirect oude versie naar huidig header("Location: https://hardlopen.com"); exit; /* Zorgt ervoor dat de overige code niet wordt uitgevoerd */ } } if (file_exists("2015/instellingen-en-functies/database-close.php")) { include("2015/instellingen-en-functies/database-close.php"); } if (file_exists("2015/styles-templates/homepage.php")) { include("2015/styles-templates/homepage.php"); } ?>