p require_once('inc_require.php'); echo 'i'; // tes s'il y a une actu $res=SelectByOneCriteria('groupe', 'groid', 106); $row=mysql_fetch_assoc($res); $dispo=$row['grodispo']; //exit; if(1 == $dispo && (!isset($_COOKIE['actueteavez']) || '1' !== $_COOKIE['actueteavez'])) { setcookie('actueteavez', 1, time()+3600); header('location:pages.php?groid=106'); exit; } /////// recupere infos du groupes $groid=91; $_GET['groid']=91; $res=SelectOneRowOfTable('groupe', $groid); $row=mysql_fetch_assoc($res); $grodesc=stripslashes($row['grodesc'.$_SESSION['lang']]); if (!empty($grodesc)) { $txt1='

'.nl2br($grodesc).'

'; } $grotxt=stripslashes($row['grotxt'.$_SESSION['lang']]); $grolink1=$row['grolien1url']; $grolink2=$row['grolien2url']; if(!empty($grolink1)) { if(!empty($row['grolien1txt'.$_SESSION['lang']])) { $txtlink1=stripslashes($row['grolien1txt'.$_SESSION['lang']]); } else { $txtlink1=$grolink1; } $link1='

'.$txtlink1.'

'; } // img // recupere la 1e image ( NON = image initiale) $resimg=SelectByOneCriteria('media', 'groid', $groid, ' ORDER BY medorder ASC'); $rowimg=mysql_fetch_assoc($resimg); $medid=$rowimg['medid']; $pathtoimgfile=REL_PATH_TO_PICT_FOLDER.'/zoom/'.sprintf("%06d", $medid).'.jpg'; if(file_exists($pathtoimgfile)) { $maxwidth=293; $maxheight=410; $size=AutoSizeImg($maxwidth, $maxheight, $pathtoimgfile); $divimg='
'; } $content='
'.$divimg.' '.$txt1.'

'.nl2br($grotxt).'

 

'.$link1.'
'; // nom du groupe => titre page $titre=stripslashes($row['gronom'.$_SESSION['lang']]); $html=Head($titre); $html.=Body($titre); $html.=$content; $html.=Finhtml(); echo $html; ?>