31){ echo "Valeur incorrecte pour le jour: $d
\r\n"; exit(1); } } else{ echo "Valeur pour le jour non specifiee
\r\n"; exit(2); } if(isset($_GET['month'])){ $m=$_GET['month']; if($m<1||$m>12){ echo "Valeur incorrecte pour le mois: $d
\r\n"; exit(3); } } else{ echo "Valeur pour le mois non specifiee
\r\n"; exit(4); } if(isset($_GET['year'])){ $a=$_GET['year']; if($a<1980||$a>2099){ echo "Valeur incorrecte pour l'annee
\r\n"; exit(7); } } else{ echo "Valeur pour l'annee non specifiee
\r\n"; exit(5); } if(isset($_GET['evt'])){ $evtMsg = htmlentities($_GET['evt']); } } else{ echo "aucun parametre specifie
\r\n"; exit(6); } if(! file_exists($calFolder)){ echo "Calendars does not exists
\r\n"; exit(7); } ?> <?php echo "$d/$m/$a"; ?> ">Retour Calendrier

Liste des evenements

"; $fi = fopen($filName,"a") or die("cannot create file !"); fwrite($fi, "\r\n$evtMsg
\r\n"); fclose($fi); } //echo "looking for $filName"; if(file_exists($filName)){ readfile($filName); } else{ echo "empty
\r\n"; } ?>