class user_define_class{ var $cObj; function generateImage($content,$conf){ global $TSFE; //$TSFE->set_no_cache(); //récupere les variables de configuration du Typoscript $repertoire = PATH_site.$conf["imagepath"]; $imagemap = $conf["imagemap"]; if(isset($conf["slide"])) $slide=$conf["slide"]; $nbimages=1; if(isset($conf["nbimages"])) $nbimages=$conf["nbimages"]; $border=0; if(isset($conf["imageborder"])) $border=$conf["imageborder"]; //Initialisation $liste_image = array(); $liste_flash = array(); if(!$dirhandle = opendir ($repertoire)) return ""; // extensions d'images $ext = array ("gif", "jpg"); // extensions texte $ext2 = array ("txt"); //$ret = "\n\n\n\n"; /*********************** test *******************************/ $filename = 'typo3temp/slideimage/javascript_'.substr(md5($ret),0,10).'.js'; // Write file: if ($filename) { if (!@is_file(PATH_site.$filename)) { t3lib_div::writeFile(PATH_site.$filename,$ret); } } /*********************** test *******************************/ $include=""; return $include; } function changetitle ($content, $conf) { return "Faculté des sciences et de génie :: ".$GLOBALS['TSFE']->page["title"]; } } ?>