Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 18.119.134.196
<script language="JavaScript">
//redirects to a file only if the file contains a path
function pageRedir(file){
if(file != ""){
window.location = file;
}
}
</script>
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<table width="636" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom" bgcolor="#FFFFFF">
<td align="center">
<?php
/*******************
** CACHING SYSTEM **
*******************/
//cherche la page cached
$cached_file = '../cache/en_entente_dropbox.html';
//calcule du time to live et expire time
$cached_TTL = (60*15);
$cached_expire_time = time() + $cached_TTL;
//cache non-expirer?
if (file_exists($cached_file) && filemtime($cached_file) > time() - $cached_TTL) {
$cached = true;
readfile($cached_file);
}else{
ob_start(); ?>
<select name="select" style="width: 165px;font-size:9px" size="1" onChange="pageRedir(this.value)">
<option selected>Teams</option>
<?php
$intEquipes = mysql_query("SELECT equipes.id_equipe, equipes.nom AS nom_equ, equipes.ville AS ville_equ FROM equipes, divisions, saisons, saisons_ligues, saisons_conferences, saisons_divisions, saisons_equipes WHERE saisons.id_saison = saisons_ligues.id_saison AND saisons_ligues.id_saison_ligue = saisons_conferences.id_saison_ligue AND saisons_conferences.id_saison_conference = saisons_divisions.id_saison_conference AND saisons_divisions.id_saison_division = saisons_equipes.id_saison_division AND equipes.id_equipe = saisons_equipes.id_equipe AND divisions.id_division = saisons_divisions.id_division AND saisons.actif = 1 AND saisons_ligues.id_ligue = 1 AND divisions.description_fr <> 'Autres' ORDER BY equipes.ville_equ ASC", $mysql_link);
while($intEquipe = mysql_fetch_array($intEquipes)){
//Print the name of the team
echo "<option value=\"index.php?page=8392&id_equipe=" . $intEquipe[id_equipe] . "\">" . $intEquipe[ville_equ] . " - " . $intEquipe[nom_equ] . "</option>";
}
?>
</select>
<?php
//si cache activer, sauvegarde du buffer
$cached_data = ob_get_contents();
if (($cached_data) && ($fp = fopen($cached_file,'w'))) {
@fwrite($fp,$cached_data);
@fclose($fp);
}
//envoie la page
ob_end_flush();
} ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/spacer.gif" width="1" height="3"></td>
</tr>
<tr>
<td height="5" background="../images/header/geimaentete-minibande.gif"><img src="../images/spacer.gif" width="1" height="5"></td>
</tr>
</table>
</td>
<td width="16"><img src="../images/header/geimaentete-coin1.gif" width="16" height="18"></td>
<td width="300">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="#BBBFCE"><img src="../images/spacer.gif" width="1" height="2"></td>
</tr>
<tr>
<td height="16" bgcolor="#546085" valign="bottom">
<div class="whiteText9px" style="padding:1px"><strong><?php echo stripslashes($system_header_title); ?></strong></div></td>
</tr>
</table>
</td>
<td width="16"><img src="../images/header/geimaentete-coin2.gif" width="16" height="32"></td>
<td width="157" class="rightSideBlackLine1px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="#BBBFCE"><img src="../images/spacer.gif" width="1" height="2"></td>
</tr>
<tr>
<td height="29" bgcolor="#546085" valign="bottom" align="right">
<div class="whiteText9px" style="padding:1px"><strong><?php echo $system_header_date; ?></strong></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="5" bgcolor="#000034"><img src="../images/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</td>
</tr>
<tr>
<?php
if($system_show_events == 1){ ?>
<td width="463" align="left" valign="top">
<?php include($system_main_file); ?>
</td>
<td width="173" align="left" valign="top">
<?php include("eventcolumn.php"); ?>
</td>
<?php }else{ ?>
<td width="636" align="left" valign="top">
<?php include($system_main_file); ?>
</td>
<?php } ?>
</tr>
</table>
|