|
Dernière réponse | |
---|---|
Sujet : Quelqu'un peut me poster sa page d'accueil en PHP ? | |
Castor666 | Ok, merci beaucoup a vous deux :)
Je comprend maintenant :) |
Aperçu |
---|
Vue Rapide de la discussion |
---|
Castor666 | Ok, merci beaucoup a vous deux :)
Je comprend maintenant :) |
Sh@rdar | <?
function replink($Texte) { $imgm = ("\\1" ); $imggo = ("\\1://\\2" ); $Texte = strip_tags($Texte); $Texte = nl2br($Texte); $Texte = eregi_replace("(http|https|ftp)://([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)","<a href=\"\\1://\\2\" target=\"_blank\">$imggo</a>",$Texte); $Texte = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-])\.([^[:space:]]*)([[:alnum:]-]))", "<a href=\"mailto:\\1\">$imgm</a>", $Texte); $Texte = eregi_replace("([a-z0-9]{40})", "\\1 " ,$Texte) ; return $Texte ; } require ("private/config/config.php3" ); if (isset($action)) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); header("Last-Modified:" . gmdate("D, d M Y H:i:s" ) . " GMT" ); header("Cache-Control: no-cache, must-revalidate" ); header("Pragma: no-cache" ); } // Switch des ajouts dans la base et redirections // switch ($action) { case "book_sign"; // Signature du Guestbook include ("private/fonctions/book_sign.php3" ); break; case "Ajouter"; // ajout de lien include ("private/fonctions/ajout_lien.php3" ); break; case "gueuler"; // ajout de coup de gueule include ("private/fonctions/gueule_ajout.php3" ); break; } switch ($submit) { case "Ajouter"; SetCookie ("ForumJUST","$Nom-$Mail-$URL-$Ville-$Pays-$Password","","","","" ); include ("private/fonctions/ajout_msg.php3" ); break; case "Poster"; include ("private/fonctions/news.php3" ); break; } // Fin du switch //////////////////////////////////// if (!isset($r)) $r=0; // RUBRIQUE if (!isset($p)) $p=0; // PAGE if (!isset($s)) $s=0; // SECTION if ($action=='Connexion') { include ("private/fonctions/verif_login.php3" ); } if (file_exists("private/pages/$r/$p-$s-param.php3" )) include ("private/pages/$r/$p-$s-param.php3" ); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title><? echo "La Guilde des JUST - $titre" ?></title> <link rel="stylesheet" type="text/css" href="style.css"> <? if (($action=='sign') OR ($action=='add') OR ($action=='ajout_lien') OR ($action=='gueule') OR ($p=='addnews') ) { include ("private/fonctions/verif_form.php3" ); } ?> </head> <body bgcolor="#000000" text="#FFFFFF"> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="60%" height="10" background="img/main/top-top.jpg"><img border="0" src="img/main/top-top1.jpg" width="375" height="10"></td> <td width="40%" height="10" background="img/main/top-top.jpg" align="right"><img border="0" src="img/main/top-top2.jpg" width="375" height="10"></td> </tr> </table> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="50%" height="60" background="img/main/top.jpg"><img border="0" src="img/main/top-left.jpg" width="264" height="60"></td> <td width="50%" height="60" background="img/main/top.jpg" align="right"><img border="0" src="img/main/top-left2.jpg" width="7" height="60"><? if (file_exists("private/pages/$r/$p-$s-pub.php3" )) include("private/pages/$r/$p-$s-pub.php3" ); else echo "<img border=\"0\" src=\"img/banner.jpg\" width=\"468\" height=\"60\" alt=\"La Guilde des JUST\">"; ?></td> <td width="10" height="60"><img border="0" src="img/main/top-right.jpg" width="10" height="60"></td> </tr> </table> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="50%" height="11" background="img/main/top-bottom.jpg"><img border="0" src="img/main/top-bottom1.jpg" width="375" height="11"></td> <td width="50%" height="11" background="img/main/top-bottom.jpg" align="right"><img border="0" src="img/main/top-bottom2.jpg" width="375" height="11"></td> </tr> </table> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="11" background="img/main/center-left1.jpg"><img border="0" src="img/main/center-left1.jpg" width="11" height="22"></td> <td width="99" align="center" valign="top"><img border="0" src="img/main/mini.gif" width="99" height="1"><table border="0" width="99" height="480" cellpadding="4" cellspacing="0" background="img/main/bgleft.jpg"> <tr> <td valign="top"> <p> <a href="?" class="a1">Accueil</a></p> <p><span class="b1">LES INFOS</span><br> <a href="?r=1" class="a1">Archives</a> <br> <a href="?r=1&p=1" class="a1">Tournois</a> <br> </p> <p><span class="b1">LA GUILDE</span><br> <a href="?r=2" class="a1">Pourquoi ?</a> <br> <a href="?r=2&p=1" class="a1">Les Membres</a> <br> <a href="?r=2&p=2" class="a1">Le Planning</a> <br> </p> <p><span class="b1">LE JEU</span><br> <a href="?r=3" class="a1">Lexique</a> <br> <a href="?r=3&p=1" class="a1">Commandes</a> <br> <a href="?r=3&p=2" class="a1">Battle.Net</a> <br> </p> <p><span class="b1">STRATEGIE</span><br> <a href="?r=4" class="a1">Généralités</a> <br> <a href="?r=4&p=1" class="a1">Terran</a> <br> <a href="?r=4&p=2" class="a1">Protoss</a> <br> <a href="?r=4&p=3" class="a1">Zerg</a> <br> <a href="?r=4&p=4" class="a1">Articles</a> <br> </p> <p><span class="b1">AIDE</span><br> <a href="?r=5" class="a1">Articles</a> <br> <a href="?r=5&p=1" class="a1">FAQ</a> <br> <a href="?r=5&p=2" class="a1">SOS PC</a> <br> <a href="?r=5&p=3" class="a1">Linux</a> <br> </p> </td> </tr> </table> </td> <td width="12" background="img/main/center-left2.jpg"><img border="0" src="img/main/center-left2.jpg" width="12" height="23"></td> <td width="100%" align="center" valign="top"><img border="0" src="img/main/mini.gif" width="506" height="1"><br> <p><span class="titre"><? echo "$msg" ?></span></p> <? if (file_exists("private/pages/$r/$p-$s.php3" )) { include ("private/pages/$r/$p-$s.php3" ); } else { include ("private/pages/erreur.php3" ); } ?> </td> <td width="12" background="img/main/center-right1.jpg"><img border="0" src="img/main/center-right1.jpg" width="12" height="20"></td> <td width="99" align="center" valign="top"><img border="0" src="img/main/mini.gif" width="99" height="1"><table border="0" width="99" height="480" cellpadding="4" cellspacing="0" background="img/main/bgright.jpg"> <tr> <td valign="top"> <p><span class="b2">DOWNLOADS</span><br> <a href="?r=6" class="a2">Patches</a> <br> <a href="?r=6&p=1" class="a2">Battle.Net</a><br> <a href="?r=6&p=2" class="a2">Images</a><br> <a href="?r=6&p=3" class="a2">Goodies</a> <br> <a href="?r=6&p=4" class="a2">Replays</a> <br> <a href="?r=6&p=5" class="a2">Divers</a> <br> <a href="?r=6&p=6" class="a2">Cartes</a> <br> </p> <p><span class="b2">VOTRE AVIS</span><br> <a href="?r=7&p=forum" class="a2">Forum</a> <br> <a href="?r=7&p=1" class="a2">Guestbook</a> <br> <a href="?r=7&p=2" class="a2">Marre !!</a> <br> </p> <p><span class="b2">LIENS</span><br> <a href="?r=8" class="a2">Clans</a> <br> <a href="?r=8&p=1" class="a2">Site StarCraft</a> <br> <a href="?r=8&p=2" class="a2">Autres sites</a> <br> <a href="?r=8&p=3&action=ajout_lien" class="a2">Ajouter un lien</a> <br> </p> <p><span class="b2">MEMBRES</span><br> <a href="?r=9" class="a2">Login</a> <br> (Accès restreint) </p> </td> </tr> </table> </td> <td width="11" background="img/main/center-right2.jpg"><img border="0" src="img/main/center-right2.jpg" width="11" height="23"></td> </tr> </table> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="50%" background="img/main/bottom-bottom.jpg"><img border="0" src="img/main/bottom-top1.jpg" width="375" height="12"></td> <td width="50%" background="img/main/bottom-bottom.jpg" align="right"><img border="0" src="img/main/bottom-top2.jpg" width="375" height="12"></td> </tr> </table> <table border="0" width="98%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="12%" valign="middle"><img border="0" src="img/main/bottom-left.jpg" width="11" height="24" align="absmiddle"> <? /* if ( (!isset($r)) OR ($r==0) ) echo "<img border=\"0\" src=\"http://perso0.free.fr/cgi-bin/wwwcount.cgi?df=[guilde.just].dat&dd=fatpt&ft=1\" align=\"absmiddle\" alt=\"compteur\" width=\"88\" height=\"16\">";*/ ?></td> <td colspan="2" align="center" width="76%"><span class="copyright"> © 2000-2001, tous droits réservés. <a href="?p=99"> Mentions légales</a>. All done by <a href="mailto:shardar.just@free.fr">Sh@rdar</a> ;-)</span></td> <td width="12%" align="right"><? /* <a href="http://www.hit-parade.com/hp.asp?site=a83263" target="_blank"><img src="http://loga.hit-parade.com/logohp1.gif?site=a83263" alt="Hit-Parade" width="77" height="15" border="0" align="absmiddle"> */ ?></a> <img border="0" src="img/main/bottom-right.jpg" width="11" height="24" align="absmiddle"></td> </tr> <tr> <td width="55%" colspan="2" height="11" background="img/main/bottom-bottom.jpg"><img border="0" src="img/main/bottom-bottom1.jpg" width="375" height="11"></td> <td width="45%" colspan="2" height="11" background="img/main/bottom-bottom.jpg" align="right"><img border="0" src="img/main/bottom-bottom2.jpg" width="375" height="11"></td> </tr> </table> </body> </html> |
antibillou | <table align="center" border="0" width="800" cellspacing="0">
<tr> <td colspan = "2" width = "800" background = "./images/fond_titre.jpg"> <center><font size = "6" color = "white" face = "Arial">Le site ultime: <b>ANTIBILLOU.COM</b></font></center> </td> </tr> <tr> <td valign="top" width="96"> <table border="0"> <tr> <td width='96' background='./images/fond_0.jpg' height='20'><p align='center'><b><font size='2' face = "Arial">.:: MENU ::.</font></b></p></b> </td> </tr> <? // tableau contenant les différentes parties du menu $tab_menu = array ("accueil", "bd", "oukiscache", "images", "medias", "dangereux", "eggs", "astuces", "jouez", "bidules", "blagues", "liens", "guestbook", "forum", "moi", "partenariat" ); for ($cpt = 0; $cpt <count($tab_menu); $cpt++) { if ($tab_menu[$cpt] == $dir) { print "<tr><td width='96' background = './images/fond_1.jpg' height='20'><p align='center'><b><font size='2' face = 'Arial'>".strtoupper($tab_menu[$cpt])."</font></b></p></td></tr>\n"; } else { print "<tr><td width='96' background = './images/fond_0.jpg' height='20' onMouseOver=\"this.background = './images/fond_1.jpg'\" onMouseOut=\"this.background = './images/fond_0.jpg'\" onClick=\"document.location.href='index.php3?dir=".$tab_menu[$cpt]."'\" ><p align='center'><b><a href='index.php3?dir=".$tab_menu[$cpt]."'><font size='2' face = 'Arial'>".strtoupper($tab_menu[$cpt])."</a></font></b></p></td></tr>\n"; } } ?> <tr> <td width='96' valign="top"> <p align="center"><a href="http://www.hit-parade.com/hp.asp?site=a76309" target="_blank"><img src="http://loga.hit-parade.com/logohp1.gif?site=a76309" width="77" height="15" border="0" alt="Hit-Parade"></a><BR> <font face = "Arial"> <A HREF="mailto:webmaster@antibillou.com">Webm@ster</A> <A HREF="javascript:window.external.AddFavorite('http://www.antibillou.com', 'ANTIBILLOU: Goodies Anti-Microsoft à gogo')">Bookmarkez</A> </font> </td> </tr> </table> </td> <td valign="top"> <font size="2" face = "Arial"> <? // Contenu selon la valeur de dir include ( $dir.".php3" ); ?> </font> </td> </tr> </table> [edtdd]--Message édité par antibillou--[/edtdd] |
Castor666 | J'ai fais include menu.html puis accueil.html.
Comment faire pour les liens? parce que quand on clique sur le lien, ça ouvre la page sans le menu. Je suis donc obligé de faire include menu.html sur chaque page pour que le menu s'affiche? Donc, je veux voire comment font les autres... :) |
FLY LM | Arfffff ????? :lol: :lol: :lol: :lol: :lol: :lol: :lol: |
Castor666 | Juste pour voir commen ça se fait...
Ce serai sympas ;) |