Bonjour Matthieu,
Ci-dessous index.php et contact.php
Je préfère vous les donner complets afin que vous puissiez détecter une incohérence éventuelle avec le :
include('./newslettux3/newslettux3cli_form_subscribe.php');
au niveau de require_once(NTUX3_ROOT.'_lib/config_vars.php');
Dans index.php, l'appel à la page est fait au niveau de la ligne 52 et le include au niveau de la ligne 147.
par avance, merci de votre contribution
index.php
- - - - - - -
<?php
session_start();
if(!isset($_SESSION['combo_lieu']))
{
$_SESSION['combo_lieu'] = "ToutesCommunes";
$_SESSION['combo_departement'] = "TousDépartements";
$_SESSION['combo_duree'] = "ToutesDurées";
$_SESSION['page_precedente'] = "";
}
?>
<!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" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="ty rando est dédié aux randonnées et balades pédestres en bretagne au pays de quimperlé" />
<meta name="keywords" content="randonnée,ti,rando,balade,pied,circuit,itinéraire,finistere,finistère,morbihan,bretagne,quimperle,quimperlé" />
<meta name="author" content="Maurice Sellin / Original design: Andreas Viklund - http://andreasviklund.com/" />
<link rel="stylesheet" type="text/css" href="./css/rando.css" />
<title>Ty Rando</title>
</head>
<body>
<?php
require("./Commun/Util.php");
require("./Commun/Fonctions.php");
// Connexion à la base
$bd = Connexion (NOM, PASSE, BASE, SERVEUR);
?>
<div id="thetop">
<a id="top"></a>
<p class="hide">Skip to:
<a href="#sitemenu" accesskey="2">Site menu</a> |
<a href="#maincontent" accesskey="3">Main content</a>
</p>
</div>
<div id="container">
<div id="sidebar">
<h2 class="sidelink menuheader"><a id="sitemenu"></a>Site menu:</h2>
<a class="sidelink" href="?p=accueil.html">Accueil</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=recherche.php">Recherche de randonnée</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=liste.php">Liste des randonnées</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=cliches.php">Album photos</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=balisage.html">Balisage</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=cartographie.html">Cartographie</a>
<span class="hide"> | </span>
<a class="sidelink" href="?p=contact.php">Contact & NewsLetter</a>
<span class="hide"> | </span>
<a class="hide" href="#top" accesskey="1">Haut de page</a>
<h3>Actus randos</h3>
<p>
- <a href="?p=actus_randos.html">Voir</a><br />
<h3>Météo</h3>
<p>
<?php
if (!defined('CONNEXION_LOCALE'))
{
?>
<script>
//Live weather feeds by freemeteo.com
//The use of this script is bound by Freemeteo’s Live Feed Service Agreement, as is published in the following url: http://www.freemeteo.com/default.asp?pid=178&la=1
// You are not allowed to change or delete any part of this script.
// Main body background color : FFFFFF
// Main body fonts color : 000000
// Header/Footer background color : 3980F4
// Header/Footer fonts color : FFFFFF
cIfrm="14";
gid="516653_20080831_191229";
</script>
<script src="http://www.freemeteo.com/templates/default/HTfeeds.js" type="text/javascript"></script>
<?php
}
?>
</p>
<h3>Liens sympas</h3>
<p>
- <a href="http://www.finisteretourisme.com/jsp/fiche_pagelibre.jsp?STNAV=&RUBNAV=&CODE=83740910&LANGUE=0">Comité départemental du Tourisme du Finistère</a><br />
- <a href="http://www.badminton-quimperle.com">Club de Badminton de Quimperlé</a><br />
</p>
<?php
if (!defined('CONNEXION_LOCALE'))
{
?>
<!-- phpmyvisites -->
<a href="http://www.phpmyvisites.net/" title="phpMyVisites | Open source web analytics"
onclick="window.open(this.href);return(false);"><script type="text/javascript">
<!--
var a_vars = Array();
var pagename = '';
var phpmyvisitesSite = 1;
var phpmyvisitesURL = "http://tyrando.free.fr/phpmv2/phpmyvisites.php";
//-->
</script>
<script language="javascript" src="http://tyrando.free.fr/phpmv2/phpmyvisites.js" type="text/javascript"></script>
<object><noscript><p>phpMyVisites | Open source web analytics
<img src="http://tyrando.free.fr/phpmv2/phpmyvisites.php" alt="Statistics" style="border:0" />
</p></noscript></object></a>
<!-- /phpmyvisites -->
<?php
}
?>
</div>
<div id="main">
<div id="logo"> </div>
<div id="intro">
<h1><a href="index.php" accesskey="4">Ty Rando</a></h1>
<span id="tagline">Bienvenue dans la maison WEB de la randonnée!</span>
</div>
<div class="clear"></div>
<?php
// si la fonction FiltrageRandonnees a ete appelee depuis liste.php ou recherche.php
// Récupération du name soumission pour la detection du go
if(isset($_GET["soumission"]))
{
$_SESSION['combo_lieu'] = $_GET["Lieu"];
$_SESSION['combo_departement'] = $_GET["Departement"];
switch($_GET["Duree"])
{
case 0: $_SESSION['combo_duree'] = "ToutesDurées"; break;
case 1: $_SESSION['combo_duree'] = "Moins de 2H"; break;
case 2: $_SESSION['combo_duree'] = "Entre 2H et 3H"; break;
case 3: $_SESSION['combo_duree'] = "Entre 3H et 4H"; break;
case 4: $_SESSION['combo_duree'] = "Entre 4H et 5H"; break;
case 5: $_SESSION['combo_duree'] = "Entre 5H et 6H"; break;
case 6: $_SESSION['combo_duree'] = "Plus de 6H"; break;
}
FiltrageRandonnees($bd, $_GET["Lieu"], $_GET["Departement"], $_GET["Duree"]);
}
else
{
// Récupération de la page a afficher
if (isset($_GET["p"]))
{
$p = $_GET["p"];
include($p);
$_SESSION['page_precedente'] = $p;
//echo $_SESSION['page_precedente'];
}
else
{
include("accueil.html");
$_SESSION['page_precedente'] = "accueil.html";
}
}
?>
</div>
<div class="clear"> </div>
<?php
if (defined('CONNEXION_LOCALE'))
{
printf("<div id=\"footer\">© Ty Rando local<br>Les itinéraires et descriptions sont présentés uniquement à titre indicatif et ne peuvent en aucun cas engager la responsabilité du rédacteur.<br>Optimisé pour Firefox</a></div>");
}
else
{
printf("<div id=\"footer\">© Ty Rando<br>Les itinéraires et descriptions sont présentés uniquement à titre indicatif et ne peuvent en aucun cas engager la responsabilité du rédacteur.<br>Optimisé pour Firefox</a></div>");
}
?>
</body>
</html>
contact.php:
- - - - - - - - -
<h3 class="headerstyle">Contact</h3>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<p>
<td> Laissez commentaires et suggestions en cliquant sur la
boîte aux lettres</td>
<td><a href="mailto:tyrando@free.fr?subject=Ti%20Rando:Commentaires%20et%20suggestions"><img src="img/email.gif" alt="boite mail de ty rando" style="border: 0px solid ; width: 94px; height: 94px;"></a></td>
</p>
</tbody>
</table>
<h3 class="headerstyle">Inscription à nos NewsLetters</h3>
<p> Pour recevoir, directement chez vous, les informations relatives aux dernières randonnées, Indiquez votre mail et valider le formulaire suivant :</p>
<?php
if (defined('CONNEXION_LOCALE'))
{
}
else
{
include('./newslettux3/newslettux3cli_form_subscribe.php');
echo $newslettux3->RegForm();
}
?>