Subversion Repository Public Repository

location-sisco

Diff Revisions 9 vs 19 for /trunk/index.php

Diff revisions: vs.
  @@ -5,24 +5,22 @@
5 5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6 6 <meta name="Description" content="Location d'une villa � Sisco - Cap Corse" />
7 7 <meta name="keywords" content="Location, villa, maison, sisco, bastia, corse" />
8 - <link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" />
8 + <link rel="stylesheet" media="screen" type="text/css" title="Design" href="./design.css" />
9 9 </head>
10 10 <body>
11 11 <?php
12 - include("fonctions.inc"); //fichier contenant les fonctions php utiles
13 - include("variables_communes.inc");
14 12 //Variables diverses
15 13 $nb_photos_par_ligne = 4;
16 14
17 15 //Gestion de la page � afficher (d�faut -> accueil.php)
18 16 $livre_pages= array('accueil', 'maison', 'acces', 'capCorse', 'bastia', 'tarifs', 'reservation', 'sisco', 'diaporama');
19 17 if(!isset($_GET['page'])){
20 - $page = "accueil.inc";
18 + $page = "accueil";
21 19 }else{
22 20 $find = false;
23 21 foreach($livre_pages as $p){
24 22 if($_GET['page'] == $p){
25 - $page = $p.".inc";
23 + $page = $p;
26 24 $find = true;
27 25 }
28 26 if($find){
  @@ -30,12 +28,16 @@
30 28 }
31 29 }
32 30 if(!$find){
33 - $page = "accueil.inc";
31 + $page = "accueil";
34 32 }
35 33 }
34 +
35 + include("variables_communes.inc");
36 + include("fonctions.inc"); //fichier contenant les fonctions php utiles
37 +
36 38 echo "<div id='body'>";
37 39 include("menu.inc");
38 - include($page);
40 + include($page.".inc");
39 41 /*include("footer.inc");*/
40 42 echo "</div>";
41 43 ?>