File "actu.php"
Full Path: /home/asmplong/www/ancien-site-2019/poc/plugins/tmp/actu.php
File size: 1.14 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if(!empty($_GET['ca']))
{
$actu = $_GET['ca'];
}
else
{
$actu=1;
$fichier='actualite/'.$actu.'texte.htm';
while ( file_exists($fichier) )
{
$actu=$actu+1;
$fichier='actualite/'.$actu.'texte.htm';
}
$actu=$actu-1;
}
echo "<TABLE width=100% border=0>";
echo " <TR>";
echo " <TD width=100% class=\"titre\">";
echo " <P align=\"justify\">";
include("actualite/".$actu."entete.php");
echo " <BR><BR>";
echo " </P>";
echo " </TD>";
echo " </TR>";
echo "</TABLE>";
echo "<TABLE width=100% border=0>";
echo " <TR>";
echo " <TD class=\"texte\">";
echo " <P align=\"justify\">";
include("actualite/".$actu."texte.htm");
echo " </P>";
echo " </TD>";
echo " </TR>";
echo "</TABLE>";
echo "<BR><BR><BR>";
echo "<TABLE width=100% border=0>";
$photo=1;
$fichier='actualite/images/'.$corpsactu.'p'.$photo.'.jpg';
while ( file_exists($fichier) )
{
echo " <TR>";
echo " <TD align=\"center\" valign=\"center\">";
echo " <img src= \"actualite\\images\\".$actu."p".$photo.".jpg\">";
echo " </TD>";
echo " </TR>";
$photo=$photo+1;
$fichier='actualite/images/'.$corpsactu.'p'.$photo.'.jpg';
}
echo "</TABLE>";
?>