include("func.php"); // fonctions $startime = getmicrotime(); if (!empty($_SERVER['PATH_INFO'])) { $chemin = explode('/',($_SERVER['PATH_INFO'])); } else { $chemin[1]="accueil"; } if (!empty($chemin[1])) { $page = $chemin[1]; } else { $page = "accueil"; } include("include/config.inc.php"); include("include/connect.php"); include("include/auth.php"); if ($page == "anonymous") { $page = "accueil"; } if ($chemin[1] == "css" && !empty($chemin[2])) { $css_file = preg_replace("/[^a-zA-Z0-9.]/","",$chemin[2]).".css"; if (!file_exists(dirname(__FILE__)."/css/$css_file")) { $css_file = "new.css"; } setcookie('css',$css_file,(time()+60*60*24*365),'/'); } elseif (!empty($_COOKIE['css'])) { $css_file = $_COOKIE['css']; } else { $css_file="new.css";} ?>
echo ""; $dh = opendir(dirname(__FILE__)."/css"); while(($file = readdir($dh)) !== FALSE) { if (ereg("([a-zA-Z]+)\.css",$file,$regs)){ echo "\n"; } } ?>