Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.145.61.142
<?php
//Get latest seance if no selection requested
if (!isset($id_seance) || !is_numeric($id_seance)) {
//$seance = mysql_fetch_assoc(mysql_query("SELECT * FROM csr_seance_sel WHERE status = 'inode_seance_sel_selection' ORDER BY dateseance DESC LIMIT 1", $mysql_link));
$id_seance = "10";
} else {
//$seance = mysql_fetch_assoc(mysql_query("SELECT * FROM csr_seance_sel WHERE id = ".$id_seance." ORDER BY dateseance DESC LIMIT 1", $mysql_link));
}
//Caching system
if ($id_seance == "10"){
$filename = "2010.html";
}
if ($id_seance == "9"){
$filename = "2009.html";
}
if ($id_seance == "8"){
$filename = "2008.html";
}
if ($id_seance == "7"){
$filename = "2007.html";
}
if ($id_seance == "5"){
$filename = "2006.html";
}
if ($id_seance == "4"){
$filename = "2005a.html";
}
if ($id_seance == "3"){
$filename = "2005b.html";
}
if ($id_seance == "1"){
$filename = "2004.html";
}
$filename = 'registrariat/static/' . $filename;
//echo $filename;
if (is_file($filename)) {
//echo "<br>found file";
readfile($filename);
}
else
{
//echo "file not found";
}
?>
|