Citation :
// Extraction des variables du fichier de theme
$output = fread($fp = fopen($sheme[path], 'r', filesize($sheme[path])); fclose($fp);
sscanf($output,"<!--\ncolordark = %s\ncolorlight = %s\nrubformat = %s\n-->", $sheme[dark], $sheme[light], $sheme[rubformat]);
$sheme[rubformat] = ereg_replace(¦," ",$sheme[rubformat]);
// Liste des themes
$handle=opendir('./core/theme';
while ($file = readdir($handle)){
if ($file!="." AND $file!=".." AND substr($file,-3)=="htm" ){
$file = str_replace(".htm","",$file);
$themes .= "<a href=\"./?p=$p&theme=$file\">$file</a> ";
}
}
|