include "include/col_gauche.php" ;?>
|
function recup_bull ($location){
$conk="";
$fd = fopen ($location, "r");
while ( !feof ($fd) ) {
$buffer = fgets($fd,4028);
$conk.= nl2br($buffer);
}
fclose ($fd);
return $conk;
}
function Go_Spell ($texte , $chaine1 ,$chaine2){
$i1=strpos($texte,$chaine1)+strlen($chaine1);
if ($chaine2 != "") { $i2=strpos($texte,$chaine2);
// Cette fonction renvoie false $chaine n'est pas dans $texte et renvoie la partie du texte restant aprés $chaine
return substr($texte,$i1,$i2-$i1);
}
else return substr($texte,$i1,4028);
}
$heure=date("G");
//include ("include/impression.php");
?>
Evènements |
if (file_exists("bulletins/evenement/evenement.html")) {
include "bulletins/evenement/evenement.html";
}
else {
$envoi = "Pas d'évènement en cours.";
print $envoi;
}
/*if (file_exists("bulletins/evenement/evenement.txt")) {
$cont= recup_bull("bulletins/evenement/evenement.txt");
$titr[0]="# commentaire evenement du mois";
$titr[1]="# fin";
$envoi=Go_Spell($cont,$titr[0],$titr[1]);
print $envoi;
$cont=Go_Spell($cont,$titr[0],"");
}
else {
$envoi = "Pas d'évènement en cours.";
print $envoi;
}*/
?> |
|
|
|
include "include/col_droite.php" ; ?> |