TŠÔ"; $day[jp][1]="ŒŽ—j“ú"; $day[jp][2]="‰Î—j“ú"; $day[jp][3]="…—j“ú"; $day[jp][4]="–Ø—j“ú"; $day[jp][5]="‹à—j“ú"; $day[jp][6]="Week-end"; $day[jp][7]="Week-end"; $mapd[1]="3,4,52,25"; $mapd[2]="53,4,105,23"; $mapd[3]="106,4,161,25"; $mapd[4]="164,4,213,27"; $mapd[5]="6,27,53,46"; $mapd[6]="55,26,133,44"; $mapw[1]="6,6,26,28"; $mapw[2]="26,6,51,25"; $mapw[3]="52,6,74,26"; $mapw[4]="76,5,96,27"; $mapw[5]="98,4,118,26"; $mapw[6]="120,5,145,26"; $mapw[7]="146,6,166,26"; $mapw[8]="167,4,189,25"; $mapw[9]="191,3,219,25"; $mapw[10]="3,27,26,43"; $mapw[11]="27,26,51,45"; $mapw[12]="51,27,76,45"; $mapw[13]="75,29,97,44"; $mapw[14]="98,29,118,44"; $mapw[15]="118,27,144,45"; $mapw[16]="145,26,167,44"; $mapw[17]="166,26,190,46"; $mapw[18]="192,27,218,46"; $mapw[19]="3,45,26,60"; $mapw[20]="27,45,50,61"; $mapw[21]="51,45,74,61"; $mapw[22]="74,45,98,63"; $mapw[23]="98,45,120,62"; $mapw[24]="119,43,143,62"; $mapw[25]="144,45,168,62"; $mapw[26]="168,46,194,62"; $mapw[27]="192,46,220,63"; $mapw[28]="2,62,27,79"; $mapw[29]="27,62,50,79"; $mapw[30]="51,62,73,80"; $mapw[31]="75,62,98,83"; $mapw[32]="98,63,120,83"; $mapw[33]="120,64,142,84"; $mapw[34]="143,63,167,84"; $mapw[35]="169,63,192,84"; $mapw[36]="192,63,222,83"; $mapw[37]="-1,81,27,102"; $mapw[38]="27,80,50,102"; $mapw[39]="51,80,75,100"; $mapw[40]="76,83,98,101"; $mapw[41]="98,84,121,102"; $mapw[42]="118,84,143,102"; //-------------------------------------------------------------------------------------------------------- // Evalue le WEEK / DAY function maj($day) { global $av; if($day<1) {$day=1;} // Force le debut if($day>$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 [jp]:\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"; } ?>