$av[jours]) {$day=$av[jours];} // Force la fin $av[day]=$day; $av[s]=ceil($day/7); $av[j]=ceil($day+7-$av[s]*7); if ($av[j]>6) {$av[d]=6;} else {$av[d]=$av[j];} $av[t]=($day-2+$av[start])*86400; $av[date]=date("m - j - Y",$av[t]); } //--------------------------------------------------------------------------------------------------------- if ($id) // Option sur la ligne de commande {maj($id);} else {maj($av[jours]);} // Mois if ($av[j]>1) { if ($av[j]==7) {$dm="";} else {$dm="";} } elseif ($av[s]>1) {$dm="";} //Plus if (($av[s]==$av[ns])and($av[j]<$av[nj])) { if (($av[nj]==7)and($av[j]==5)) {$dp="";$dpimg="";} else {$dp="";$dpimg="";} } elseif (($av[s]!=$av[ns])and($av[j]<5)) {$dp=""; $dpimg="";} elseif (($av[s]!=$av[ns])and($av[j]>4)) {$dp="";$dpimg="";} //Converti en OLD codage if ($av[s]<13) {$av[OC]="1".chr(96+$av[s]).$av[d];} // 1 Act elseif ($av[s]>24) {$av[OC]="3".chr(72+$av[s]).$av[d];} // 3 Act else {$av[OC]="2".chr(84+$av[s]).$av[d];} // 2 Act //L'image $image="histoire1/".$av[day].".jpg"; if (!@file_exists($image)) { if (!@copy("histoire1/images/".$av[OC].".jpg",$image)) { $msg="Impossible de copier l'image : histoire1/images/".$av[OC].".jpg vers ".$image."\r\n"; $image="histoire1/weekend_".$Lang.".jpg"; } } // Text $text="histoire1/".$Lang."/".$av[OC]."_".$Lang.".txt"; if (!@file_exists($text)) { $msg="Impossible d'inclure le text : ".$text; $text="histoire1/".$Lang."/weekend.txt"; } // Envoy du mail si ERREUR if ($msg) { $msghead ="Message en provenance de A-Ville.com [en]:\r\n"; $msghead.="De : $HTTP_HOST\r\n"; $msghead.="Langue : $HTTP_ACCEPT_LANGUAGE\r\n"; $msghead.="IP : $REMOTE_ADDR\r\n"; $msghead.="Agent : $HTTP_USER_AGENT\r\n"; $msghead.="Le :".date("j/m/Y à H:i:s",time())." (fr)\r\n\r\n"; //if ($av[d]!=6) {mail("tech@rugama.com","[A-Ville: Erreur]",$msghead.$msg,"");} } ?> A-ville : <? echo "$av[date]"; ?>
.gif" width="139" height="69" border="0">
.gif" width="219" height="54" border="0" usemap="#day">
4) { $h=$i-4; $v=2; } else { $h=$i; $v=1; } echo " \r\n"; } ?> 42) {break;} $v=ceil($i/9); $h=$i-($v-1)*9; echo " \r\n"; } ?>