query("select count(*) FROM 1liste WHERE ville = '$villem' and pays = 'france'")->fetch()); if ( $marees == '1' ) { $Res=$bdd->query("SELECT * FROM 1liste WHERE ville = '$villem' and pays = 'france'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $port = $Repp['port']; $conjv = $Repp['conjv']; if ( !preg_match("/'/",$conjv )) { $conjv = $conjv." "; } } $bdd = new PDO('mysql:host=localhost;dbname=villes;charset=UTF8', 'villes', 'poussygogo'); $Nb=current($bdd->query("select count(*) FROM france WHERE urlnp = '$urlnp' and cp = '$cp'")->fetch()); if ( $Nb >= '1') { $Res=$bdd->query("SELECT * FROM france WHERE urlnp = '$urlnp' and cp = '$cp'"); $Rep = $Res->fetch(PDO::FETCH_ASSOC); $No = $Rep['No']; $suiv = $No + 1; $ville = $Rep['ville']; $lat = $Rep['lat']; $lon = $Rep['lon']; $region = $Rep['region']; $dep = $Rep['dep']; $cp = $Rep['cp']; $commune = $Rep['commune'];; $population = $Rep['population']; $UNI = $Rep['UNI']; $altitude = $Rep['altitude']; $UFI = $Rep['UFI']; $JOG = $Rep['JOG']; $MGRS = $Rep['MGRS']; $url = $Rep['url']; $time = $Rep['time']; $proxi = $Rep['prox']; $bing = $Rep['bing']; $dateb = $Rep['dateb']; date_default_timezone_set($time); $veille = date('y-m-d', time() - 3600*24); if ( $dep == '01' ) { $departement = "Ain"; } if ( $dep == '02' ) { $departement = "Aisne"; } if ( $dep == '03' ) { $departement = "Allier"; } if ( $dep == '04' ) { $departement = "Alpes de Haute Provence"; } if ( $dep == '05' ) { $departement = "Hautes Alpes"; } if ( $dep == '06' ) { $departement = "Alpes Maritimes"; } if ( $dep == '07' ) { $departement = "Ardèche"; } if ( $dep == '08' ) { $departement = "Ardennes"; } if ( $dep == '09' ) { $departement = "Ariège"; } if ( $dep == '10' ) { $departement = "Aube"; } if ( $dep == '11' ) { $departement = "Aude"; } if ( $dep == '12' ) { $departement = "Aveyron"; } if ( $dep == '13' ) { $departement = "Bouches du Rhône"; } if ( $dep == '14' ) { $departement = "Calvados"; } if ( $dep == '15' ) { $departement = "Cantal"; } if ( $dep == '16' ) { $departement = "Charente"; } if ( $dep == '17' ) { $departement = "Charente Maritime"; } if ( $dep == '18' ) { $departement = "Cher"; } if ( $dep == '19' ) { $departement = "Corrèze"; } if ( $dep == '20' ) { $departement = "Corse"; } if ( $dep == '21' ) { $departement = "Côte d'Or"; } if ( $dep == '22' ) { $departement = "Côtes d'Armor"; } if ( $dep == '23' ) { $departement = "Creuse"; } if ( $dep == '24' ) { $departement = "Dordogne"; } if ( $dep == '25' ) { $departement = "Doubs"; } if ( $dep == '26' ) { $departement = "Drôme"; } if ( $dep == '27' ) { $departement = "Eure"; } if ( $dep == '28' ) { $departement = "Eure et Loir"; } if ( $dep == '29' ) { $departement = "Finistère"; } if ( $dep == '30' ) { $departement = "Gard"; } if ( $dep == '31' ) { $departement = "Haute Garonne"; } if ( $dep == '32' ) { $departement = "Gers"; } if ( $dep == '33' ) { $departement = "Gironde"; } if ( $dep == '34' ) { $departement = "Hérault"; } if ( $dep == '35' ) { $departement = "Ille et Vilaine"; } if ( $dep == '36' ) { $departement = "Indre"; } if ( $dep == '37' ) { $departement = "Indre et Loire"; } if ( $dep == '38' ) { $departement = "Isère"; } if ( $dep == '39' ) { $departement = "Jura"; } if ( $dep == '40' ) { $departement = "Landes"; } if ( $dep == '41' ) { $departement = "Loir et Cher"; } if ( $dep == '42' ) { $departement = "Loire"; } if ( $dep == '43' ) { $departement = "Haute Loire"; } if ( $dep == '44' ) { $departement = "Loire Atlantique"; } if ( $dep == '45' ) { $departement = "Loiret"; } if ( $dep == '46' ) { $departement = "Lot"; } if ( $dep == '47' ) { $departement = "Lot et Garonne"; } if ( $dep == '48' ) { $departement = "Lozère"; } if ( $dep == '49' ) { $departement = "Maine et Loire"; } if ( $dep == '50' ) { $departement = "Manche"; } if ( $dep == '51' ) { $departement = "Marne"; } if ( $dep == '52' ) { $departement = "Haute Marne"; } if ( $dep == '53' ) { $departement = "Mayenne"; } if ( $dep == '54' ) { $departement = "Meurthe et Moselle"; } if ( $dep == '55' ) { $departement = "Meuse"; } if ( $dep == '56' ) { $departement = "Morbihan"; } if ( $dep == '57' ) { $departement = "Moselle"; } if ( $dep == '58' ) { $departement = "Nièvre"; } if ( $dep == '59' ) { $departement = "Nord"; } if ( $dep == '60' ) { $departement = "Oise"; } if ( $dep == '61' ) { $departement = "Orne"; } if ( $dep == '62' ) { $departement = "Pas de Calais"; } if ( $dep == '63' ) { $departement = "Puy de Dôme"; } if ( $dep == '64' ) { $departement = "Pyrénées Atlantique"; } if ( $dep == '65' ) { $departement = "Hautes Pyrénées"; } if ( $dep == '66' ) { $departement = "Pyrénées Orientales"; } if ( $dep == '67' ) { $departement = "Bas Rhin"; } if ( $dep == '68' ) { $departement = "Haut Rhin"; } if ( $dep == '69' ) { $departement = "Rhône"; } if ( $dep == '70' ) { $departement = "Haute Saône"; } if ( $dep == '71' ) { $departement = "Saône et Loire"; } if ( $dep == '72' ) { $departement = "Sarthe"; } if ( $dep == '73' ) { $departement = "Savoie"; } if ( $dep == '74' ) { $departement = "Haute Savoie"; } if ( $dep == '75' ) { $departement = "Paris"; } if ( $dep == '76' ) { $departement = "Seine Maritime"; } if ( $dep == '77' ) { $departement = "Seine et Marne"; } if ( $dep == '78' ) { $departement = "Yvelines"; } if ( $dep == '79' ) { $departement = "Deux Sèvres"; } if ( $dep == '80' ) { $departement = "Somme"; } if ( $dep == '81' ) { $departement = "Tarn"; } if ( $dep == '82' ) { $departement = "Tarn et Garonne"; } if ( $dep == '83' ) { $departement = "Var"; } if ( $dep == '84' ) { $departement = "Vaucluse"; } if ( $dep == '85' ) { $departement = "Vendée"; } if ( $dep == '86' ) { $departement = "Vienne"; } if ( $dep == '87' ) { $departement = "Haute Vienne"; } if ( $dep == '88' ) { $departement = "Vosges"; } if ( $dep == '89' ) { $departement = "Yonne"; } if ( $dep == '90' ) { $departement = "Territoire de Belfort"; } if ( $dep == '91' ) { $departement = "Essonne"; } if ( $dep == '92' ) { $departement = "Hauts de seine"; } if ( $dep == '93' ) { $departement = "Seine Saint Denis"; } if ( $dep == '94' ) { $departement = "Val de Marne"; } if ( $dep == '95' ) { $departement = "Val d'Oise"; } if ( $dep == '97' ) { $departement = "Dom Tom"; } if ( $dep == '98' ) { $departement = "Dom Tom"; } if ( $region == 'Franche Comte' ) { $region = "Franche Comté"; } if ( $region == 'Midi Pyrenees' ) { $region = "Midi Pyrénées"; } if ( $region == 'Provence Alpes Cote Azur' ) { $region = "Provence Alpes Côte d'Azur"; } if ( $region == 'Rhone Alpes' ) { $region = "Rhône Alpes"; } } $sun_info = date_sun_info ( strtotime ( date('Y-m-d') ), $lat , $lon ); $sun_veille = date_sun_info ( strtotime ( $veille ), $lat , $lon ); if ( $Nb < '1' ) { header("HTTP/1.1 410 Not Found"); header("Status: 410 Not Found"); } ?> 🌎 Informations sur la ville de <? echo $ville; ?> <? echo $cp; ?> = '1' && $urlbad == '0') { $hor = "1"; } $ico= "france"; $niv="3"; include("../../haut.php"); if ( $mob == '0' ) { if ( $decoup == 'conté' || $decoup == 'district' ) { $conj5 = ""; $conj4 = "du"; } if ( $decoup == 'province' || $decoup == 'région' || $decoup == 'prefecture' || $decoup == 'division' || $decoup == 'municipalité' || $decoup == 'paroisse') { $conj5 = "la "; $conj4 = "de"; } if ( $decoup == 'etat' ) { $conj5 = "l'"; $conj4 = "de"; } if ( $decoup == 'département' || $decoup == 'gouvernement') { $conj5 = ""; $conj4 = "du"; } $ini = chunk_split($villemeteo,"1","-"); $init = explode("-",$ini); ?>
🌎 KesKeCes 🌎 Villes du Monde 🌎 La France et ses Régions 🌎


"; echo "

🌎 ".$ville."

"; echo "
"; if ( $region != '00' ) { echo ""; } if ( $cp != '') { echo ""; } echo "
"; if ( $Nb < '1' || $urlbad == '1') { echo "

Cette ville n'est pas répertoriée.


"; include("../moteur.php"); } else { if ( $mob == '0' ) { echo "
"; } else { echo "
"; echo "
"; } echo $ville." est "; if ( $commune ) { echo "un lieu dit"; } else { if ( $population ) { if ( $population <= '2000' ) { echo "un Village"; } else { echo "une ville"; } echo " de ".$population." habitants"; } else { echo "une ville"; } } if ( $region == 'Nord Pas de Calais' || $region == 'Picardie' || $region == 'Basse Normandie' || $region =='Haute Normandie' || $region =='Ile de France' || $region =='Champagne Ardenne' ) { echo " du nord de la France."; } if ( $region == 'Bretagne' || $region == 'Pays de Loire' || $region == 'Poitou Charentes' || $region == 'Aquitaine' ) { echo " de l'ouest de la France."; } if ( $region == 'Centre' || $region == 'Bourgogne' || $region == 'Limousin' || $region == 'Auvergne' ) { echo " du centre de la France."; } if ( $region == 'Lorraine' || $region == 'Alsace' || $region == 'Franche Comté' || $region == 'Rhône Alpes' ) { echo " de l'est de la France."; } if ( $region == 'Midi Pyrénées' || $region == 'Languedoc Roussillon' || $region == 'Provence Alpes Côte d\'Azur' || $region == 'Corse' ) { echo " du sud de la France"; } if ( $region == 'Dom Tom' ) { echo " des Dom Tom"; } echo "   ".$ville."

"; if ( $url != '') { echo "Site de la commune : ".$url."

"; } if ( $mob == '0' ) { echo "
"; echo "Heure Locale à ".$ville." -->
"; } $fu = date('O'); $fus = chunk_split("$fu","3","h"); $fuse = explode("h",$fus); $fuseau = $fuse[0]." h ".$fuse[1]; $fuseau = str_replace("-","- ","$fuseau"); $fuseau = str_replace("+","+ ","$fuseau"); If( ceil($No/2) == $No/2 ) { echo "Fuseau Horaire :"; } If( ceil(($No+1)/2) == ($No+1)/2 ) { echo "Décalage Horaire :"; } echo " Gmt ".$fuseau."
"; echo "Time Zone : ".$time.""; if ( date('I') == '1' ) { If( ceil($No/3) == $No/3 ) { echo "
Actuellement à l'Heure d'été"; } If( ceil(($No+1)/3) == ($No+1)/3 ) { echo "
Heure d'été activée"; } If( ceil(($No+2)/3) == ($No+2)/3 ) { echo "
En ce moment à l'Heure d'été"; } } if ( $marees == '0' ) { $bdd = new PDO('mysql:host=localhost;dbname=marees;charset=UTF8', 'marees', 'poussygogo'); $jour = date("d"); $moi = date("m"); $annee = date("Y"); $ete = date("I", mktime(0, 0, 0, $moi, $jour, $annee)); $Nbd=current($bdd->query("select count(*) FROM brest WHERE annee = '$annee' and mois = '$moi' and jour = '$jour'")->fetch()); if ( $Nbd >= '1' ) { $Res=$bdd->query("SELECT * FROM brest WHERE annee = '$annee' and mois = '$moi' and jour = '$jour'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $cm = $Repp['cm']; $cs = $Repp['cs'];; echo "
Coefficient de Marée : "; echo "      ".$cm; if ( $cs != '' ) { echo "/".$cs; } echo ""; } } if ( $mob == '0' ) { echo "
"; } else { echo "

Heure Locale à ".$ville."

"; } if ( date('I') == '1' ) { echo "
"; } echo "
"; echo date("H")." h "; echo date("i")." m "; echo date("s")." s"; echo "
"; $jour = date("l"); if ( $jour == 'Monday' ) { $affjour = "Lundi"; } if ( $jour == 'Tuesday' ) { $affjour = "Mardi"; } if ( $jour == 'Wednesday' ) { $affjour = "Mercredi"; } if ( $jour == 'Thursday' ) { $affjour = "Jeudi"; } if ( $jour == 'Friday' ) { $affjour = "Vendredi"; } if ( $jour == 'Saturday' ) { $affjour = "Samedi"; } if ( $jour == 'Sunday' ) { $affjour = "Dimanche"; } $mois = date("F"); if ( $mois == 'January' ) { $affmois = "Janvier"; } if ( $mois == 'February' ) { $affmois = "Février"; } if ( $mois == 'March' ) { $affmois = "Mars"; } if ( $mois == 'April' ) { $affmois = "Avril"; } if ( $mois == 'May' ) { $affmois = "Mai"; } if ( $mois == 'June' ) { $affmois = "Juin"; } if ( $mois == 'July' ) { $affmois = "Juillet"; } if ( $mois == 'August' ) { $affmois = "Août"; } if ( $mois == 'September' ) { $affmois = "Septembre"; } if ( $mois == 'October' ) { $affmois = "Octobre"; } if ( $mois == 'November' ) { $affmois = "Novembre"; } if ( $mois == 'December' ) { $affmois = "Décembre"; } echo "".$affjour." "; echo date("j")." "; echo $affmois." "; echo date("Y").""; if ( $mob == '0' ) { echo "

"; } else { echo "
"; } include_once '../solunar.php'; $today = getdate(); $underlong = $lon; $UT = 0.0; $year = $today[year]; $month = $today[mon]; $day = $today[mday]; $tz = $fu/100; $JD = get_Julian_Date ($year, $month, $day, $UT); $date = ($JD - 2400000.5 - ($tz/24.0)); get_rst (1, $date, 0.0 - $underlong , $lat, $sunrise, $sunset, $suntransit); get_rst (0, $date, 0.0 - $underlong, $lat, $moonrise, $moonset, $moontransit); $moonunder = get_underfoot($date, $underlong); $moonage = get_moon_phase ($JD, $PhaseName, $illumin); $phasedayscale = phase_day_scale ($moonage); $soldayscale = sol_get_dayscale ($moonrise, $moonset, $moontransit, $sunrise, $sunset); $h1= date("H" ,$sun_info[sunset])*60 + date("i" ,$sun_info[sunset]); $h2= date("H" ,$sun_info[sunrise])*60 + date("i" ,$sun_info[sunrise]); $h3 = ($h1-$h2)/60; $h3 = round($h3,2); $dur = explode(".",$h3); if ( strlen($dur[1]) == '1' ) { $dur[1] = $dur[1]."0"; } $durr = round($dur[1]*0.60); if ( $dur[0] <= '9' ) { $dur[0] = "0".$dur[0]; } if ( $durr <= '9' ) { $durr = "0".$durr; } $duree = $dur[0]."h".$durr; $h1v= date("H" ,$sun_veille[sunset])*60 + date("i" ,$sun_veille[sunset]); $h2v= date("H" ,$sun_veille[sunrise])*60 + date("i" ,$sun_veille[sunrise]); $h3v = ($h1v-$h2v)/60; $h3v = round($h3v,2); $durv = explode(".",$h3v); if ( strlen($durv[1]) == '1' ) { $durv[1] = $durv[1]."0"; } $durrv = round($durv[1]*0.60); if ( $durv[0] <= '9' ) { $durv[0] = "0".$durv[0]; } if ( $durrv <= '9' ) { $durrv = "0".$durrv; } $dureev = $durv[0]."h".$durrv; $plus = $durr - $durrv + ($dur[0]-$durv[0])*60; if ( $plus >= '0' ) { $plus = "+".$plus; } if ( $plus <= '-2' || $plus >= '2' ) { $ss = "s"; } else { $ss = ""; } $afflune = ceil(round($moonage, 1)); if ( $lat <= '0' ) { if ( ceil(round($moonage, 1)) == '1' ) { $afflune = "29"; } if ( ceil(round($moonage, 1)) == '2' ) { $afflune = "28"; } if ( ceil(round($moonage, 1)) == '3' ) { $afflune = "27"; } if ( ceil(round($moonage, 1)) == '4' ) { $afflune = "26"; } if ( ceil(round($moonage, 1)) == '5' ) { $afflune = "25"; } if ( ceil(round($moonage, 1)) == '6' ) { $afflune = "24"; } if ( ceil(round($moonage, 1)) == '7' ) { $afflune = "23"; } if ( ceil(round($moonage, 1)) == '8' ) { $afflune = "22"; } if ( ceil(round($moonage, 1)) == '9' ) { $afflune = "21"; } if ( ceil(round($moonage, 1)) == '10' ) { $afflune = "20"; } if ( ceil(round($moonage, 1)) == '11' ) { $afflune = "19"; } if ( ceil(round($moonage, 1)) == '12' ) { $afflune = "18"; } if ( ceil(round($moonage, 1)) == '13' ) { $afflune = "17"; } if ( ceil(round($moonage, 1)) == '14' ) { $afflune = "16"; } if ( ceil(round($moonage, 1)) == '16' ) { $afflune = "14"; } if ( ceil(round($moonage, 1)) == '17' ) { $afflune = "13"; } if ( ceil(round($moonage, 1)) == '18' ) { $afflune = "12"; } if ( ceil(round($moonage, 1)) == '19' ) { $afflune = "11"; } if ( ceil(round($moonage, 1)) == '20' ) { $afflune = "10"; } if ( ceil(round($moonage, 1)) == '21' ) { $afflune = "9"; } if ( ceil(round($moonage, 1)) == '22' ) { $afflune = "8"; } if ( ceil(round($moonage, 1)) == '23' ) { $afflune = "7"; } if ( ceil(round($moonage, 1)) == '24' ) { $afflune = "6"; } if ( ceil(round($moonage, 1)) == '25' ) { $afflune = "5"; } if ( ceil(round($moonage, 1)) == '26' ) { $afflune = "4"; } if ( ceil(round($moonage, 1)) == '27' ) { $afflune = "3"; } if ( ceil(round($moonage, 1)) == '28' ) { $afflune = "2"; } if ( ceil(round($moonage, 1)) == '29' ) { $afflune = "1"; } } if ( $mob == '0' ) { ?>
   Durée du Jour :

Zénit
minute de Soleil     Jour de Lune :
Lever:
Coucher:

%


Aurore


Lever


Coucher


Crépuscule
Durée du Jour :
minute de Soleil


Aurore



Lever



Zénit

Coucher

Crépuscule

Jour de Lune :
Lever:
Coucher:

%

"; $bdd = new PDO('mysql:host=localhost;dbname=marees;charset=UTF8', 'marees', 'poussygogo'); $jour = date("d"); $moi = date("m"); $annee = date("Y"); $ete = date("I", mktime(0, 0, 0, $moi, $jour, $annee)); $villemm = str_replace("-","_",$villem); $Nbd=current($bdd->query("select count(*) FROM $villemm WHERE annee = '$annee' and mois = '$moi' and jour = '$jour'")->fetch()); if ( $Nbd >= '1' ) { $Res=$bdd->query("SELECT * FROM $villemm WHERE annee = '$annee' and mois = '$moi' and jour = '$jour'"); $Rep = $Res->fetch(PDO::FETCH_ASSOC); $h0 = $Rep['h0']; $m0 = $Rep['m0']; $h1 = $Rep['h1']; $m1 = $Rep['m1']; $h2 = $Rep['h2']; $m2 = $Rep['m2']; $h3 = $Rep['h3']; $m3 = $Rep['m3']; $h4 = $Rep['h4']; $m4 = $Rep['m4']; $h5 = $Rep['h5']; $m5 = $Rep['m5']; $cm = $Rep['cm']; $cs = $Rep['cs']; $Nosuiv = $Rep['No']; if ( $ete == '1' ) { $hh0 = explode("h",$h0); $hh0[0] = $hh0[0]+1; if ( $hh0[0] <= '9' ) { $hh0[0] = "0".$hh0[0]; } if ( $hh0[0] == '24' ) { $hh0[0] = "00"; } $h0 = $hh0[0]."h".$hh0[1]; $hh1 = explode("h",$h1); $hh1[0] = $hh1[0]+1; if ( $hh1[0] <= '9' ) { $hh1[0] = "0".$hh1[0]; } $h1 = $hh1[0]."h".$hh1[1]; $hh2 = explode("h",$h2); $hh2[0] = $hh2[0]+1; if ( $hh2[0] <= '9' ) { $hh2[0] = "0".$hh2[0]; } $h2 = $hh2[0]."h".$hh2[1]; if ( $h3 != '' ) { $hh3 = explode("h",$h3); $hh3[0] = $hh3[0]+1; if ( $hh3[0] <= '9' ) { $hh3[0] = "0".$hh3[0]; } $h3 = $hh3[0]."h".$hh3[1]; } if ( $h4 != '' ) { $hh4 = explode("h",$h4); $hh4[0] = $hh4[0]+1; if ( $hh4[0] <= '9' ) { $hh4[0] = "0".$hh4[0]; } $h4 = $hh4[0]."h".$hh4[1]; } $hh5 = explode("h",$h5); $hh5[0] = $hh5[0]+1; if ( $hh5[0] <= '9' ) { $hh5[0] = "0".$hh5[0]; } $h5 = $hh5[0]."h".$hh5[1]; if ( $hh4[0] == '24' ) { $h5 = "00h".$hh4[1]; $m5 = $m4; $h4 = ""; } if ( $hh0[0] == '00' ) { $h4 = $h3; $m4 = $m3; $h3 = $h2; $m3 = $m2; $h2 = $h1; $m2 = $m1; $h1 = $h0; $m1 = $m0; } } echo "
Marées ".$conjv."".$port." Aujourd'hui      Coefficient"; echo "      ".$cm; if ( $h3 != '' ) { echo "/".$cs; } echo ""; if ( $h3 == '' ) { $h3 = $h2; $m3 = $m2; } if ( $h4 == '' ) { $h4 = $h3; $m4 = $m3; } echo "\"Cliquez"; echo "
Attention: Ces Valeurs de marées ne sont données qu'à titre indicatif et peuvent comporter certaines imprécisions.
Nous ne pourrons être en aucune façon tenu pour responsable de l'utilisation faite des ces informations de marées.

"; } } if ( $mob == '0' ) { $styl = "width: 640px; height: 500px;"; $wd = "640"; $wdd = "640"; $he = "500"; } else { $styl = "width: 80%; height: 350px; max-width: 640px;"; $wd = "450"; $wdd = "100%"; $he = "350"; } ?>
"; } else { echo "
"; if ( $mob == '1') { echo ""; } echo "
"; } echo "Région : ".$region."
Département : ".$departement; $bdd = new PDO('mysql:host=localhost;dbname=villes;charset=UTF8', 'villes', 'poussygogo'); if ( $commune ) { $commune2 = str_replace("'","\'",$commune); $dep1 = chunk_split("$cp","2","-"); $depc =explode("-",$dep1); $Nbc = current($bdd->query("select count(*) FROM france WHERE ville = '$commune2' and dep = '$depc[0]'")->fetch()); if ( $Nbc == '1' ) { $Res=$bdd->query("SELECT cp FROM france WHERE ville = '$commune2' and dep = '$depc[0]'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $cpc = $Repp['cp']; $commune3 = str_replace(" ","-",$commune); $commune3 = str_replace("'","-",$commune3); $commune3 = strtolower("$commune3"); echo "
Rattaché à la commune de : ".$commune.""; } else { echo "
Rattaché à la commune de : ".$commune; } } $decpos=strpos($lat,'.'); $whole_part=substr($lat,0,$decpos); $decimal_part=abs($lat-$whole_part); $minutes=intval($decimal_part*60); $seconds=intval((($decimal_part*60)-$minutes)*60); if ($whole_part<0) { $whole_part=($whole_part*(-1)); $L='S'; } else { $L='N'; } $latdeg=$whole_part.'°'.$minutes.'‘'.$seconds.'"'.$L; $decpos=strpos($lon,'.'); $whole_part=substr($lon,0,$decpos); $decimal_part=abs($lon-$whole_part); $minutes=intval($decimal_part*60); $seconds=intval((($decimal_part*60)-$minutes)*60); if ($whole_part<0) { $whole_part=($whole_part*(-1)); $L='W'; } else { $L='E'; } $londeg=$whole_part.'°'.$minutes.'‘'.$seconds.'"'.$L; echo "

"; echo "Latitude :

".$lat."
".$latdeg."

"; echo "Longitude :".$lon."
".$londeg.""; echo "
"; echo "
"; If( ceil($No/2) == $No/2 ) { echo "Code Postal : "; } else { echo "Cp :               "; } echo " ".$cp."
"; if ( $population ) { echo "Population : "; if ( $mob == '0' ) {echo "     ";} echo"".$population." Habitants
"; } if ( $altitude ) { echo "Altitude :         ".$altitude." mètres
"; } echo "
"; if ( $UFI != '') { echo "UFI :      ".$UFI."
"; if ( $mob == '1' ) { echo "
"; } } if ( $UNI != '') { echo "UNI :     ".$UNI."
"; if ( $mob == '1' ) { echo "
"; } } if ( $MGRS != '') { echo "MGRS : ".$MGRS."
"; if ( $mob == '1' ) { echo "
"; } } if ( $JOG != '') { echo "JOG :     ".$JOG."
"; } echo "
"; echo "
"; ?>
= '1' ) { ?>
Changement de Vue
Carte Satellite
= 1 ) { $pr = explode("|",$proxi); $Nbaa = $nbp/2; $Nbaa =ceil($Nbaa); if ( $nbp > '1' ) { $es = "s"; $con = "les"; $deb = "Les ".$upt;} else { $es = ""; $con = "la"; $deb = "La";} echo "
".$deb." ville".$es." ".$con." plus proche".$es." :

"; if ( $mob == '0') { echo "
"; } else { echo "
"; } $i = "0"; while ($i < $Nbaa) { $proxy = explode("-",$pr[$i]); if ( $proxy[1] < '1' ) { $dist = $proxy[1]*1000; $distance = $dist." m"; } else { $distance = $proxy[1]." Km"; } $Resp=$bdd->query("SELECT ville,cp,urlnp FROM france WHERE No = '$proxy[0]'"); $Reppr = $Resp->fetch(PDO::FETCH_ASSOC); $villep = $Reppr['ville']; $cpp = $Reppr['cp']; $urlnpl = $Reppr['urlnp']; echo "".$villep."    ".$distance."
"; if ( $mob == '1' ) { echo "
"; } $i++; } if ( $mob == '0' ) { echo "
"; } while ($Nbaa < $nbp) { $proxy = explode("-",$pr[$Nbaa]); if ( $proxy[1] < '1' ) { $dist = $proxy[1]*1000; $distance = $dist." m"; } else { $distance = $proxy[1]." Km"; } $Resp=$bdd->query("SELECT ville,cp,urlnp FROM france WHERE No = '$proxy[0]'"); $Reppr = $Resp->fetch(PDO::FETCH_ASSOC); $villep = $Reppr['ville']; $cpp = $Reppr['cp']; $urlnpl = $Reppr['urlnp']; echo "".$villep."    ".$distance."
"; if ( $mob == '1' ) { echo "
"; } $Nbaa++; } echo "
"; } echo "

"; $bdd = new PDO('mysql:host=localhost;dbname=villes;charset=UTF8', 'villes', 'poussygogo'); $Nbs=current($bdd->query("select count(*) FROM france WHERE No > '$No' and cp != ''")->fetch()); if ( $Nbs >= '1' ) { $Ress=$bdd->query("SELECT ville,cp,urlnp FROM france Where cp != '' and No > '$No' LIMIT 0,1"); } else { $Ress=$bdd->query("SELECT ville,cp,urlnp FROM france WHERE cp != '' LIMIT 0,1"); } $Reps = $Ress->fetch(PDO::FETCH_ASSOC); $villep = $Reps['ville']; $cpp = $Reps['cp']; $urlnps = $Reps['urlnp']; echo "Ville suivante : ".$villep.""; echo "

"; } if ( $cp != '' ) { $bdd = new PDO('mysql:host=localhost;dbname=keskeces;charset=UTF8', 'keskeces', 'poussygogo'); $Nbsl=current($bdd->query("select count(*) FROM medecin where cp = '$cp'")->fetch()); if ( $Nbsl != '0' ) { echo "Médecins à ".$ville.""; } } if ( $mob == '1' ) { if ( $decoup == 'conté' || $decoup == 'district' ) { $conj5 = ""; $conj4 = "du"; } if ( $decoup == 'province' || $decoup == 'région' || $decoup == 'prefecture' || $decoup == 'division' || $decoup == 'municipalité' || $decoup == 'paroisse') { $conj5 = "la "; $conj4 = "de"; } if ( $decoup == 'etat' ) { $conj5 = "l'"; $conj4 = "de"; } if ( $decoup == 'département' || $decoup == 'gouvernement') { $conj5 = ""; $conj4 = "du"; } $ini = chunk_split($villemeteo,"1","-"); $init = explode("-",$ini); ?>


"; if ( $mob == '0') { echo "
"; include("../../adsense-bing.php"); echo "
"; echo "
"; } else { include("../../adsense-mobile-bing.php"); echo "
"; } echo "
"; $dated = explode("-",$dateb); if ( $dated[1] == '01' ) { $moisd = "Janvier"; } if ( $dated[1] == '02' ) { $moisd = "Février"; } if ( $dated[1] == '03' ) { $moisd = "Mars"; } if ( $dated[1] == '04' ) { $moisd = "Avril"; } if ( $dated[1] == '05' ) { $moisd = "Mai"; } if ( $dated[1] == '06' ) { $moisd = "Juin"; } if ( $dated[1] == '07' ) { $moisd = "Juillet"; } if ( $dated[1] == '08' ) { $moisd = "Août"; } if ( $dated[1] == '09' ) { $moisd = "Septembre"; } if ( $dated[1] == '10' ) { $moisd = "Octobre"; } if ( $dated[1] == '11' ) { $moisd = "Novembre"; } if ( $dated[1] == '12' ) { $moisd = "Décembre"; } echo "  "; If( ceil($No/4) == $No/4 ) { echo "Autres résultats sur le Web du ".$dated[2]." ".$moisd." ".$dated[0]." :"; } If( ceil(($No+1)/4) == ($No+1)/4 ) { echo "Plus de résultats du ".$dated[2]." ".$moisd." ".$dated[0]." :"; } If( ceil(($No+2)/4) == ($No+2)/4 ) { echo "D'autres en parlent aussi le ".$dated[2]." ".$moisd." ".$dated[0]." :"; } If( ceil(($No+3)/4) == ($No+3)/4 ) { echo "Et aussi le ".$dated[2]." ".$moisd." ".$dated[0]." :"; } echo "
"; $bing = str_replace(""; setTimeout("WinTime('"+heure+"', '"+min+"', '"+sec+"')",1000); } function initialize() { var myLatlng = new google.maps.LatLng(, ); var myOptions = { zoom: 15, center: myLatlng, mapTypeId: google.maps.MapTypeId.HYBRID, scrollwheel: false, } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } function loadScript() { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&' + 'callback=initialize'; document.body.appendChild(script); }