#$isereenstation = getenv("QUERY_STRING");
#
#if (!$isereenstation) {
#include ("vakantieweer.php3");} else {
session_start();
if ($blauw) $kleurtjes='meegekregen';
$referer=explode('.',$HTTP_REFERER);
if ($referer[1]=='startpagina' || $referer[1]=='STARTPAGINA') {
session_register("blauw");
session_register("wit");
session_register("grijs");
session_register("oranje");
session_register("paars");
session_register("zwarttxt");
session_register("wittxt");
$pagina=explode('//',$referer[0]);
$pagina=$pagina[1];
if ($pagina != 'vakantieweer' && $pagina != 'weer' && $pagina != 'weer-amateurs') {
echo "";
//recive file form server
$xml_feed = @file_get_contents("http://$pagina.pagina.nl/$pagina.xml");
//create a xml phraser
$xml_praser = xml_parser_create();
//tell the vars to the xml phrasers
xml_parse_into_struct($xml_praser,$xml_feed,$xml_keys,$xml_index);
//lets phrase ^^
xml_parser_free($xml_praser);
//generate the headlines
$blauw = $xml_keys[$xml_index['PAGECOLOR'][0]]['value']; $blauw= str_replace("#","",$blauw);
$wit = $xml_keys[$xml_index['BLOCKCOLOR'][0]]['value']; $wit= str_replace("#","",$wit);
$grijs = $xml_keys[$xml_index['BLOCKHEADCOLOR'][0]]['value']; $grijs= str_replace("#","",$grijs);
$oranje = $xml_keys[$xml_index['MORECOLOR'][0]]['value']; $oranje= str_replace("#","",$oranje);
$paars = $xml_keys[$xml_index['TIPNEWCOLOR'][0]]['value']; $paars= str_replace("#","",$paars);
if ($blauw) $kleurtjes='meegekregen';
}
}
if (!$blauw) $blauw='66ccff';
if (!$wit) $wit='ffffff';
if (!$grijs) $grijs='cccccc';
if (!$oranje) $oranje='FBBE65';
if (!$paars) $paars='CC66CC';
if (!$zwarttxt) $zwarttxt='000000';
if (!$wittxt) $wittxt='ffffff';
$ads='graag';
$lang="nl";
require("instellingen.php3");
Connect();
mysql_connect("$DBHost","$DBUser","$DBPass");
mysql_select_db("$DB");
$codeKleur = mysql_fetch_array(mysql_query("SELECT kleur FROM codeRood"));
$codeRood=$codeKleur[0];
if ($rss) {$station=$rss;}
else if($plaats) {
# hier een stationnummer uit pulken
$sql= "SELECT Station FROM vakantieweer WHERE Plaats='$plaats'";
if ($result = mysql_query("$sql")){
$row = mysql_fetch_array($result);
$station= $row[0];
}
} else {
$station = getenv("QUERY_STRING");
$station = explode("&",$station); $station=$station[0];
}
# cookie plaatsen en zo
setcookie ("FPweerIMPpop","$station",time() + 32940000,"/");
$FPweerIMPenq++;
setcookie ("FPweerIMPenq","$FPweerIMPenq++",time() + 32940000,"/");
# voor de potentiele adverteerders
if (!$station) {$station='08221'; $bijvoorbeeld='OSD';}
#backup banner inlezen
$sql= "SELECT * FROM vakantieweer WHERE Plaats='backup'";
if ($result = mysql_query("$sql")){
$inhoud = mysql_fetch_array($result);
$backupURL=$inhoud[AdUrl];
$backupIMG=$inhoud[AdImg];
}
{$sql= "SELECT * FROM vakantieweer WHERE Station='$station'";}
if ($result = mysql_query("$sql")){
$inhoud = mysql_fetch_array($result);
}
## aantal opvragingen bijwerken
mysql("$DB", "UPDATE vakantieweer set Opvragingen=Opvragingen+1 where Station='$station'");
include ("../holiday-weather/weer/vertaal.php");
### alias systeem
if (substr($inhoud[Station],5)) {
$onthouden[0]=$inhoud[Plaats];
$onthouden[1]=$inhoud[Place];
$onthouden[2]=$inhoud[Blokje];
$onthouden[3]=$inhoud[LastMinutes];
$onthouden[4]=$inhoud[Station];
if ($inhoud[Cnn]) $onthouden[5]=$inhoud[Cnn];
$station=substr($inhoud[Station],0,5);
$onthouden[6]=$inhoud[LinkLand];
# $onthouden[7]=$inhoud[Klimaatcijfers];
$sql= "SELECT * FROM vakantieweer WHERE Station='$station'";
$result = mysql_query("$sql");
$inhoud = mysql_fetch_array($result);
$enwetonenhetweeruit=$inhoud[Plaats];
$inhoud[Plaats]=$onthouden[0];
$inhoud[Place]=$onthouden[1];
$inhoud[Blokje]=$onthouden[2];
$inhoud[LastMinutes]=$onthouden[3];
$alias=$onthouden[4];
if ($onthouden[5]) $inhoud[Cnn]=$onthouden[5];
$inhoud[LinkLand]=$onthouden[6];
# $inhoud[Klimaatcijfers]=$onthouden[7];
}
#kijken of vakantiereiswijzer 'm heeft..
#include ("advertentie/vwr.php3");
if (!$inhoud[Cnn]) $codeRood='33';
?>
Het weer if ($bijvoorbeeld) {echo "bijvoorbeeld ";}echo "in : $inhoud[Plaats]";?>
, weer, verwachting, weersverwachting, temperatuur, vakantie, aanbieding, reis, klimaat, zon ">
">
if ($inhoud[AdUrl]) echo " ";
else echo " ";
?>
include ("../HAM/HAMinlezen.php");
if ($codeRood>'15') {
if ($codeRood>'34') {
include ("../HAM/HAMvandaag.php");
} else {
include ("weerbeeld2.php3");
include ("sneeuwbeeld.php3");
}
} else { ?>
Geen weer : (
Omdat de vraag naar weersinformatie op internet op het moment te groot is
kunnen onze servers het even niet aan,
maar we verwijzen je graag verder naar de links op deze pagina.
weersinformatie Europa weersinformatie Nederland
}
echo "
";
# include ("zonnekracht.php");
# verleden weerbeeld hier plaatsen bij eigen weersvoorspellingen
if (!$voorspellingURLvrw && !$inhoud[Klimaatcijfers]) {include ("verledenweer.php"); echo "
";}
include ("meteolinks.php");
include ("meteoalarm.php"); ?>
# promotie der weergoden..
function regelBlauw () {
echo "
";
}
$kleur[blauw]=$blauw;
$kleur[wit]=$wit;
$kleur[grijs]=$grijs;
include ("../holiday-weather/taaloneigen.php");
include ("../holiday-weather/taalswitch.php");
?>
if ($codeRood >'10') { ?>
>
if ($inhoud[bredebanner]) { echo "$inhoud[bredebanner]";} else { ?>
}?>
# voorspellingen:
if (!$voorspellingURLvrw && $codeRood > '44') {
# eigen / geleende voorspelling invoegen
$template="../../pagina.nl/weer/vakantie/voorspel.html";
if ($inhoud[Cnn]) {include ("http://www.oosterhoff.nl/cgi-bin/weather/metar.pl?lang=$lang&icao=$inhoud[Cnn]&template=$template&skiptaf&showunits=n&imageset=../../pagina.nl/weer/iconen&enweliegendathetis=$inhoud[Place]");}
elseif ($enwetonenhetweeruit) {include ("http://www.oosterhoff.nl/cgi-bin/weather/metar.pl?lang=$lang&place=$enwetonenhetweeruit&template=$template&skiptaf&showunits=n&imageset=../../pagina.nl/weer/iconen&enweliegendathetis=$inhoud[Plaats]");}
elseif ($inhoud[Place]) {include ("http://www.oosterhoff.nl/cgi-bin/weather/metar.pl?lang=$lang&place=$inhoud[Place]&template=$template&skiptaf&showunits=n&imageset=../../pagina.nl/weer/iconen&enweliegendathetis=$inhoud[Place]");}
else {include ("http://www.oosterhoff.nl/cgi-bin/weather/metar.pl?lang=$lang&place=$inhoud[Plaats]&template=$template&skiptaf&showunits=n&imageset=../../pagina.nl/weer/iconen&enweliegendathetis=$inhoud[Plaats]");}
} elseif ( $codeRood > '34') { // hier stond ook nog in de elseif !$voorspellingURLvrw &&
# HAMvoorspelling:
echo "
";
#geen bruno als we een zontopper hebben
# if ($inhoud[zonTopper]) $voorspellingURLvrw='';
if ($voorspellingURLvrw) $aantaldagenVoorspel='5'; else $aantaldagenVoorspel='7';
include ("../HAM/HAMvoorspel.php");
echo "
# HAMvoorspelling:
#DEZE MOGELIJKHEID IS UITGESCHAKELD OMDAT WE ALTIJD MEERDAGEN WILLEN LATEN ZIEN< OOK ALS BRUNO HEEFT
if ($voorspellingURLvrwUIT && $codeRood > '34') {
echo "
";
$aantaldagenVoorspel='2';
include ("../HAM/HAMvoorspel.php");
echo "
";
}
# linkjes naar voorspellingen:
elseif ($voorspellingURLvrwUIT) { ?>