"; // Tags autorises dans le forum $site_hot = "5"; // Reponses a un sujet dans le forum pour que le message soit considere come "hot" $site_photos = "1"; // Type d'affichage des photos (1 : classees par titre, 0 : a la suite) $site_videos = "0"; // Type d'affichage des videos (1 : classees par titre, 0 : a la suite) $site_theme = "new"; // Theme par defaut sur le site // Ajouts (1 : automatique, 0 : verification par un administrateur) $auto_commentaires = "1"; // Commentaires $auto_news = "0"; // News $auto_liens = "0"; // Liens $auto_events = "0"; // Evenements // Maximums (cette valeur doit etre strictement superieure a 0) $max_news_home = "7"; $max_news = "15"; $max_articles = "30"; $max_forum = "25"; $max_liens = "25"; $max_downloads = "25"; $max_photos = "20"; $max_wap = "15"; $max_guestbook = "20"; $max_videos = "20"; // Mois $tmois = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $tjours = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); // Types de videos $video_type[0] = "Type inconnu"; $video_type[1] = "Format QuickTime"; $video_type[2] = "Real Player"; $video_type[3] = "Format Windows Media"; $video_type[4] = "MPEG"; $video_type[5] = "DivX"; // Titres des pages // Le premier element du tableau sert de titre pour la page, le second pour une image ou autres $page_titre["admins-contrib.php"] = array("Administrateurs - Contributeurs", "titre"); $page_titre["articles.php"] = array("---", "titre"); $page_titre["downloads.php"] = array("Downloads", "titre"); $page_titre["evenements.php"] = array("Calendar", "titre"); $page_titre["forums.php"] = array("Tous les forums", "forum"); $page_titre["forums-lire.php"] = array("Forum", "forum"); $page_titre["forums-repondre.php"] = array("Forum > Répondre au message", "forum"); $page_titre["forums-stats.php"] = array("Forum > Stats du forum", "forum"); $page_titre["guestbook.php"] = array("Livre d'or", "titre"); $page_titre["home.php"] = array("Home", "titre"); $page_titre["liens.php"] = array("Liens", "liens"); $page_titre["liens-ajouter.php"] = array("Proposer un site", "liens"); $page_titre["liens-hasard.php"] = array("Liens au hasard", "liens"); $page_titre["news.php"] = array("News", "titre"); $page_titre["news-ajouter.php"] = array("Proposer une news", "titre"); $page_titre["newsletter.php"] = array("Subscribe", "titre"); $page_titre["perso.php"] = array("Personnaliser le site", "titre"); $page_titre["photos.php"] = array("Photos", "titre"); $page_titre["rechercher.php"] = array("Rechercher", "titre"); $page_titre["sondages.php"] = array("Sondages", "titre"); $page_titre["stats.php"] = array("Stats - Top 10", "titre"); $page_titre["videos.php"] = array("Vidéos", "titre"); // Smilies du forum $souriez[] = array("Z:-)", "diable.gif", "Diablotin"); $souriez[] = array(":-Q", "fume.gif", "Fumeur"); $souriez[] = array(":-))", "bigsourire.gif", "Gros sourire"); $souriez[] = array(":-D", "bigsourire.gif", "Gros sourire"); $souriez[] = array(":)", "sourire.gif", "Sourire"); $souriez[] = array(":(", "decu.gif", "Déçu"); $souriez[] = array(";-)", "clin.gif", "Clin d'oeuil"); $souriez[] = array("X-(", "couteau.gif", "Couteau dans la tête"); $souriez[] = array(":o)", "debile.gif", "Débile"); $souriez[] = array(":-((", "grrr.gif", "Vraiment pas content"); $souriez[] = array("8-)", "hallucine.gif", "J'hallucine"); $souriez[] = array(":-?", "heu.gif", "Hésite"); $souriez[] = array(":-p", "langue.gif", "Tire la langue"); $souriez[] = array(":-o", "oh.gif", "Oh"); $souriez[] = array(":-@", "perdu.gif", "Perdu"); $souriez[] = array(";-(", "pleure.gif", "Pleure"); $souriez[] = array("B-)", "tropcool.gif", "Trop cool"); $souriez[] = array(":-)", "sourire.gif", "Souris"); $souriez[] = array(":-(", "decu.gif", "Déçu"); $souriez[] = array(":fuck:", "fuck.gif", "Fuck it !"); $souriez[] = array("8o)", "clown.gif", "Le clown"); ?> ", $chaine); $chaine = str_replace(""", "\"", $chaine); $chaine = str_replace("[<]", "<", $chaine); $chaine = str_replace("[>]", ">", $chaine); return $chaine; } // Ajout de smilies function souriez($chaine) { global $souriez; for ($i = 0; $i < count($souriez); $i++) { $chaine = str_replace($souriez[$i][0], "", $chaine);} return $chaine;} // Status ICQ function icqStatus($no) { $image = @file("http://wwp.icq.com/scripts/online.dll?icq=".$no."&img=1"); $longeur = strlen($image[1]); if ($longueur == 96) { $status = "ONLINE";} elseif ($longueur == 83) { $status = "OFFLINE";} else { $status = "désactivé";} return $status; } // Creation de l'index function creerIndex($requete, $maximum) { global $deb, $total, $max, $commence; if ($deb <= 0 || !is_numeric($deb) || !isset($deb)) { $deb = 0;} $max = $maximum; $q = mysql_query($requete); $r = mysql_fetch_array($q); $total = $r["num"]; $commence = $deb * $max; } // Navigateur de pages function navBarre($plus) { global $total, $deb, $max, $PHP_SELF; if ($total > $max) { echo "

"; if ($deb > 0) { echo " ".$max." précédentes ";} if ($total > ($deb + 1) * $max) { echo " ".$max." suivantes ";} echo "
\n"; for ($i = 0; $i < ceil($total / $max); $i++) { if ($i == $deb) { echo "(".($i + 1).") ";} else { echo "(".($i + 1).") ";} } echo "

\n\n"; } } // Index de la page function navIndex() { global $total, $deb, $max; if ($total > 0) { $total_pages = ceil($total / $max); return "Page ".($deb + 1)."/".($total_pages); } else { return "Page 1/1";} } // Cookies : pseudo et email function paramCookies($auteur, $email) { global $site_cookie, $cauteur, $cemail, $cbloque; $cbloque = 1; $cauteur = AustripSlashes($auteur); $cemail = AustripSlashes($email); setCookie($site_cookie."Pseudo", AustripSlashes($auteur), time() + (3600 * 24 * 90)); setCookie($site_cookie."Email", AustripSlashes($email), time() + (3600 * 24 * 90)); } // Obtiens les infos if ($cbloque != 1) { $cauteur = AustripSlashes($HTTP_COOKIE_VARS[$site_cookie."Pseudo"]); $cemail = AustripSlashes($HTTP_COOKIE_VARS[$site_cookie."Email"]); } // Titre, logo de la page $adresse_fichier = $HTTP_SERVER_VARS["PHP_SELF"]; $adresse_fichier = basename($adresse_fichier); $titre_page = $page_titre[$adresse_fichier][0]; $logo_page = $page_titre[$adresse_fichier][1]; // Selection du theme $theme = $site_theme; if (!empty($HTTP_COOKIE_VARS[$site_cookie."Theme"]) && is_dir("themes/".$HTTP_COOKIE_VARS[$site_cookie."Theme"])) { $theme = $HTTP_COOKIE_VARS[$site_cookie."Theme"]; } ?>\n\n"; include("themes/".$theme."/hpage.php"); ?>