$lang="en"; 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($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"); } # voor de potentiele adverteerders if (!$station) {$station='07510'; $bijvoorbeeld='OSD';} // de weerbeelden volgen PIM $weertekst = array( "Cloud development not observed or observable","Clouds dissolving or becoming less developed","State of sky on the whole unchanged","Clouds generally forming or developing","Visibility reduced by smoke haze","Haze","Widespread dust in suspension in the air, not raised by wind at or near the station at the time of observation","Dust or sand raised by the wind at or near the station at the time of the observation, but no well-developed dust whirl(s), and no sandstorm seen: or, in the case of ships, blowing spray at the station","Well developed dust whirl(s) or sand whirl(s) seen at or near the station during the preceding hour or at the time of observation, but no duststorm or sandstorm","Duststorm or sandstorm within sight at the time of observation, or at the station during the preceding hour","Mist","Patches of shallow fog or ice fog","More or less continuous fog","Lightning visible, no thunder heard","Precipitation within sight, not reaching the ground or surface of sea","Precipitation within sight, reaching ground or the surface of the sea, but distant, i.e. estimated to be more than 5 km from the station","Precipitation within sight, reaching the ground or the surface of the sea, near to, but not at the station","Thunderstorm, but no precipitation at the time of observation","Squalls","Funnel cloud(s)","Drizzle (not freezing) or snow grains","Rain (not freezing)","Snow","Rain and snow or ice pellets","Freezing drizzle or freezing rain","Shower(s) of rain","Shower(s) of snow, or of rain and snow","Shower(s) of hail, or of rain and hail","Fog or ice fog","Thunderstorm (with or without precipitation)","Dust- or Sandstorm","Dust- or Sandstorm","Dust- or Sandstorm","Dust- or Sandstorm","Dust- or Sandstorm","Dust- or Sandstorm","Slight or moderate drifting snow","Heavy drifting snow","Slight or moderate blowing snow","Heavy blowing snow","Fog or ice fog at a distance at the time of observation, but not at the station during the preceding hour, the fog or ice fog extending to a level above that of the observer","Fog or ice fog in patches","Fog or ice fog, sky visible","Fog or ice fog, sky obscured","Fog or ice fog, sky visible","Fog or ice fog, sky obscured","Fog or ice fog, sky visible","Fog or ice fog, sky obscured","Fog or ice fog, sky visible","Fog or ice fog, sky obscured","Drizzle, not freezing, intermittent","Drizzle, not freezing, continuous","Drizzle, not freezing, intermittent","Drizzle, not freezing, continuous","Drizzle, not freezing, intermittent","Drizzle, not freezing, continuous","Drizzle, freezing, slight","Drizzle, freezing, moderate or heavy (dense)","Drizzle and rain, slight","Drizzle and rain, moderate or heavy","Rain, not freezing, intermittent","Rain, not freezing, continuous","Rain, not freezing, intermittent","Rain, not freezing, continuous","Rain, not freezing, intermittent","Rain, not freezing, continuous","Rain, freezing, slight","Rain, freezing, moderate or heavy","Rain or drizzle and snow, slight","Rain or drizzle and snow, moderate or heavy","Intermittent fall of snowflakes","Continuous fall of snowflakes","Intermittent fall of snowflakes","Continuous fall of snowflakes","Intermittent fall of snowflakes","Continuous fall of snowflakes","Diamond dust (with or without fog)","Snow grains (with or without fog)","Isolated star-like snow crystals (with or without fog)","Ice pellets","Rain shower(s), slight","Rain shower(s), moderate or heavy","Rain shower(s), violent","Shower(s) of rain and snow mixed, slight","Shower(s) of rain and snow mixed, moderate or heavy","Snow shower(s), slight","Snow shower(s), moderate or heavy","Shower(s) of snow pellets or small hail","Shower(s) of snow pellets or small hail","Shower(s) of snow pellets or small hail","Shower(s) of snow pellets or small hail","Slight rain at time of observation","Moderate or heavy rain at time of observation","Slight snow, or rain and snow mixed, or hail at time of observation","Moderate or heavy snow, or rain and snow mixed, or hail at time of observation","Thunderstorm, slight or moderate, without hail but with rain and or snow at time of observation","Thunderstorm, slight or moderate, with hail at time of observation","Thunderstorm, heavy, without hail but with rain and or snow at time of observation","Thunderstorm combined with duststorm or sandstorm at time of observation","Thunderstorm, heavy, with hail at time of observation"); $iconen = array( "email","email","email","email","email","D","email","email","email","email", "D","D","D","F","E","E","E","F","email","email", "E","E","J","G","H","E","G","H","D","F", "email","email","email","email","email","email","email","email","email","email", "D","D","D","D","D","D","D","D","D","D", "E","E","E","E","E","E","H","H","E","E", "E","E","E","E","E","E","H","H","G","G", "J","J","J","J","J","J","J","J","J","K", "E","E","E","G","G","J","J","G","G","G", "G","F","F","F","F","F","F","F","F","F"); $bewolking = array("A","A","A","B","B","B","C","C","C"); $beaufort= array ("0","1","2","2","3","3","4","4","5","5", "5","6","6","6","7","7","7","7","8","8", "8","9","9","9","9","10","10","10","10","11", "11","11","11","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12", "12","12","12","12","12","12","12","12","12","12"); $richting= array ("North","North","North","North","North-East","North-East","North-East","East","East","East", "East","East","East","South-East","South-East","South-East","South","South","South","South", "South","South","South-West","South-West","South-West","West","West","West","West","West", "West","North-West","North-West","North-West","North","North"); {$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'"); ### alias systeem if (substr($inhoud[Station],5)) { $onthouden[]=$inhoud[Plaats]; $onthouden[]=$inhoud[Place]; $onthouden[]=$inhoud[Blokje]; $onthouden[]=$inhoud[LastMinutes]; $station=substr($inhoud[Station],0,5); $sql= "SELECT * FROM vakantieweer WHERE Station='$station'"; $result = mysql_query("$sql"); $inhoud = mysql_fetch_array($result); $inhoud[Plaats]=$onthouden[0]; $inhoud[Place]=$onthouden[1]; $inhoud[Blokje]=$onthouden[2]; $inhoud[LastMinutes]=$onthouden[3]; } #vertalen van de landen if ($inhoud[Land]=='belgie') $country='belgium'; elseif ($inhoud[Land]=='bulgarije') $country='bulgaria'; elseif ($inhoud[Land]=='denemarken') $country='denmark'; elseif ($inhoud[Land]=='duitsland') $country='germany'; elseif ($inhoud[Land]=='engeland') $country='england'; elseif ($inhoud[Land]=='frankrijk') $country='france'; elseif ($inhoud[Land]=='griekenland') $country='greece'; elseif ($inhoud[Land]=='hongarije') $country='hungary'; elseif ($inhoud[Land]=='ierland') $country='ireland'; elseif ($inhoud[Land]=='italie') $country='italy'; elseif ($inhoud[Land]=='luxemburg') $country='luxembourg'; elseif ($inhoud[Land]=='noorwegen') $country='norway'; elseif ($inhoud[Land]=='nederland') $country='netherlands'; elseif ($inhoud[Land]=='oostenrijk') $country='austria'; elseif ($inhoud[Land]=='polen') $country='poland'; elseif ($inhoud[Land]=='roemenie') $country='rumania'; elseif ($inhoud[Land]=='schotland') $country='scotland'; elseif ($inhoud[Land]=='slowakije') $country='slowaky'; elseif ($inhoud[Land]=='spanje') $country='spain'; elseif ($inhoud[Land]=='tsjechie') $country='czech republic'; elseif ($inhoud[Land]=='turkije') $country='turkey'; elseif ($inhoud[Land]=='zweden') $country='sweden'; elseif ($inhoud[Land]=='zwitserland') $country='switzerland'; else $country=$inhoud[Land]; ?>
|
| ||||||||||||||||||||||||||