PHP Coding Standards fixes

This commit is contained in:
n 2024-02-12 20:46:07 +01:00
parent 9fc0ef62d5
commit 0a3c559a59
45 changed files with 938 additions and 958 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
$titlepage = "Accès refusé"; $titlepage = "Accès refusé";
include "include/head.inc.php"; include "include/head.inc.php";
include "include/theme.inc.php"; include "include/theme.inc.php";
include "themes/default/theme.php"; include "themes/default/theme.php";

View File

@ -1,4 +1,4 @@
<?php <?php
$titlepage = "Fichier non trouvé"; $titlepage = "Fichier non trouvé";
include "include/head.inc.php"; include "include/head.inc.php";
include "include/theme.inc.php"; include "include/theme.inc.php";

View File

@ -1,5 +1,5 @@
<?php <?php
$titlepage="Erreur interne"; $titlepage = "Erreur interne";
include "include/head.inc.php"; include "include/head.inc.php";
include "include/theme.inc.php"; include "include/theme.inc.php";

View File

@ -1,17 +1,16 @@
<?php <?php
define("IFPP_PATH","http://$HTTP_HOST/ifpp"); define("IFPP_PATH", "http://$HTTP_HOST/ifpp");
define("PAGES_PATH",IFPP_PATH."/pages"); define("PAGES_PATH", IFPP_PATH."/pages");
define("INCLUDE_PATH",IFPP_PATH."/include"); define("INCLUDE_PATH", IFPP_PATH."/include");
define("IMAGES_PATH",IFPP_PATH."/images"); define("IMAGES_PATH", IFPP_PATH."/images");
define("MODULES_PATH",IFPP_PATH."/modules"); define("MODULES_PATH", IFPP_PATH."/modules");
define("MODULES_FORTUNE_PATH",IFPP_PATH.MODULES_PATH."/fortunes"); define("MODULES_FORTUNE_PATH", IFPP_PATH.MODULES_PATH."/fortunes");
define("MODULES_SONDAGE_PATH",IFPP_PATH.MODULES_PATH."/sondages"); define("MODULES_SONDAGE_PATH", IFPP_PATH.MODULES_PATH."/sondages");
define("MODULES_LIENSDIRECTS_PATH",IFPP_PATH.MODULES_PATH."/liensdirects"); define("MODULES_LIENSDIRECTS_PATH", IFPP_PATH.MODULES_PATH."/liensdirects");
define("MODULES_TRIBUNE_PATH",IFPP_PATH.MODULES_PATH."/tribune"); define("MODULES_TRIBUNE_PATH", IFPP_PATH.MODULES_PATH."/tribune");
include INCLUDE_PATH."/body.inc.php"; include INCLUDE_PATH."/body.inc.php";
echo INCLUDE_PATH; echo INCLUDE_PATH;
?>

View File

@ -1,15 +1,18 @@
<?php <?php
echo "<img src='images/li_lgn1_animated.gif' width=100%><div align=center> echo "<img src='images/li_lgn1_animated.gif' width=100%><div align=center>
<table border=0 width='100%' valign=bottom><tr> <table border=0 width='100%' valign=bottom><tr>
<td align =center>\n<a href='http://fr.php.net/' target='_blank'>\n<img src='images/"; <td align =center>\n<a href='http://fr.php.net/' target='_blank'>\n<img src='images/";
if (date("n")!="4") if (date("n") != "4") {
echo "elephpant.gif"; echo "elephpant.gif";
else } else {
echo "phpoisson_davril.gif"; echo "phpoisson_davril.gif";
}
echo "' alt='Ce site utilise PHP5' title='Ce site utilise PHP5' border=0></a>\n</td>\n"; echo "' alt='Ce site utilise PHP5' title='Ce site utilise PHP5' border=0></a>\n</td>\n";
if ($HTTP_GET_VARS["IFRANCE"] =="1") if ($HTTP_GET_VARS["IFRANCE"] == "1") {
echo "<td align=center>{=compt_puce_b}</td>\n"; echo "<td align=center>{=compt_puce_b}</td>\n";
}
echo " echo "
<td align=center>\n<a href='http://www.ifrance.com/phpinfo/index.php?section=pages/pip&page=index&theme=$theme' target='_blank'>\n<img src='images/mercipip.jpg' height=45 width=102 alt='Powered by PIP' title='Powered by PIP' border=0></a>\n</td> <td align=center>\n<a href='http://www.ifrance.com/phpinfo/index.php?section=pages/pip&page=index&theme=$theme' target='_blank'>\n<img src='images/mercipip.jpg' height=45 width=102 alt='Powered by PIP' title='Powered by PIP' border=0></a>\n</td>
@ -20,4 +23,3 @@ echo "
</tr></table></div></div>\n"; </tr></table></div></div>\n";
// echo "<br><a href=\"index.php\">retour au menu</a><br></div>"; // echo "<br><a href=\"index.php\">retour au menu</a><br></div>";
?>

View File

@ -1,18 +1,18 @@
<div align=right> <div align=right>
<?php <?php
setlocale (LC_ALL, 'fr_FR');
//$link = mysql_connect("localhost", "", "") setlocale(LC_ALL, 'fr_FR');
// or die("Could not connect"); //$link = mysql_connect("localhost", "", "")
//$hits = mysql_query("SELECT COUNT(*) FROM visit.visiteurs",$link) // or die("Could not connect");
// or die("Invalid query"); //$hits = mysql_query("SELECT COUNT(*) FROM visit.visiteurs",$link)
//echo strftime("%A %e %B %G | %R"); // or die("Invalid query");
//if ($hits) //echo strftime("%A %e %B %G | %R");
// echo mysql_result($hits,0)."<a href='visit/'> Hits</a><hr>"; //if ($hits)
//mysql_close($link); // echo mysql_result($hits,0)."<a href='visit/'> Hits</a><hr>";
//echo rand(10,10000000); //mysql_close($link);
//echo "<a href='visit/' title=\"Vous y croyez, vous ?\"> Hits</a><hr>"; //echo rand(10,10000000);
//echo "<a href='visit/' title=\"Vous y croyez, vous ?\"> Hits</a><hr>";
?> ?>
</div> </div>

View File

@ -18,4 +18,3 @@ $noir = "#000000";
$blanc = "#FFFFFF"; $blanc = "#FFFFFF";
*/ */
echo "<body onload=\"initLightbox(); useStyleAgain('styleTestStore');\" onunload=\"rememberStyle('styleTestStore');\">"; echo "<body onload=\"initLightbox(); useStyleAgain('styleTestStore');\" onunload=\"rememberStyle('styleTestStore');\">";
?>

View File

@ -2,10 +2,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php <?php
if ($titlepage == "") if ($titlepage == "") {
$titlepage = "Train Miniature Avallonnais"; $titlepage = "Train Miniature Avallonnais";
else } else {
$titlepage = "Train Miniature Avallonnais : $titlepage"; $titlepage = "Train Miniature Avallonnais : $titlepage";
}
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\"> echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">
<head> <head>

View File

@ -1,4 +1,5 @@
<?php <?php
require_once "include/standard.inc.php"; require_once "include/standard.inc.php";
require_once "include/timer.inc.php"; require_once "include/timer.inc.php";
require_once "include/random.inc.php"; require_once "include/random.inc.php";
@ -6,16 +7,13 @@ require_once "include/random.inc.php";
// modèle = YYYY mm dd hh MM ss // modèle = YYYY mm dd hh MM ss
// masque = 0000 00 00 00 10 00 // masque = 0000 00 00 00 10 00
// valeur = 24h. // valeur = 24h.
$Logo = timer("logo",240000); $Logo = timer("logo", 240000);
if ($Logo == FALSE) if ($Logo == false) {
{ while (($RandomLogo = RandomFile("images/logos/")) == $Logo);
while (($RandomLogo = RandomFile("images/logos/")) == $Logo); settimer("logo", "$RandomLogo");
settimer("logo","$RandomLogo"); $Logo = $RandomLogo;
$Logo = $RandomLogo;
} }
echo "<a href='leclub.html' title='TMA'><img src='images/logos/$Logo' alt='TMA' width='147' height='82' class='border2' /></a>"; echo "<a href='leclub.html' title='TMA'><img src='images/logos/$Logo' alt='TMA' width='147' height='82' class='border2' /></a>";
unset($Logo); unset($Logo);
unset($RandomLogo); unset($RandomLogo);
?>

View File

@ -1,11 +1,11 @@
<?php <?php
function openimg($source,$lien,$titre,$target='_blank') function openimg($source, $lien, $titre, $target = '_blank')
{ {
echo "<a href=\"$lien\" title=\"$titre\" onclick=\"window.open(this,'$target','location=0,statusbar=0,menubar=0,width=720,height=500'); return false\"><img src=\"$source\" alt=\"$titre\" title=\"$titre\" /></a>"; echo "<a href=\"$lien\" title=\"$titre\" onclick=\"window.open(this,'$target','location=0,statusbar=0,menubar=0,width=720,height=500'); return false\"><img src=\"$source\" alt=\"$titre\" title=\"$titre\" /></a>";
} }
function litebox($source,$lien,$titre,$target='_blank') function litebox($source, $lien, $titre, $target = '_blank')
{ {
echo "<a href=\"$lien\" title=\"$titre\" rel=\"lightbox[exemple]\"><img src=\"$source\" alt=\"$titre\" title=\"$titre\" /></a>"; echo "<a href=\"$lien\" title=\"$titre\" rel=\"lightbox[exemple]\"><img src=\"$source\" alt=\"$titre\" title=\"$titre\" /></a>";
} }
?> ?>
<br /> <br />

View File

@ -1,41 +1,42 @@
<?php <?php
// plante la graine... // plante la graine...
@mt_srand ((double) microtime() * 1000000); @mt_srand((float) microtime() * 1000000);
function RandomColors() function RandomColors()
{ {
$colors = array("ccccff","cceecc","ffcccc","eeccee","ffccff","cceeee","cceeff"); $colors = array("ccccff","cceecc","ffcccc","eeccee","ffccff","cceeee","cceeff");
$color[0] = $color[1] = "000000"; $color[0] = $color[1] = "000000";
while ($color[0] == $color[1]) while ($color[0] == $color[1]) {
{ $color[0] = $colors[mt_rand(0, count($colors) - 1)];
$color[0] = $colors[mt_rand(0, count($colors)-1)]; $color[1] = $colors[mt_rand(0, count($colors) - 1)];
$color[1] = $colors[mt_rand(0, count($colors)-1)]; }
}
@array_splice($colors,0); @array_splice($colors, 0);
return $color; return $color;
} }
function RandomFile($dirname) function RandomFile($dirname)
{ {
$i = 0; $i = 0;
$d = opendir($dirname); $d = opendir($dirname);
while (false!==($rfile = readdir($d))) while (false !== ($rfile = readdir($d))) {
if (($rfile[0] != ".") && is_file($dirname."/".$rfile)) if (($rfile[0] != ".") && is_file($dirname."/".$rfile)) {
$listfiles[++$i] = $rfile; $listfiles[++$i] = $rfile;
closedir($d); }
}
closedir($d);
if (count($listfiles) > 1) if (count($listfiles) > 1) {
$rfile = $listfiles[mt_rand(1, count($listfiles))]; $rfile = $listfiles[mt_rand(1, count($listfiles))];
else } else {
$rfile =$listfiles[1]; $rfile = $listfiles[1];
}
@array_splice($listfiles,0); @array_splice($listfiles, 0);
return $rfile; return $rfile;
} }
?>

View File

@ -1,232 +1,241 @@
<?php <?php
// extract($themeset, EXTR_OVERWRITE); // extract($themeset, EXTR_OVERWRITE);
// fonctions & icones par nitro skateboarding // fonctions & icones par nitro skateboarding
// http://www.multimania.com/nskate // http://www.multimania.com/nskate
$souriez = array( $souriez = array(
array("|:-)", "lunettes.gif"), array("|:-)", "lunettes.gif"),
array(";-)", "clin.gif"), array(";-)", "clin.gif"),
array(";)", "clin.gif"), array(";)", "clin.gif"),
array(";o)", "clin.gif"), array(";o)", "clin.gif"),
array(":-))", "dents.gif"), array(":-))", "dents.gif"),
array(":))", "dents.gif"), array(":))", "dents.gif"),
array(":-)", "content.gif"), array(":-)", "content.gif"),
array(":)", "content.gif"), array(":)", "content.gif"),
array(":-o", "couteau.gif"), array(":-o", "couteau.gif"),
array(":o)", "debile.gif"), array(":o)", "debile.gif"),
array(":-((", "enerve.gif"), array(":-((", "enerve.gif"),
array(":((", "enerve.gif"), array(":((", "enerve.gif"),
array(":-(", "decu.gif"), array(":-(", "decu.gif"),
array(":(", "decu.gif"), array(":(", "decu.gif"),
array("8-)", "hallucine.gif"), array("8-)", "hallucine.gif"),
array(":-p", "langue.gif"), array(":-p", "langue.gif"),
array(";-(", "pleure.gif"), array(";-(", "pleure.gif"),
array(";(", "pleure.gif"), array(";(", "pleure.gif"),
array(";o(", "pleure.gif") array(";o(", "pleure.gif")
); );
// traitement des chaines - transformation des caractères // traitement des chaines - transformation des caractères
function parse_string($chaine) function parse_string($chaine)
{ {
include "include/theme.inc.php"; include "include/theme.inc.php";
// smileys // smileys
global $souriez; global $souriez;
$traite = str_replace($souriez[0][0], "<img src='modules/share/".$souriez[0][1]."' border='0' alt='|:-&#41;' />", $chaine); $traite = str_replace($souriez[0][0], "<img src='modules/share/".$souriez[0][1]."' border='0' alt='|:-&#41;' />", $chaine);
$traite = str_replace($souriez[1][0], "<img src='modules/share/".$souriez[1][1]."' border='0' alt=';-&#41;' />", $traite); $traite = str_replace($souriez[1][0], "<img src='modules/share/".$souriez[1][1]."' border='0' alt=';-&#41;' />", $traite);
$traite = str_replace($souriez[2][0], "<img src='modules/share/".$souriez[2][1]."' border='0' alt=';&#41;' />", $traite); $traite = str_replace($souriez[2][0], "<img src='modules/share/".$souriez[2][1]."' border='0' alt=';&#41;' />", $traite);
$traite = str_replace($souriez[3][0], "<img src='modules/share/".$souriez[3][1]."' border='0' alt=';o&#41;' />", $traite); $traite = str_replace($souriez[3][0], "<img src='modules/share/".$souriez[3][1]."' border='0' alt=';o&#41;' />", $traite);
$traite = str_replace($souriez[4][0], "<img src='modules/share/".$souriez[4][1]."' border='0' alt=':-&#41;&#41; /'>", $traite); $traite = str_replace($souriez[4][0], "<img src='modules/share/".$souriez[4][1]."' border='0' alt=':-&#41;&#41; /'>", $traite);
$traite = str_replace($souriez[5][0], "<img src='modules/share/".$souriez[5][1]."' border='0' alt=':&#41;&#41' />", $traite); $traite = str_replace($souriez[5][0], "<img src='modules/share/".$souriez[5][1]."' border='0' alt=':&#41;&#41' />", $traite);
$traite = str_replace($souriez[6][0], "<img src='modules/share/".$souriez[6][1]."' border='0' alt=':-&#41;' />", $traite); $traite = str_replace($souriez[6][0], "<img src='modules/share/".$souriez[6][1]."' border='0' alt=':-&#41;' />", $traite);
$traite = str_replace($souriez[7][0], "<img src='modules/share/".$souriez[7][1]."' border='0' alt=':&#41;' />", $traite); $traite = str_replace($souriez[7][0], "<img src='modules/share/".$souriez[7][1]."' border='0' alt=':&#41;' />", $traite);
$traite = str_replace($souriez[8][0], "<img src='modules/share/".$souriez[8][1]."' border='0' alt=':-o' />", $traite); $traite = str_replace($souriez[8][0], "<img src='modules/share/".$souriez[8][1]."' border='0' alt=':-o' />", $traite);
$traite = str_replace($souriez[9][0], "<img src='modules/share/".$souriez[9][1]."' border='0' alt=':o&#40; /'>", $traite); $traite = str_replace($souriez[9][0], "<img src='modules/share/".$souriez[9][1]."' border='0' alt=':o&#40; /'>", $traite);
$traite = str_replace($souriez[10][0], "<img src='modules/share/".$souriez[10][1]."' border='0' alt=':o&#40;&#40; /'>", $traite); $traite = str_replace($souriez[10][0], "<img src='modules/share/".$souriez[10][1]."' border='0' alt=':o&#40;&#40; /'>", $traite);
$traite = str_replace($souriez[11][0], "<img src='modules/share/".$souriez[11][1]."' border='0' alt=':&#40;&#40;' />", $traite); $traite = str_replace($souriez[11][0], "<img src='modules/share/".$souriez[11][1]."' border='0' alt=':&#40;&#40;' />", $traite);
$traite = str_replace($souriez[12][0], "<img src='modules/share/".$souriez[12][1]."' border='0' alt=':-&#40;' />", $traite); $traite = str_replace($souriez[12][0], "<img src='modules/share/".$souriez[12][1]."' border='0' alt=':-&#40;' />", $traite);
$traite = str_replace($souriez[13][0], "<img src='modules/share/".$souriez[13][1]."' border='0' alt=':&#40;' />", $traite); $traite = str_replace($souriez[13][0], "<img src='modules/share/".$souriez[13][1]."' border='0' alt=':&#40;' />", $traite);
$traite = str_replace($souriez[14][0], "<img src='modules/share/".$souriez[14][1]."' border='0' alt='8-&#41' />", $traite); $traite = str_replace($souriez[14][0], "<img src='modules/share/".$souriez[14][1]."' border='0' alt='8-&#41' />", $traite);
$traite = str_replace($souriez[15][0], "<img src='modules/share/".$souriez[15][1]."' border='0' alt=':-p' />", $traite); $traite = str_replace($souriez[15][0], "<img src='modules/share/".$souriez[15][1]."' border='0' alt=':-p' />", $traite);
$traite = str_replace($souriez[16][0], "<img src='modules/share/".$souriez[16][1]."' border='0' alt=';-&#40;' />", $traite); $traite = str_replace($souriez[16][0], "<img src='modules/share/".$souriez[16][1]."' border='0' alt=';-&#40;' />", $traite);
$traite = str_replace($souriez[17][0], "<img src='modules/share/".$souriez[17][1]."' border='0' alt=';-&#40;' />", $traite); $traite = str_replace($souriez[17][0], "<img src='modules/share/".$souriez[17][1]."' border='0' alt=';-&#40;' />", $traite);
$traite = str_replace($souriez[18][0], "<img src='modules/share/".$souriez[18][1]."' border='0' alt=';-&#40;' />", $traite); $traite = str_replace($souriez[18][0], "<img src='modules/share/".$souriez[18][1]."' border='0' alt=';-&#40;' />", $traite);
// liens // liens
//$traite = ereg_replace("\n","<br />",$traite); //$traite = ereg_replace("\n","<br />",$traite);
//$traite = ereg_replace("<url>","<a href=\"",$traite); //$traite = ereg_replace("<url>","<a href=\"",$traite);
//$traite = ereg_replace("</url>","\">[Lien]</a>",$traite); //$traite = ereg_replace("</url>","\">[Lien]</a>",$traite);
// themes // themes
global $theme; global $theme;
$traite = ereg_replace("THEME_COURANT",$theme,$traite); $traite = ereg_replace("THEME_COURANT", $theme, $traite);
return $traite; return $traite;
} }
// renvoie la page ou le module en cours // renvoie la page ou le module en cours
// (nécessaire car netscape ne reconnait pas la constante __SELF__) // (nécessaire car netscape ne reconnait pas la constante __SELF__)
function caller() function caller()
{ {
include "include/theme.inc.php"; include "include/theme.inc.php";
global $section; global $section;
global $page; global $page;
global $modulepage; global $modulepage;
global $theme; global $theme;
if (($section != "") && ($page != "")) if (($section != "") && ($page != "")) {
$liencaller = "index.php?section=$section&page=$page&theme=$theme"; $liencaller = "index.php?section=$section&page=$page&theme=$theme";
else if ($modulepage != "") } elseif ($modulepage != "") {
$liencaller = "index.php?modulepage=$modulepage&theme=$theme"; $liencaller = "index.php?modulepage=$modulepage&theme=$theme";
else } else {
$liencaller = "index.php?theme=$theme"; $liencaller = "index.php?theme=$theme";
}
return $liencaller; return $liencaller;
} }
// renvoie la page ou le module en cours, à ajouter dans un formulaire // renvoie la page ou le module en cours, à ajouter dans un formulaire
// (pour le passage de paramètres par méthode get) // (pour le passage de paramètres par méthode get)
function formcaller() function formcaller()
{ {
require_once "include/theme.inc.php"; require_once "include/theme.inc.php";
global $section; global $section;
global $page; global $page;
global $modulepage; global $modulepage;
global $theme; global $theme;
if (($section != "") && ($page != "")) if (($section != "") && ($page != "")) {
$formcaller = "<input name='theme' value='$theme' type=hidden> $formcaller = "<input name='theme' value='$theme' type=hidden>
<input name='section' value='$section' type=hidden> <input name='section' value='$section' type=hidden>
<input name='page' value='$page' type=hidden>"; <input name='page' value='$page' type=hidden>";
else if ($modulepage != "") } elseif ($modulepage != "") {
$formcaller = "<input name='theme' value='$theme' type=hidden> $formcaller = "<input name='theme' value='$theme' type=hidden>
<input name='modulepage' value='$modulepage' type=hidden>"; <input name='modulepage' value='$modulepage' type=hidden>";
else } else {
$formcaller = "<input name='theme' value='$theme' type=hidden>"; $formcaller = "<input name='theme' value='$theme' type=hidden>";
}
return $formcaller; return $formcaller;
} }
// formate un nombre pour stockage dans un fichier d'index // formate un nombre pour stockage dans un fichier d'index
function splitchar($Number) function splitchar($Number)
{ {
$byte = strval(dechex($Number)); $byte = strval(dechex($Number));
switch(strlen($byte)) switch(strlen($byte)) {
{ case 1:
case 1: $byte0 = $byte;
$byte0=$byte; $byte1 = $byte2 = $byte3 = 0;
$byte1=$byte2=$byte3=0; break;
break; case 2:
case 2: $byte0 = "$byte[0]$byte[1]";
$byte0="$byte[0]$byte[1]"; $byte1 = $byte2 = $byte3 = 0;
$byte1=$byte2=$byte3=0; break;
break; case 3:
case 3: $byte0 = "$byte[1]$byte[2]";
$byte0="$byte[1]$byte[2]"; $byte1 = $byte[0];
$byte1=$byte[0]; $byte2 = $byte3 = 0;
$byte2=$byte3=0; break;
break; case 4:
case 4: $byte0 = "$byte[2]$byte[3]";
$byte0="$byte[2]$byte[3]"; $byte1 = "$byte[0]$byte[1]";
$byte1="$byte[0]$byte[1]"; $byte2 = $byte3 = 0;
$byte2=$byte3=0; break;
break; case 5:
case 5: $byte0 = "$byte[3]$byte[4]";
$byte0="$byte[3]$byte[4]"; $byte1 = "$byte[1]$byte[2]";
$byte1="$byte[1]$byte[2]"; $byte2 = $byte[0];
$byte2=$byte[0]; $byte3 = 0;
$byte3=0; break;
break; case 6:
case 6: $byte0 = "$byte[4]$byte[5]";
$byte0="$byte[4]$byte[5]"; $byte1 = "$byte[2]$byte[3]";
$byte1="$byte[2]$byte[3]"; $byte2 = "$byte[0]$byte[1]";
$byte2="$byte[0]$byte[1]"; $byte3 = 0;
$byte3=0; // no break
case 7: case 7:
$byte0="$byte[5]$byte[6]"; $byte0 = "$byte[5]$byte[6]";
$byte1="$byte[3]$byte[4]"; $byte1 = "$byte[3]$byte[4]";
$byte2="$byte[1]$byte[2]"; $byte2 = "$byte[1]$byte[2]";
$byte3=$byte[0]; $byte3 = $byte[0];
break; break;
case 8: case 8:
$byte0="$byte[6]$byte[7]"; $byte0 = "$byte[6]$byte[7]";
$byte1="$byte[4]$byte[5]"; $byte1 = "$byte[4]$byte[5]";
$byte2="$byte[2]$byte[3]"; $byte2 = "$byte[2]$byte[3]";
$byte3="$byte[0]$byte[1]"; $byte3 = "$byte[0]$byte[1]";
break; break;
default: default:
echo "depassement !!!!!!"; echo "depassement !!!!!!";
} }
$string = sprintf("%c%c%c%c",hexdec($byte3),hexdec($byte2),hexdec($byte1),hexdec($byte0)); $string = sprintf("%c%c%c%c", hexdec($byte3), hexdec($byte2), hexdec($byte1), hexdec($byte0));
return $string; return $string;
} }
// créé un fichier d'index // créé un fichier d'index
function strfile($FileName) function strfile($FileName)
{ {
$Nb = 0; $Nb = 0;
$index[$Nb++] = "0"; $index[$Nb++] = "0";
$input = fopen("$FileName.csv","r"); $input = fopen("$FileName.csv", "r");
while ($data = fgetcsv($input, 10000, ",")) while ($data = fgetcsv($input, 10000, ",")) {
$index[$Nb++] = ftell($input); $index[$Nb++] = ftell($input);
fclose($input); }
$index[--$Nb] = 0; fclose($input);
$output = fopen("$FileName.dat","w"); $index[--$Nb] = 0;
fwrite($output,splitchar($Nb)); $output = fopen("$FileName.dat", "w");
for ($i = 0 ; $i < $Nb ; $i++) fwrite($output, splitchar($Nb));
fwrite($output,splitchar($index[$i])); for ($i = 0 ; $i < $Nb ; $i++) {
fclose($output); fwrite($output, splitchar($index[$i]));
}
fclose($output);
} }
// lit un fichier d'index et renvoie l'index correspondant au numéro d'enregistrement // lit un fichier d'index et renvoie l'index correspondant au numéro d'enregistrement
function unstr($FileName,$Num) function unstr($FileName, $Num)
{ {
if (!file_exists("$FileName.dat")) if (!file_exists("$FileName.dat")) {
strfile($FileName); strfile($FileName);
}
$indexfile = fopen("$FileName.dat","r"); $indexfile = fopen("$FileName.dat", "r");
$total = hexdec(bin2hex(fread($indexfile,4))); $total = hexdec(bin2hex(fread($indexfile, 4)));
// echo $total; // echo $total;
if ($Num > $total) if ($Num > $total) {
$Num = $total; $Num = $total;
fseek($indexfile,($Num*4)+4); }
$pos = hexdec(bin2hex(fread($indexfile,4))); fseek($indexfile, ($Num * 4) + 4);
fclose($indexfile); $pos = hexdec(bin2hex(fread($indexfile, 4)));
return $pos; fclose($indexfile);
return $pos;
} }
// retourne le nombre d'enregistrement d'après le fichier d'index // retourne le nombre d'enregistrement d'après le fichier d'index
function gettotal($FileName) function gettotal($FileName)
{ {
if (!file_exists("$FileName.dat")) if (!file_exists("$FileName.dat")) {
strfile($FileName); strfile($FileName);
$indexfile = fopen("$FileName.dat","r"); }
return hexdec(bin2hex(fread($indexfile,4))); $indexfile = fopen("$FileName.dat", "r");
return hexdec(bin2hex(fread($indexfile, 4)));
} }
// compte le nombre d'enregistrement d'un fichier csv // compte le nombre d'enregistrement d'un fichier csv
function countcsv($File) function countcsv($File)
{ {
$max = 0; $max = 0;
$fd = fopen("$File.csv","r"); $fd = fopen("$File.csv", "r");
while (fgetcsv($fd,10000 , ",")) while (fgetcsv($fd, 10000, ",")) {
$max++; $max++;
fclose($fd); }
return $max; fclose($fd);
return $max;
} }
// créé un fichier // créé un fichier
function createfile($FileName) function createfile($FileName)
{ {
$fp = fopen($FileName,"w+"); $fp = fopen($FileName, "w+");
fclose($fp); fclose($fp);
} }
// affiche une erreur 401 // affiche une erreur 401
function err401($msg_err) function err401($msg_err)
{ {
echo " echo "
<html> <html>
<head> <head>
<meta http-equiv='Content-Type' content='HTTP/1.0 401 Unauthorized' /> <meta http-equiv='Content-Type' content='HTTP/1.0 401 Unauthorized' />
@ -240,92 +249,86 @@ function err401($msg_err)
</body> </body>
</html>"; </html>";
exit(); exit();
} }
// affiche une demande de mot de passe suivant le fichier password.txt // affiche une demande de mot de passe suivant le fichier password.txt
function password($folder) function password($folder)
{ {
//************** indentification de l'utilisateur ************* //************** indentification de l'utilisateur *************
$fd = fopen("$folder/password.txt","r"); $fd = fopen("$folder/password.txt", "r");
$titre = fgetcsv($fd, 10000, ","); $titre = fgetcsv($fd, 10000, ",");
while($fd) while($fd) {
{ $data = fgetcsv($fd, 10000, ",");
$data = fgetcsv($fd, 10000, ","); $login[$i] = $data[0];
$login[$i] = $data[0]; $mdp[$i] = $data[1];
$mdp[$i] = $data[1]; $bienvenue[$i] = parse_string(stripcslashes($data[2]));
$bienvenue[$i] = parse_string(stripcslashes($data[2])); }
} fclose($fd);
fclose($fd);
// vide le cache // vide le cache
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date du passé header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date du passé
if (!isset($PHP_AUTH_USER)) if (!isset($PHP_AUTH_USER)) {
{ header("WWW-Authenticate: Basic realm=\"iphp\" ");
header("WWW-Authenticate: Basic realm=\"iphp\" "); err401("Action annulée");
err401("Action annulée"); } else {
}
else if ($login[0] == $PHP_AUTH_USER) {
{ echo "bienvenue superuser !";
} else {
if ($login[0] == $PHP_AUTH_USER) while (($login[$Cpt++] != $PHP_AUTH_USER) && ($mdp[$Cpt++] != $PHP_AUTH_PW));
{ echo "bienvenue user !";
echo "bienvenue superuser !";
}
else
{
while (($login[$Cpt++] != $PHP_AUTH_USER) && ($mdp[$Cpt++] != $PHP_AUTH_PW));
echo "bienvenue user !";
}
} }
}
} }
// créé un fichier de log // créé un fichier de log
function addlog($url) function addlog($url)
{ {
$File = "/logs/".str_replace("/","_",$url).".log"; $File = "/logs/".str_replace("/", "_", $url).".log";
// si le fichier n'existe pas, on le crée: // si le fichier n'existe pas, on le crée:
if (!file_exists("$File.csv") ) if (!file_exists("$File.csv")) {
createfile("$File.csv"); createfile("$File.csv");
}
$date = strftime ("%d/%m/%Y", time()); $date = strftime("%d/%m/%Y", time());
$string = sprintf("\"".$date."\",\"".iheure()."\",\"".$_SERVER["REMOTE_ADDR"]."\",\"".$_SERVER["HTTP_REFERER"]."\",\"".$_SERVER["HTTP_USER_AGENT"]."\"\n"); $string = sprintf("\"".$date."\",\"".iheure()."\",\"".$_SERVER["REMOTE_ADDR"]."\",\"".$_SERVER["HTTP_REFERER"]."\",\"".$_SERVER["HTTP_USER_AGENT"]."\"\n");
$fp = fopen("$File.csv","a"); $fp = fopen("$File.csv", "a");
fwrite($fp,$string); fwrite($fp, $string);
fclose($fp); fclose($fp);
strfile($File); strfile($File);
} }
// convertit les entités HTML en charactères spéciaux // convertit les entités HTML en charactères spéciaux
function html2ascii($inputstring) function html2ascii($inputstring)
{ {
$outputstring = eregi_replace("&eacute;","é",$inputstring); $outputstring = eregi_replace("&eacute;", "é", $inputstring);
$outputstring = eregi_replace("&egrave;","è",$outputstring); $outputstring = eregi_replace("&egrave;", "è", $outputstring);
$outputstring = eregi_replace("&agrave;","à",$outputstring); $outputstring = eregi_replace("&agrave;", "à", $outputstring);
$outputstring = eregi_replace("&ugrave;","ù",$outputstring); $outputstring = eregi_replace("&ugrave;", "ù", $outputstring);
$outputstring = eregi_replace("&ocirc;","ô",$outputstring); $outputstring = eregi_replace("&ocirc;", "ô", $outputstring);
$outputstring = eregi_replace("&ecirc;","ê",$outputstring); $outputstring = eregi_replace("&ecirc;", "ê", $outputstring);
$outputstring = eregi_replace("&icirc;","î",$outputstring); $outputstring = eregi_replace("&icirc;", "î", $outputstring);
$outputstring = eregi_replace("&acirc;","â",$outputstring); $outputstring = eregi_replace("&acirc;", "â", $outputstring);
$outputstring = eregi_replace("&ucirc;","û",$outputstring); $outputstring = eregi_replace("&ucirc;", "û", $outputstring);
$outputstring = eregi_replace("&iuml;","ï",$outputstring); $outputstring = eregi_replace("&iuml;", "ï", $outputstring);
$outputstring = eregi_replace("&euml;","ë",$outputstring); $outputstring = eregi_replace("&euml;", "ë", $outputstring);
$outputstring = eregi_replace("&ccedil;","ç",$outputstring); $outputstring = eregi_replace("&ccedil;", "ç", $outputstring);
$outputstring = eregi_replace("&nbsp;"," ",$outputstring); $outputstring = eregi_replace("&nbsp;", " ", $outputstring);
$outputstring = eregi_replace("&quot;","\"",$outputstring); $outputstring = eregi_replace("&quot;", "\"", $outputstring);
$outputstring = eregi_replace("&amp;","&",$outputstring); $outputstring = eregi_replace("&amp;", "&", $outputstring);
return $outputstring; return $outputstring;
} }
// ------------------------------------------------------------------------- // // ------------------------------------------------------------------------- //
@ -349,28 +352,24 @@ fichier .dat
// $filename est le nom du fichier créé pour stocker les informations // $filename est le nom du fichier créé pour stocker les informations
function nb_visiteurs_connecte($time,$filename="/tmp/nbweb.dat") function nb_visiteurs_connecte($time, $filename = "/tmp/nbweb.dat")
{ {
$ip = getenv("REMOTE_ADDR"); $ip = getenv("REMOTE_ADDR");
$date=time(); $date = time();
$i=0; $i = 0;
$ii=0; $ii = 0;
$bool=0; $bool = 0;
if(file_exists($filename)) if(file_exists($filename)) {
{ if($fichier = fopen($filename, "r")) {
if($fichier=fopen($filename,"r")) while(!feof($fichier)) {
{ $ligne = fgets($fichier, 4096);
while(!feof($fichier)) $tab = explode("|", $ligne);
{
$ligne=fgets($fichier,4096);
$tab=explode("|",$ligne);
if($tab[1]>0) if($tab[1] > 0) {
{ $tab_de_tab[$i][0] = $tab[0];
$tab_de_tab[$i][0]=$tab[0]; $tab_de_tab[$i][1] = $tab[1];
$tab_de_tab[$i][1]=$tab[1];
$i++; $i++;
} }
@ -379,43 +378,34 @@ function nb_visiteurs_connecte($time,$filename="/tmp/nbweb.dat")
} }
} }
for($j=0;$j<$i;$j++) for($j = 0;$j < $i;$j++) {
{ if(($date - chop($tab_de_tab[$j][1])) > $time) {
if(($date-chop($tab_de_tab[$j][1]))>$time)
{
//on ne fait rien //on ne fait rien
} } else {
else $tab_de_tab_actualise[$ii][0] = $tab_de_tab[$j][0];
{ $tab_de_tab_actualise[$ii][1] = chop($tab_de_tab[$j][1]);
$tab_de_tab_actualise[$ii][0]=$tab_de_tab[$j][0];
$tab_de_tab_actualise[$ii][1]=chop($tab_de_tab[$j][1]);
$ii++; $ii++;
} }
} }
for($j=0;$j<$ii;$j++) for($j = 0;$j < $ii;$j++) {
{ if($tab_de_tab_actualise[$j][0] == $ip) {
if($tab_de_tab_actualise[$j][0]==$ip) $bool = 1;
{
$bool=1;
} }
} }
if($bool==0) if($bool == 0) {
{ $tab_de_tab_actualise[$ii][0] = $ip;
$tab_de_tab_actualise[$ii][0]=$ip; $tab_de_tab_actualise[$ii][1] = $date;
$tab_de_tab_actualise[$ii][1]=$date;
$ii++; $ii++;
} }
if($fichier=fopen($filename,"w")) if($fichier = fopen($filename, "w")) {
{ for($j = 0;$j < $ii;$j++) {
for($j=0;$j<$ii;$j++) fputs($fichier, chop($tab_de_tab_actualise[$j][0]));
{ fputs($fichier, "|");
fputs($fichier,chop($tab_de_tab_actualise[$j][0])); fputs($fichier, chop($tab_de_tab_actualise[$j][1]));
fputs($fichier,"|"); fputs($fichier, "\n");
fputs($fichier,chop($tab_de_tab_actualise[$j][1]));
fputs($fichier,"\n");
} }
fclose($fichier); fclose($fichier);
@ -423,7 +413,3 @@ function nb_visiteurs_connecte($time,$filename="/tmp/nbweb.dat")
return $ii; return $ii;
} }
?>

View File

@ -1,5 +1,5 @@
<?php <?php
if (!isset($theme))
$theme = "default";
?> if (!isset($theme)) {
$theme = "default";
}

View File

@ -1,73 +1,69 @@
<?php <?php
/* fixe un timer */ /* fixe un timer */
function settimer($TimerName,$String) function settimer($TimerName, $String)
{ {
$FileTimerName = "modules/timers/$TimerName.csv"; $FileTimerName = "modules/timers/$TimerName.csv";
if (strftime("%m", time()) < 10) if (strftime("%m", time()) < 10) {
$Date = strftime ("%Y%0m%d%H%M%S", time()); $Date = strftime("%Y%0m%d%H%M%S", time());
else } else {
$Date = strftime ("%Y%m%d%H%M%S", time()); $Date = strftime("%Y%m%d%H%M%S", time());
}
$fp = fopen("$FileTimerName","w+"); $fp = fopen("$FileTimerName", "w+");
$Ligne = sprintf("\"".$Date."\",\"".$String."\"\n"); $Ligne = sprintf("\"".$Date."\",\"".$String."\"\n");
fwrite($fp,$Ligne); fwrite($fp, $Ligne);
fclose($fp); fclose($fp);
// echo "fichier créé<br>"; // echo "fichier créé<br>";
} }
/* renvoie $string si le temps n'est pas écoulé, ou FALSE sinon */ /* renvoie $string si le temps n'est pas écoulé, ou FALSE sinon */
function timer($TimerName,$TimerNb) function timer($TimerName, $TimerNb)
{ {
$FileTimerN = "modules/timers/$TimerName.csv"; $FileTimerN = "modules/timers/$TimerName.csv";
if (strftime("%m", time()) < 10) if (strftime("%m", time()) < 10) {
$Date = strftime ("%Y%0m%d%H%M%S", time()); $Date = strftime("%Y%0m%d%H%M%S", time());
else } else {
$Date = strftime ("%Y%m%d%H%M%S", time()); $Date = strftime("%Y%m%d%H%M%S", time());
}
if (!file_exists("$FileTimerN")) if (!file_exists("$FileTimerN")) {
{ $timer = false;
$timer = FALSE; } else {
// lecture de la date stockée dans le fichier
$fp = fopen("$FileTimerN", "r");
$data = fgetcsv($fp, 1000, ",");
fclose($fp);
$FileDate = $data[0];
$Date = strftime("%Y%m%d%H%M%S", time());
$String = $data[1];
if ($Date >= ($FileDate + $TimerNb)) {
// echo "date dépassée:".$Date." >= ".($FileDate+$TimerNb)."<br>";
$timer = false;
} else {
$timer = $String;
} }
else }
{
// lecture de la date stockée dans le fichier
$fp = fopen("$FileTimerN","r");
$data = fgetcsv($fp, 1000, ",");
fclose($fp);
$FileDate = $data[0]; return $timer;
$Date = strftime ("%Y%m%d%H%M%S", time());
$String = $data[1];
if ($Date >= ($FileDate+$TimerNb))
{
// echo "date dépassée:".$Date." >= ".($FileDate+$TimerNb)."<br>";
$timer = FALSE;
}
else
{
$timer = $String;
}
}
return $timer;
} }
/* renvoie l'heure française (format HH:MM) */ /* renvoie l'heure française (format HH:MM) */
function iheure() function iheure()
{ {
if ($HTTP_GET_VARS["IFRANCE"] =="1") if ($HTTP_GET_VARS["IFRANCE"] == "1") {
$iheure=$I_HEURE_UK; $iheure = $I_HEURE_UK;
else } else {
$iheure= date("H:i"); $iheure = date("H:i");
return $iheure; }
return $iheure;
} }
?>

453
index.php
View File

@ -1,13 +1,14 @@
<?php <?php
$page=$_GET["page"]; $page = $_GET["page"];
$modulepage=$_GET["modulepage"]; $modulepage = $_GET["modulepage"];
function getmicrotime(){ function getmicrotime()
list($usec, $sec) = explode(" ",microtime()); {
return ((float)$usec + (float)$sec); list($usec, $sec) = explode(" ", microtime());
} return ((float)$usec + (float)$sec);
$startgen = getmicrotime (); }
$startgen = getmicrotime();
// visites // visites
//$lvc_include_dir = 'visit/include/'; //$lvc_include_dir = 'visit/include/';
//include($lvc_include_dir.'new-visitor.inc.php3'); //include($lvc_include_dir.'new-visitor.inc.php3');
@ -23,19 +24,23 @@ $couleur = RandomColors(); */
include "include/theme.inc.php"; include "include/theme.inc.php";
if (file_exists("themes/$theme/theme.php")) if (file_exists("themes/$theme/theme.php")) {
include "themes/$theme/theme.php"; include "themes/$theme/theme.php";
else } else {
include "themes/e/theme.php"; include "themes/e/theme.php";
}
if (!isset($section) || $section == "") if (!isset($section) || $section == "") {
$section="pages"; $section = "pages";
}
if ($page == "index") if ($page == "index") {
$page="menu"; $page = "menu";
}
if (isset($File)) if (isset($File)) {
$FileNews = $File; $FileNews = $File;
}
// if (!isset($FileNews)) // if (!isset($FileNews))
// $FileNews = "modules/news/news"; // $FileNews = "modules/news/news";
@ -54,225 +59,225 @@ include "include/body.inc.php";
echo "<table border='0' width='100%'><tr>\n"; // tableau principal echo "<table border='0' width='100%'><tr>\n"; // tableau principal
// *************** gauche ***************** // *************** gauche *****************
if (!isset($left) || ($left ==1)) if (!isset($left) || ($left == 1)) {
{ //echo "<div class='ltop'>";
//echo "<div class='ltop'>"; $cachefile = "tmp/left.cache.html";
$cachefile = "tmp/left.cache.html"; if (!file_exists($cachefile) || (filemtime($cachefile) < filemtime("modules/liens"))) {
if (!file_exists($cachefile) || (filemtime($cachefile) < filemtime("modules/liens"))) $cachecontent = file_get_contents("http://tma.tourmentine.com/left.php");
{ $fp = fopen($cachefile, "w");
$cachecontent=file_get_contents("http://tma.tourmentine.com/left.php"); fwrite($fp, $cachecontent);
$fp = fopen($cachefile,"w"); fclose($fp);
fwrite($fp,$cachecontent); }
fclose($fp); echo "\n\n<!-- Partie mise en cache (".date("d/m/Y@H:i:s", filemtime($cachefile)).")-->\n\n";
} echo "<td valign='top' class='colonne'>\n";
echo "\n\n<!-- Partie mise en cache (".date("d/m/Y@H:i:s", filemtime($cachefile)).")-->\n\n"; include $cachefile;
echo "<td valign='top' class='colonne'>\n"; echo "</td>\n";
include $cachefile; echo "\n<!-- fin Partie mise en cache -->\n\n";
echo "</td>\n"; // echo "</div>";
echo "\n<!-- fin Partie mise en cache -->\n\n";
// echo "</div>";
} }
// ************** centre **************** // ************** centre ****************
echo "<td class='pageseparator'><img src='/modules/share/trans.gif' alt='' title='' width='20' class='border0' /></td><td valign='top'>\n"; echo "<td class='pageseparator'><img src='/modules/share/trans.gif' alt='' title='' width='20' class='border0' /></td><td valign='top'>\n";
// --- gestion des modules --- // --- gestion des modules ---
if (isset($modulepage)) if (isset($modulepage)) {
{ //include "include/logo.inc.php";
switch($modulepage) {
case "sondage":
extract($themeset, EXTR_OVERWRITE);
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode = "</font>";
$bodyclass = "centerbody";
$module = "sondage";
$titre = "Résultats du sondage";
include "modules/magicbox.php";
break;
case "goldbook":
unset($NbMaxPost);
extract($themeset, EXTR_OVERWRITE);
$headstartcode = "<font size='3' class='centerhead'>";
$headendcode = "</font>";
$bodyclass = "centerbody";
$module = "goldbook";
$titre = "Livre d'or";
$GoldbookFile = "goldbook";
echo "<br /><br /><br />\n<div align='center'><h1>Laissez-nous un message...</h1></div><br />\n";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "addnews":
extract($themeset, EXTR_OVERWRITE);
if (isset($File)) {
$FileNews = $File;
}
// fichier de news par défaut
if (!isset($FileNews)) {
$FileNews = "modules/news/news";
}
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode = "</font>";
$bodyclass = "centerbody";
$module = "admin/addnews";
$titre = "Ajout d'une nouvelle";
include "modules/magicbox.php";
unset($bodyclass);
// unset($NewsFile);
// unset($File);
break;
case "affnews":
if (isset($File)) {
$FileNews = $File;
}
if (!isset($FileNews)) {
$FileNews = "modules/news/pipnews";
}
// appel direct du module affnews ; magicbox est appelé par ce dernier
include "modules/affnews.php";
unset($NewsFile);
// unset($newsnb);
//unset($File);
break;
case "commentnews":
if (isset($File)) {
$FileNews = $File;
}
if (!isset($FileNews)) {
$FileNews = "modules/news/news";
}
$modulepage = "affnews";
$start = $idnews;
$NbMaxNews = 1;
include "modules/affnews.php";
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode = "</font>";
$bodyclass = "centerbody";
$module = "forum";
$titre = "Commentaires";
//$goldbooktype = "comment";
$forumfile = "$FileNews.$idnews.forum.csv";
include "modules/magicbox.php";
//$modulepage = "commentbook";
// unset($goldbooktype);
// unset($NewsFile);
// unset($File);
break;
case "print":
if (isset($File)) {
$FileNews = $File;
}
if (!isset($FileNews)) {
$FileNews = "modules/news/news";
}
include "modules/print.php";
break;
case "backend":
if (isset($File)) {
$FileNews = $File;
}
if (!isset($FileNews)) {
$FileNews = "modules/news/news";
}
include "modules/genbackend.php";
break;
case "chatlogin":
extract($themeset, EXTR_OVERWRITE);
$bodyclass = "centerbody";
$module = "kikchat/login";
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode = "</font>";
$titre = "Bienvenue sur le chat";
$bodystartcode = "<div align=center>";
$bodyendcode = "</div>";
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "kikchat":
extract($themeset, EXTR_OVERWRITE);
$bodyclass = "centerbody";
$module = "kikchat/post";
$titre = "Kik it Productions' Live Chat";
$headlien = "http://www.kik-it.com";
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "affimage":
extract($themeset, EXTR_OVERWRITE);
// $headstartcode = "<font name='verdana' size=4 class='centerhead'>";
// $headendcode ="</font>";
$bodyclass = "centerbody";
$module = "affimages";
$titre = $image;
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
default:
include "pages/menu.php";
}
} else {
// ---- affichage des pages ----
//echo "<div align='center'>";
if (isset($section) && isset($page) && $page != "menu") {
// si url éronnée, affiche la page d'acceuil
if (file_exists("$section/$page.php")) {
/* echo "<div id='left'>"; */
include_once "$section/$page.php";
/* echo "</div>";*/
} else {
include_once "pages/menu.php";
}
echo "<div class='center'><a href='/'>&gt;Retour à la page d'accueil&lt;</a><br /></div>";
} else {
//include "include/logo.inc.php"; //include "include/logo.inc.php";
switch($modulepage) include "pages/menu.php";
{ }
case "sondage":
extract($themeset, EXTR_OVERWRITE);
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode ="</font>";
$bodyclass="centerbody";
$module = "sondage";
$titre = "Résultats du sondage";
include "modules/magicbox.php";
break;
case "goldbook":
unset($NbMaxPost);
extract($themeset, EXTR_OVERWRITE);
$headstartcode = "<font size='3' class='centerhead'>";
$headendcode ="</font>";
$bodyclass = "centerbody";
$module = "goldbook";
$titre = "Livre d'or";
$GoldbookFile = "goldbook";
echo "<br /><br /><br />\n<div align='center'><h1>Laissez-nous un message...</h1></div><br />\n";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "addnews":
extract($themeset, EXTR_OVERWRITE);
if (isset($File))
$FileNews = $File;
// fichier de news par défaut
if (!isset($FileNews))
$FileNews = "modules/news/news";
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode ="</font>";
$bodyclass = "centerbody";
$module = "admin/addnews";
$titre = "Ajout d'une nouvelle";
include "modules/magicbox.php";
unset($bodyclass);
// unset($NewsFile);
// unset($File);
break;
case "affnews":
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
$FileNews = "modules/news/pipnews";
// appel direct du module affnews ; magicbox est appelé par ce dernier
include "modules/affnews.php";
unset($NewsFile);
// unset($newsnb);
//unset($File);
break;
case "commentnews":
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
$FileNews = "modules/news/news";
$modulepage="affnews";
$start=$idnews;
$NbMaxNews=1;
include "modules/affnews.php";
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode ="</font>";
$bodyclass = "centerbody";
$module = "forum";
$titre = "Commentaires";
//$goldbooktype = "comment";
$forumfile = "$FileNews.$idnews.forum.csv";
include "modules/magicbox.php";
//$modulepage = "commentbook";
// unset($goldbooktype);
// unset($NewsFile);
// unset($File);
break;
case "print":
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
$FileNews = "modules/news/news";
include "modules/print.php";
break;
case "backend":
if (isset($File))
$FileNews = $File;
if (!isset($FileNews))
$FileNews = "modules/news/news";
include "modules/genbackend.php";
break;
case "chatlogin":
extract($themeset, EXTR_OVERWRITE);
$bodyclass = "centerbody";
$module = "kikchat/login";
$headstartcode = "<font name='verdana' size='3' class='centerhead'>";
$headendcode ="</font>";
$titre = "Bienvenue sur le chat";
$bodystartcode="<div align=center>";
$bodyendcode="</div>";
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "kikchat":
extract($themeset, EXTR_OVERWRITE);
$bodyclass = "centerbody";
$module = "kikchat/post";
$titre = "Kik it Productions' Live Chat";
$headlien = "http://www.kik-it.com";
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
case "affimage":
extract($themeset, EXTR_OVERWRITE);
// $headstartcode = "<font name='verdana' size=4 class='centerhead'>";
// $headendcode ="</font>";
$bodyclass = "centerbody";
$module = "affimages";
$titre = $image;
$footerbox = 1;
$footerboxtext = "Retour au menu";
$footerlien = "/";
include "modules/magicbox.php";
unset($bodyclass);
break;
default:
include "pages/menu.php";
}
}
else
{
// ---- affichage des pages ----
//echo "<div align='center'>";
if (isset($section) && isset($page) && $page != "menu")
{
// si url éronnée, affiche la page d'acceuil
if (file_exists("$section/$page.php"))
{
/* echo "<div id='left'>"; */
include_once "$section/$page.php";
/* echo "</div>";*/
}
else
include_once "pages/menu.php";
echo "<div class='center'><a href='/'>&gt;Retour à la page d'accueil&lt;</a><br /></div>";
}
else
{
//include "include/logo.inc.php";
include "pages/menu.php";
}
} }
echo "</td>"; echo "</td>";
// *************** droite ************************* // *************** droite *************************
/*if (!isset($right) || ($right == 1)) /*if (!isset($right) || ($right == 1))
{ {
echo "<td><img src='/modules/share/trans.gif' alt='' width='20' /></td>"; echo "<td><img src='/modules/share/trans.gif' alt='' width='20' /></td>";
echo "<td align='right' valign='top' width='135'>"; echo "<td align='right' valign='top' width='135'>";
include_once "right.php"; include_once "right.php";
echo "</td>"; echo "</td>";

View File

@ -1,10 +1,11 @@
<?php <?php
include_once "include/theme.inc.php"; include_once "include/theme.inc.php";
if (file_exists("themes/$theme/theme.php")) if (file_exists("themes/$theme/theme.php")) {
include_once "themes/$theme/theme.php"; include_once "themes/$theme/theme.php";
else } else {
include_once "themes/e/theme.php"; include_once "themes/e/theme.php";
}
$module = "liens"; $module = "liens";
$titre = "La gare d'Avallon"; $titre = "La gare d'Avallon";
$FileName = "modules/liens/lagare.csv"; $FileName = "modules/liens/lagare.csv";
@ -40,4 +41,3 @@ $FileName = "modules/liens/themes.csv";
//include "modules/magicbox.php"; //include "modules/magicbox.php";
unset($titleonly); unset($titleonly);
unset($FileNews); unset($FileNews);
?>

View File

@ -1,5 +1,3 @@
<?php <?php
echo "<div align=center valign=middle><img src='images/ayo73/$image' width=134 alt='$image' title='$image'></div>"; echo "<div align=center valign=middle><img src='images/ayo73/$image' width=134 alt='$image' title='$image'></div>";
?>

View File

@ -11,9 +11,10 @@ include_once "include/standard.inc.php";
extract($_POST); extract($_POST);
if (isset($GoldbookFile) && $GoldbookFile != "") if (isset($GoldbookFile) && $GoldbookFile != "") {
$GoldbookFile="default"; $GoldbookFile = "default";
}
$Cpt = 0; $Cpt = 0;
echo "<form method='post' action='"; echo "<form method='post' action='";
@ -24,10 +25,10 @@ echo "<form method='post' action='";
$gbparam = "<input name='File' value='$File' type='hidden'>\n<input name='idnews' value='".$MyNews["index"]."' type='hidden'>"; $gbparam = "<input name='File' value='$File' type='hidden'>\n<input name='idnews' value='".$MyNews["index"]."' type='hidden'>";
} }
else*/ else*/
//echo "?modulepage=goldbook'>\n"; //echo "?modulepage=goldbook'>\n";
echo "/livre.html'>\n"; echo "/livre.html'>\n";
echo "<div class='center'><table border='0'><tr><td> echo "<div class='center'><table border='0'><tr><td>
<input type='hidden' name='param' value='postgb' /> <input type='hidden' name='param' value='postgb' />
<input name='GoldBookFile' value='".$GoldbookFile."' type='hidden' /> <input name='GoldBookFile' value='".$GoldbookFile."' type='hidden' />
<i>Nom/Pseudo (facultatif)</i>:<input name=\"VName\" type='text' size='20' value=\"\" /></td><td> <i>Nom/Pseudo (facultatif)</i>:<input name=\"VName\" type='text' size='20' value=\"\" /></td><td>
@ -37,82 +38,77 @@ else*/
<input name='piejacon' value='piejacon' class='piejacon' /> <input name='piejacon' value='piejacon' class='piejacon' />
<tr><td class='right'><input name=\"Ecrire\" value='Ecrire' type='submit' /></td><td><input name=\"Effacer\" value=\"Effacer\" type=\"reset\" /></td></tr></table></div></form> <tr><td class='right'><input name=\"Ecrire\" value='Ecrire' type='submit' /></td><td><input name=\"Effacer\" value=\"Effacer\" type=\"reset\" /></td></tr></table></div></form>
<h6><i>Notes</i>: Les balises HTML ne sont pas autorisés dans la boite de saisie. Les messages sont modérés, ils n'apparaitront donc pas immédiatement sur le livre d'or.</h6>\n"; <h6><i>Notes</i>: Les balises HTML ne sont pas autorisés dans la boite de saisie. Les messages sont modérés, ils n'apparaitront donc pas immédiatement sur le livre d'or.</h6>\n";
// <hr></td></tr>\n"; // <hr></td></tr>\n";
unset($File); unset($File);
// si le fichier n'existe pas, on le crée: // si le fichier n'existe pas, on le crée:
if (!(file_exists("modules/goldbook/$GoldbookFile.csv"))) if (!(file_exists("modules/goldbook/$GoldbookFile.csv"))) {
{ $goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "w+");
$goldbook = fopen("modules/goldbook/$GoldbookFile.csv","w+"); fclose($goldbook);
fclose($goldbook);
} }
// ajout des messages // ajout des messages
if ($param == "postgb") if ($param == "postgb") {
{ if ($VMessage != "" && isset($_POST['piejacon'])) {
if ($VMessage != "" && isset($_POST['piejacon'])) $date = strftime("%d/%m/%Y", time());
{ $iheure = date("H:i");
$date = strftime ("%d/%m/%Y", time()); $VMessage = ereg_replace("<", "&lt;", $VMessage);
$iheure= date("H:i"); $VMessage = ereg_replace(">", "&gt;", $VMessage);
$VMessage = ereg_replace("<","&lt;",$VMessage); $VMessage = parse_string(stripcslashes($VMessage));
$VMessage = ereg_replace(">","&gt;",$VMessage); $VMessage = ereg_replace("\n", "<br />", $VMessage);
$VMessage = parse_string(stripcslashes($VMessage)); $VMessage = ereg_replace("&", "&amp;", $VMessage);
$VMessage = ereg_replace("\n","<br />",$VMessage); $gbline = sprintf("\"".$date."\",\"".$iheure."\",\"".htmlspecialchars($VName)."\",\"".$VEmail."\",\"".$VMessage."\"\n");
$VMessage = ereg_replace("&","&amp;",$VMessage); $goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "a");
$gbline = sprintf("\"".$date."\",\"".$iheure."\",\"".htmlspecialchars($VName)."\",\"".$VEmail."\",\"".$VMessage."\"\n"); fwrite($goldbook, $gbline);
$goldbook = fopen("modules/goldbook/$GoldbookFile.csv","a"); fclose($goldbook);
fwrite($goldbook,$gbline); mail("n@tourmentine.com", "[TMA] post livre d'or ", $VMessage, "From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion());
fclose($goldbook); // mail("bernard@legaillart.com","[TMA] post livre d'or ",$VMessage,"From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion());
mail("n@tourmentine.com","[TMA] post livre d'or ",$VMessage,"From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion()); //unlink("$GoldbookFile.dat");
// mail("bernard@legaillart.com","[TMA] post livre d'or ",$VMessage,"From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion()); }
//unlink("$GoldbookFile.dat");
}
} }
// lecture des messages // lecture des messages
$goldbook = fopen("modules/goldbook/$GoldbookFile.csv","r"); $goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "r");
while ($data = fgetcsv($goldbook, 1000, ",")) while ($data = fgetcsv($goldbook, 1000, ",")) {
{ $VisitorDate[$Cpt] = $data[0];
$VisitorDate[$Cpt] = $data[0]; $VisitorTime[$Cpt] = $data[1];
$VisitorTime[$Cpt] = $data[1]; $VisitorName[$Cpt] = stripcslashes($data[2]);
$VisitorName[$Cpt] = stripcslashes($data[2]); $VisitorEmail[$Cpt] = $data[3];
$VisitorEmail[$Cpt] = $data[3]; $VisitorMessage[$Cpt++] = stripcslashes($data[4]);
$VisitorMessage[$Cpt++] = stripcslashes($data[4]);
} }
fclose($goldbook); fclose($goldbook);
unset($data); unset($data);
unset($goldbook); unset($goldbook);
// si $NbMaxPost n'est pas défini, ou si il est plus grand que le nombre d'éléments, on l'ajuste à ce nombre // si $NbMaxPost n'est pas défini, ou si il est plus grand que le nombre d'éléments, on l'ajuste à ce nombre
if ((!isset($NbMaxPost)) || ($NbMaxPost > $Cpt)) if ((!isset($NbMaxPost)) || ($NbMaxPost > $Cpt)) {
{ $NbMaxPost = $Cpt;
$NbMaxPost = $Cpt;
} }
// affichage des messages // affichage des messages
echo "<hr /><div class='left'>"; echo "<hr /><div class='left'>";
if ($NbMaxPost) if ($NbMaxPost) {
for($i=0;$i<=$NbMaxPost-1;$i++) for($i = 0;$i <= $NbMaxPost - 1;$i++) {
{ if ($VisitorName[$i] == "") {
if ($VisitorName[$i] == "") $VisitorName[$i] = "Anonyme";
$VisitorName[$i] = "Anonyme"; }
if ($VisitorEmail[$i] != "") if ($VisitorEmail[$i] != "") {
$Visiteur = "<a href='mailto:".$VisitorEmail[$i]."'>".$VisitorName[$i]."</a>"; $Visiteur = "<a href='mailto:".$VisitorEmail[$i]."'>".$VisitorName[$i]."</a>";
else } else {
$Visiteur = $VisitorName[$i]; $Visiteur = $VisitorName[$i];
}
echo "<i>Posté le ".$VisitorDate[$i]." à ".$VisitorTime[$i]." par <b>".$Visiteur."</b></i>: echo "<i>Posté le ".$VisitorDate[$i]." à ".$VisitorTime[$i]." par <b>".$Visiteur."</b></i>:
<br />« ".$VisitorMessage[$i]." »<br/>"; <br />« ".$VisitorMessage[$i]." »<br/>";
if ($i != ($NbMaxPost-1)) if ($i != ($NbMaxPost - 1)) {
echo "<hr />"; echo "<hr />";
}
}
} }
echo "</div>"; echo "</div>";
$footerbox = 0; $footerbox = 0;
//$footerboxtext = "Retour au menu"; //$footerboxtext = "Retour au menu";
//$footerlien = "/"; //$footerlien = "/";
?>

View File

@ -10,92 +10,80 @@ MAJ : 04/02/04
$Cpt = 0; $Cpt = 0;
// si le fichier n'existe pas, on le crée: // si le fichier n'existe pas, on le crée:
if (!(file_exists($FileName))) if (!(file_exists($FileName))) {
{ $fp = fopen($FileName, "w+");
$fp = fopen($FileName,"w+"); fclose($fp);
fclose($fp);
} }
$fp = fopen($FileName,"r"); $fp = fopen($FileName, "r");
while ($data = fgetcsv($fp, 1000, ",")) while ($data = fgetcsv($fp, 1000, ",")) {
{ $level[$Cpt] = $data[0];
$level[$Cpt] = $data[0]; $linkname[$Cpt] = stripcslashes($data[1]);
$linkname[$Cpt] = stripcslashes($data[1]); $url[$Cpt] = stripcslashes($data[2]);
$url[$Cpt] = stripcslashes($data[2]); $url[$Cpt] = preg_replace("/THEME_COURANT/", $theme, $url[$Cpt]);
$url[$Cpt] = preg_replace("/THEME_COURANT/",$theme,$url[$Cpt]); $comment[$Cpt] = stripcslashes($data[3]);
$comment[$Cpt] = stripcslashes($data[3]); $target[$Cpt] = stripcslashes($data[4]);
$target[$Cpt] = stripcslashes($data[4]); $Cpt++;
$Cpt++;
} }
fclose($fp); fclose($fp);
// si $NbMaxPost n'est pas défini, ou si il est plus grand que le nombre d'éléments, on l'ajuste à ce nombre // si $NbMaxPost n'est pas défini, ou si il est plus grand que le nombre d'éléments, on l'ajuste à ce nombre
if ((!isset($NbMaxPost)) || ($NbMaxPost > $Cpt)) if ((!isset($NbMaxPost)) || ($NbMaxPost > $Cpt)) {
{ $NbMaxPost = $Cpt;
$NbMaxPost = $Cpt;
} }
include "include/theme.inc.php"; include "include/theme.inc.php";
if ($Cpt <= 0) if ($Cpt <= 0) {
{ echo "<b>Aucun lien pour l'instant</b><br />";
echo "<b>Aucun lien pour l'instant</b><br />"; } else {
} if (isset($TypeListe) && ($TypeListe == "deroul")) {
else echo "<div class='center'><br /><form action='modules/redirect.php' method='get' target=\"_blank\">";
{ ?>
if (isset($TypeListe) && ($TypeListe == "deroul"))
{
echo "<div class='center'><br /><form action='modules/redirect.php' method='get' target=\"_blank\">";
?>
<?php <?php
echo "<select name='ListeLiens'>"; echo "<select name='ListeLiens'>";
for($i=0;$i<=$NbMaxPost-1;$i++) for($i = 0;$i <= $NbMaxPost - 1;$i++) {
{ echo "<option value='$url[$i]'>$linkname[$i]</option>\n";
echo "<option value='$url[$i]'>$linkname[$i]</option>\n"; }
}
echo "</select><br /><br /><input type='submit' value='Go!'></form></div>"; echo "</select><br /><br /><input type='submit' value='Go!'></form></div>";
} } else {
else
{
// affichage des liens // affichage des liens
echo "<div class='left'>"; echo "<div class='left'>";
for($i=0;$i<=$NbMaxPost-1;$i++) for($i = 0;$i <= $NbMaxPost - 1;$i++) {
{ if ($level[$i] == 1) {
if ($level[$i] == 1) echo "<b>";
{ if ($url[$i] != "") {
echo "<b>"; echo "<a href='".$url[$i]."' title='".$comment[$i]."'";
if ($url[$i] != "") if ($target[$i] != "") {
{ echo " target=\"$target[$i]\"";
echo "<a href='".$url[$i]."' title='".$comment[$i]."'"; }
if ($target[$i] != "") echo ">".$linkname[$i]."</a>";
echo " target=\"$target[$i]\""; } else {
echo ">".$linkname[$i]."</a>"; echo $linkname[$i];
}
else echo $linkname[$i];
echo "</b><br />\n";
}
else
{
echo "&nbsp;&nbsp;";
if ($url[$i] != "")
{
echo "<a href='".$url[$i]."' title='".$comment[$i]."' ";
if ($target[$i] != "")
echo " target=\"$target[$i]\"";
echo ">".$linkname[$i]."</a>";
}
else echo $linkname[$i];
echo "<br />\n";
}
} }
echo "</div>"; echo "</b><br />\n";
} else {
echo "&nbsp;&nbsp;";
if ($url[$i] != "") {
echo "<a href='".$url[$i]."' title='".$comment[$i]."' ";
if ($target[$i] != "") {
echo " target=\"$target[$i]\"";
}
echo ">".$linkname[$i]."</a>";
} else {
echo $linkname[$i];
}
echo "<br />\n";
}
} }
echo "</div>";
}
} }
unset($FileName); unset($FileName);
unset($NbMaxPost); unset($NbMaxPost);
?> ?>

View File

@ -9,75 +9,82 @@ MAJ : 23/09/01
// include "include/theme.inc.php"; // include "include/theme.inc.php";
extract($themeset, EXTR_OVERWRITE); extract($themeset, EXTR_OVERWRITE);
if (!isset($largeur)) if (!isset($largeur)) {
$largeur="100%"; $largeur = "100%";
}
if ($boxborder == "") if ($boxborder == "") {
$boxborder = 0; $boxborder = 0;
}
echo "\n<!-- // magicbox : module $module // -->\n"; echo "\n<!-- // magicbox : module $module // -->\n";
echo "<!-- // (titre: $titre) // -->\n\n"; echo "<!-- // (titre: $titre) // -->\n\n";
// ************* header ******************** // ************* header ********************
echo "<table width='$largeur' border='$boxborder' class='"; echo "<table width='$largeur' border='$boxborder' class='";
if ($boxborder != 0) if ($boxborder != 0) {
echo "bordure'>\n"; echo "bordure'>\n";
else } else {
echo "magicbox'>\n"; echo "magicbox'>\n";
}
echo " <tr>\n <td align='center'"; echo " <tr>\n <td align='center'";
//if (isset($headcolor) && $headcolor != "") //if (isset($headcolor) && $headcolor != "")
//echo " bgcolor='#".$headcolor; //echo " bgcolor='#".$headcolor;
echo " class='"; echo " class='";
if (isset($headclass)) if (isset($headclass)) {
echo $headclass; echo $headclass;
else } else {
echo "head"; echo "head";
}
echo "'>\n"; echo "'>\n";
echo "$headstartcode"; echo "$headstartcode";
if (isset($headlien)) if (isset($headlien)) {
echo "<a href='$headlien' title='$headtitle'>$titre</a>"; echo "<a href='$headlien' title='$headtitle'>$titre</a>";
else } else {
echo "$titre"; echo "$titre";
}
echo "$headendcode\n"; echo "$headendcode\n";
// ************** body ******************* // ************** body *******************
echo "</td>\n</tr>\n<tr>\n<td class='magicbox'>"; echo "</td>\n</tr>\n<tr>\n<td class='magicbox'>";
echo "<div class='center'>\n<table border='0' width='90%' class='"; echo "<div class='center'>\n<table border='0' width='90%' class='";
if (isset($bodyclass)) if (isset($bodyclass)) {
echo $bodyclass; echo $bodyclass;
else } else {
echo "magicbox"; echo "magicbox";
}
echo "'>\n<tr>\n<td>"; echo "'>\n<tr>\n<td>";
echo "$bodystartcode"; echo "$bodystartcode";
include "modules/".$module.".php"; include "modules/".$module.".php";
echo "$bodyendcode"; echo "$bodyendcode";
echo "</td>\n</tr>\n</table>\n</div>\n</td>\n</tr>"; echo "</td>\n</tr>\n</table>\n</div>\n</td>\n</tr>";
if (isset($footerbox) && ($footerbox == 1)) if (isset($footerbox) && ($footerbox == 1)) {
{ echo "<tr><td align='center'";
echo "<tr><td align='center'"; if (isset($headcolor) && $headcolor != "") {
if (isset($headcolor) && $headcolor != "") //echo " bgcolor='#".$headcolor;
//echo " bgcolor='#".$headcolor;
echo " class='"; echo " class='";
if (isset($headclass)) }
echo $headclass; if (isset($headclass)) {
else echo $headclass;
echo "head"; } else {
echo "'>\n"; echo "head";
}
echo "'>\n";
echo "$footerstartcode"; echo "$footerstartcode";
if (isset($footerlien)) if (isset($footerlien)) {
{ echo "<a href='$footerlien' title='$footertitle' ";
echo "<a href='$footerlien' title='$footertitle' "; if (isset($footerlientype) && $footerlientype == "ext") {
if (isset($footerlientype) && $footerlientype == "ext") echo " target='blank'";
echo " target='blank'"; }
echo ">$footerboxtext</a>\n"; echo ">$footerboxtext</a>\n";
} } else {
else echo "$footerboxtext";
echo "$footerboxtext"; }
echo "$footerendcode\n"; echo "$footerendcode\n";
echo " </td>\n</tr>\n"; echo " </td>\n</tr>\n";
} }
echo "</table>\n<br />\n"; echo "</table>\n<br />\n";
@ -100,5 +107,3 @@ unset($footerendcode);
unset($footerbox); unset($footerbox);
unset($footerboxtext); unset($footerboxtext);
unset($footerlien); unset($footerlien);
?>

View File

@ -1,9 +1,11 @@
<?php <?php
require_once "../include/standard.inc.php"; require_once "../include/standard.inc.php";
require_once "../include/news.inc.php"; require_once "../include/news.inc.php";
function PrintPage($FileNews,$newsnb) { function PrintPage($FileNews, $newsnb)
$MyNews=getnews($FileNews,$newsnb); {
$MyNews = getnews($FileNews, $newsnb);
echo " echo "
<html> <html>
<head><title>PIP</title></head> <head><title>PIP</title></head>
@ -18,13 +20,15 @@ function PrintPage($FileNews,$newsnb) {
Posté le ".$MyNews["date"]." à ".$MyNews["heure"]." par <b>".$MyNews["nom"]." Posté le ".$MyNews["date"]." à ".$MyNews["heure"]." par <b>".$MyNews["nom"]."
</center><table><tr>"; </center><table><tr>";
if (isset($MyNews["icone"]) && ($MyNews["icone"] != "")) if (isset($MyNews["icone"]) && ($MyNews["icone"] != "")) {
echo "<td align=center width=100><img src=".$MyNews["icone"]." width=80 heigh=80 alt=''></td><td>&nbsp;&nbsp;</td>\n"; echo "<td align=center width=100><img src=".$MyNews["icone"]." width=80 heigh=80 alt=''></td><td>&nbsp;&nbsp;</td>\n";
}
if (isset($cadrenews) && ($cadrenews != 0)) if (isset($cadrenews) && ($cadrenews != 0)) {
echo "<td bgcolor=$blanc border=1 cellpadding=3 cellspacing=3 width=100%>\n"; echo "<td bgcolor=$blanc border=1 cellpadding=3 cellspacing=3 width=100%>\n";
else } else {
echo "<td>\n"; echo "<td>\n";
}
echo $MyNews["message"]."</td></tr></table> echo $MyNews["message"]."</td></tr></table>
</font> </font>
@ -42,6 +46,4 @@ function PrintPage($FileNews,$newsnb) {
"; ";
} }
PrintPage($File,$newsnb); PrintPage($File, $newsnb);
?>

View File

@ -1,18 +1,18 @@
<br /><br /><br /> <br /><br /><br />
<h1>Images de la gare d'Avallon (13/12/2008)</h1> <h1>Images de la gare d'Avallon (13/12/2008)</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/131208/p_avallon_131208_1.jpg","images/131208/avallon_131208_1.jpg","13/12/08-1"); ?></td> <td><?php litebox("images/131208/p_avallon_131208_1.jpg", "images/131208/avallon_131208_1.jpg", "13/12/08-1"); ?></td>
<td><?php litebox("images/131208/p_avallon_131208_2.jpg","images/131208/avallon_131208_2.jpg","13/12/08-2"); ?></td> <td><?php litebox("images/131208/p_avallon_131208_2.jpg", "images/131208/avallon_131208_2.jpg", "13/12/08-2"); ?></td>
<td><?php litebox("images/131208/p_avallon_131208_3.jpg","images/131208/avallon_131208_3.jpg","13/12/08-3"); ?></td> <td><?php litebox("images/131208/p_avallon_131208_3.jpg", "images/131208/avallon_131208_3.jpg", "13/12/08-3"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/131208/p_avallon_131208_4.jpg","images/131208/avallon_131208_4.jpg","13/12/08-4"); ?></td> <td><?php litebox("images/131208/p_avallon_131208_4.jpg", "images/131208/avallon_131208_4.jpg", "13/12/08-4"); ?></td>
<td><?php litebox("images/131208/p_avallon_131208_5.jpg","images/131208/avallon_131208_5.jpg","13/12/08-5"); ?></td> <td><?php litebox("images/131208/p_avallon_131208_5.jpg", "images/131208/avallon_131208_5.jpg", "13/12/08-5"); ?></td>
</tr> </tr>
</table></div> </table></div>
<br /> <br />

View File

@ -1,42 +1,42 @@
<br /><br /><br /> <br /><br /><br />
<h1>Images de la gare d'Avallon (2011)</h1> <h1>Images de la gare d'Avallon (2011)</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0021.jpg","images/avallon2011/DSCF0021.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0021.jpg", "images/avallon2011/DSCF0021.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0023.jpg","images/avallon2011/DSCF0023.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0023.jpg", "images/avallon2011/DSCF0023.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0024.jpg","images/avallon2011/DSCF0024.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0024.jpg", "images/avallon2011/DSCF0024.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0025.jpg","images/avallon2011/DSCF0025.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0025.jpg", "images/avallon2011/DSCF0025.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0026.jpg","images/avallon2011/DSCF0026.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0026.jpg", "images/avallon2011/DSCF0026.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0027.jpg","images/avallon2011/DSCF0027.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0027.jpg", "images/avallon2011/DSCF0027.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0028.jpg","images/avallon2011/DSCF0028.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0028.jpg", "images/avallon2011/DSCF0028.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0029.jpg","images/avallon2011/DSCF0029.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0029.jpg", "images/avallon2011/DSCF0029.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0030.jpg","images/avallon2011/DSCF0030.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0030.jpg", "images/avallon2011/DSCF0030.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0035.jpg","images/avallon2011/DSCF0035.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0035.jpg", "images/avallon2011/DSCF0035.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0036.jpg","images/avallon2011/DSCF0036.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0036.jpg", "images/avallon2011/DSCF0036.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0056.jpg","images/avallon2011/DSCF0056.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0056.jpg", "images/avallon2011/DSCF0056.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0057.jpg","images/avallon2011/DSCF0057.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0057.jpg", "images/avallon2011/DSCF0057.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0058.jpg","images/avallon2011/DSCF0058.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0058.jpg", "images/avallon2011/DSCF0058.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0059.jpg","images/avallon2011/DSCF0059.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0059.jpg", "images/avallon2011/DSCF0059.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0060.jpg","images/avallon2011/DSCF0060.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0060.jpg", "images/avallon2011/DSCF0060.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0061.jpg","images/avallon2011/DSCF0061.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0061.jpg", "images/avallon2011/DSCF0061.jpg", ""); ?></td>
<td><?php openimg("images/avallon2011/p_DSCF0062.jpg","images/avallon2011/DSCF0062.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0062.jpg", "images/avallon2011/DSCF0062.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/avallon2011/p_DSCF0063.jpg","images/avallon2011/DSCF0063.jpg",""); ?></td> <td><?php openimg("images/avallon2011/p_DSCF0063.jpg", "images/avallon2011/DSCF0063.jpg", ""); ?></td>
</tr> </tr>
</table></div> </table></div>

View File

@ -6,12 +6,12 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/1/p_vue_g01.jpg","/images/carte/1/vue_g01.jpg","vue_g01.jpg"); ?></td> <td><?php litebox("/images/carte/1/p_vue_g01.jpg", "/images/carte/1/vue_g01.jpg", "vue_g01.jpg"); ?></td>
<td><?php litebox("/images/carte/1/p_pano01.jpg","/images/carte/1/pano01.jpg","pano01.jpg"); ?></td> <td><?php litebox("/images/carte/1/p_pano01.jpg", "/images/carte/1/pano01.jpg", "pano01.jpg"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/carte/1/p_pano02.jpg","/images/carte/1/pano02.jpg","pano02.jpg"); ?></td> <td><?php litebox("/images/carte/1/p_pano02.jpg", "/images/carte/1/pano02.jpg", "pano02.jpg"); ?></td>
<td><?php litebox("/images/carte/1/p_pano03.jpg","/images/carte/1/pano03.jpg","pano03.jpg"); ?></td> <td><?php litebox("/images/carte/1/p_pano03.jpg", "/images/carte/1/pano03.jpg", "pano03.jpg"); ?></td>
</tr> </tr>
</table> </table>

View File

@ -6,18 +6,18 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/2/p_bv01.jpg","/images/carte/2/bv01.jpg","bv01.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_bv01.jpg", "/images/carte/2/bv01.jpg", "bv01.jpg"); ?></td>
<td><?php litebox("/images/carte/2/p_B_V.jpg","/images/carte/2/B_V.jpg","B_V.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_B_V.jpg", "/images/carte/2/B_V.jpg", "B_V.jpg"); ?></td>
<td><?php litebox("/images/carte/2/p_buvette.jpg","/images/carte/2/buvette.jpg","buvette.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_buvette.jpg", "/images/carte/2/buvette.jpg", "buvette.jpg"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/carte/2/p_batiment.jpg","/images/carte/2/batiment.jpg","batiment.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_batiment.jpg", "/images/carte/2/batiment.jpg", "batiment.jpg"); ?></td>
<td><?php litebox("/images/carte/2/p_marquise.jpg","/images/carte/2/marquise.jpg","marquise.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_marquise.jpg", "/images/carte/2/marquise.jpg", "marquise.jpg"); ?></td>
<td><?php litebox("/images/carte/2/p_vue_g02.jpg","/images/carte/2/vue_g02.jpg","vue_g02.jpg"); ?></td> <td><?php litebox("/images/carte/2/p_vue_g02.jpg", "/images/carte/2/vue_g02.jpg", "vue_g02.jpg"); ?></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td><?php litebox("/images/carte/2/p_Feb22018.jpg","/images/carte/2/Feb22018.jpg","autorail TER"); ?></td> <td><?php litebox("/images/carte/2/p_Feb22018.jpg", "/images/carte/2/Feb22018.jpg", "autorail TER"); ?></td>
<td></td> <td></td>
</tr></table> </tr></table>
<hr /> <hr />

View File

@ -6,9 +6,9 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/3/p_vue_g06.jpg","/images/carte/3/vue_g06.jpg","vue_g06.jpg"); ?></td> <td><?php litebox("/images/carte/3/p_vue_g06.jpg", "/images/carte/3/vue_g06.jpg", "vue_g06.jpg"); ?></td>
<td><?php litebox("/images/carte/3/p_vue_g07.jpg","/images/carte/3/vue_g07.jpg","vue_g07.jpg"); ?></td> <td><?php litebox("/images/carte/3/p_vue_g07.jpg", "/images/carte/3/vue_g07.jpg", "vue_g07.jpg"); ?></td>
<td><?php litebox("/images/carte/3/p_vue_g08.jpg","/images/carte/3/vue_g08.jpg","vue_g08.jpg"); ?></td> <td><?php litebox("/images/carte/3/p_vue_g08.jpg", "/images/carte/3/vue_g08.jpg", "vue_g08.jpg"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -10,19 +10,19 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/4/p_Dec25_26.JPG","/images/carte/4/Dec25_26.JPG","Dec25_26.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_26.JPG", "/images/carte/4/Dec25_26.JPG", "Dec25_26.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_27.JPG","/images/carte/4/Dec25_27.JPG","Dec25_27.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_27.JPG", "/images/carte/4/Dec25_27.JPG", "Dec25_27.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_28.JPG","/images/carte/4/Dec25_28.JPG","Dec25_28.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_28.JPG", "/images/carte/4/Dec25_28.JPG", "Dec25_28.JPG"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/carte/4/p_Dec25_29.JPG","/images/carte/4/Dec25_29.JPG","Dec25_29.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_29.JPG", "/images/carte/4/Dec25_29.JPG", "Dec25_29.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_30.JPG","/images/carte/4/Dec25_30.JPG","Dec25_30.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_30.JPG", "/images/carte/4/Dec25_30.JPG", "Dec25_30.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_31.JPG","/images/carte/4/Dec25_31.JPG","Dec25_31.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_31.JPG", "/images/carte/4/Dec25_31.JPG", "Dec25_31.JPG"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/carte/4/p_Dec25_32.JPG","/images/carte/4/Dec25_32.JPG","Dec25_32.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_32.JPG", "/images/carte/4/Dec25_32.JPG", "Dec25_32.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_33.JPG","/images/carte/4/Dec25_33.JPG","Dec25_33.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_33.JPG", "/images/carte/4/Dec25_33.JPG", "Dec25_33.JPG"); ?></td>
<td><?php litebox("/images/carte/4/p_Dec25_34.JPG","/images/carte/4/Dec25_34.JPG","Dec25_34.JPG"); ?></td> <td><?php litebox("/images/carte/4/p_Dec25_34.JPG", "/images/carte/4/Dec25_34.JPG", "Dec25_34.JPG"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,8 +6,8 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/6/p_vue_g14.jpg","/images/carte/6/vue_g14.jpg","vue_g14.jpg"); ?></td> <td><?php litebox("/images/carte/6/p_vue_g14.jpg", "/images/carte/6/vue_g14.jpg", "vue_g14.jpg"); ?></td>
<td><?php litebox("/images/carte/6/p_vue_g15.jpg","/images/carte/6/vue_g15.jpg","vue_g15.jpg"); ?></td> <td><?php litebox("/images/carte/6/p_vue_g15.jpg", "/images/carte/6/vue_g15.jpg", "vue_g15.jpg"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,8 +6,8 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20"> <table width="25%" cellspacing="20">
<tr> <tr>
<td><?php openimg("/images/carte/7/p_vue_g16.jpg","/images/carte/7/vue_g16.jpg","vue_g16.jpg"); ?></td> <td><?php openimg("/images/carte/7/p_vue_g16.jpg", "/images/carte/7/vue_g16.jpg", "vue_g16.jpg"); ?></td>
<td><?php openimg("/images/carte/7/p_vue_g17.jpg","/images/carte/7/vue_g17.jpg","vue_g17.jpg"); ?></td> <td><?php openimg("/images/carte/7/p_vue_g17.jpg", "/images/carte/7/vue_g17.jpg", "vue_g17.jpg"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,18 +6,18 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20"> <table width="25%" cellspacing="20">
<tr> <tr>
<td><?php openimg("/images/carte/8/p_vue_g18.jpg","/images/carte/8/vue_g18.jpg","vue_g18.jpg"); ?></td> <td><?php openimg("/images/carte/8/p_vue_g18.jpg", "/images/carte/8/vue_g18.jpg", "vue_g18.jpg"); ?></td>
<td><?php openimg("/images/carte/8/p_vue_g19.jpg","/images/carte/8/vue_g19.jpg","vue_g19.jpg"); ?></td> <td><?php openimg("/images/carte/8/p_vue_g19.jpg", "/images/carte/8/vue_g19.jpg", "vue_g19.jpg"); ?></td>
<td><?php openimg("/images/carte/8/p_vue_g20.jpg","/images/carte/8/vue_g20.jpg","vue_g20.jpg"); ?></td> <td><?php openimg("/images/carte/8/p_vue_g20.jpg", "/images/carte/8/vue_g20.jpg", "vue_g20.jpg"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("/images/carte/8/p_Feb22011.jpg","/images/carte/8/Feb22011.jpg","La rame de paris dans un petit matin brumeux et froid de février 2004, composée de voitures Corail Plus."); ?></td> <td><?php openimg("/images/carte/8/p_Feb22011.jpg", "/images/carte/8/Feb22011.jpg", "La rame de paris dans un petit matin brumeux et froid de février 2004, composée de voitures Corail Plus."); ?></td>
<td><?php openimg("/images/carte/8/p_Feb22012.jpg","/images/carte/8/Feb22012.jpg","La BB2000 en week-end sous la brume"); ?></td> <td><?php openimg("/images/carte/8/p_Feb22012.jpg", "/images/carte/8/Feb22012.jpg", "La BB2000 en week-end sous la brume"); ?></td>
<td><?php openimg("/images/carte/8/p_Feb22014.jpg","/images/carte/8/Feb22014.jpg","Les vestiges du dépot"); ?></td> <td><?php openimg("/images/carte/8/p_Feb22014.jpg", "/images/carte/8/Feb22014.jpg", "Les vestiges du dépot"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("/images/carte/8/p_Feb22016.jpg","/images/carte/8/Feb22016.jpg","Le tas de férailles inutile, pour l'inspiration de tout modéliste"); ?></td> <td><?php openimg("/images/carte/8/p_Feb22016.jpg", "/images/carte/8/Feb22016.jpg", "Le tas de férailles inutile, pour l'inspiration de tout modéliste"); ?></td>
<td><?php openimg("/images/carte/8/p_Feb22011.jpg","/images/carte/8/Feb22011.jpg","Emplacement de la fosse du pont tournant, comblée. La rotonde a malheureusement disparue.."); ?></td> <td><?php openimg("/images/carte/8/p_Feb22011.jpg", "/images/carte/8/Feb22011.jpg", "Emplacement de la fosse du pont tournant, comblée. La rotonde a malheureusement disparue.."); ?></td>
</tr></table> </tr></table>
<hr /> <hr />
<a href="/carte.html">cliquez ici pour revenir &agrave; la carte</a> <a href="/carte.html">cliquez ici pour revenir &agrave; la carte</a>

View File

@ -8,14 +8,14 @@
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/carte/marchandise/p_vue_g09.jpg","/images/carte/marchandise/vue_g09.jpg","vue_g09.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_vue_g09.jpg", "/images/carte/marchandise/vue_g09.jpg", "vue_g09.jpg"); ?></td>
<td><?php litebox("/images/carte/marchandise/p_vue_g12b.jpg","/images/carte/marchandise/vue_g12b.jpg","vue_g12b.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_vue_g12b.jpg", "/images/carte/marchandise/vue_g12b.jpg", "vue_g12b.jpg"); ?></td>
<td><?php litebox("/images/carte/marchandise/p_gm1.jpg","/images/carte/marchandise/gm1.jpg","gm1.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_gm1.jpg", "/images/carte/marchandise/gm1.jpg", "gm1.jpg"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/carte/marchandise/p_vue_g11.jpg","/images/carte/marchandise/vue_g11.jpg","vue_g11.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_vue_g11.jpg", "/images/carte/marchandise/vue_g11.jpg", "vue_g11.jpg"); ?></td>
<td><?php litebox("/images/carte/marchandise/p_bois.jpg","/images/carte/marchandise/bois.jpg","bois.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_bois.jpg", "/images/carte/marchandise/bois.jpg", "bois.jpg"); ?></td>
<td><?php litebox("/images/carte/marchandise/p_bois1.jpg","/images/carte/marchandise/bois1.jpg","bois1.jpg"); ?></td> <td><?php litebox("/images/carte/marchandise/p_bois1.jpg", "/images/carte/marchandise/bois1.jpg", "bois1.jpg"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -1,18 +1,18 @@
<br /><br /><br /> <br /><br /><br />
<h1>Challenge du club 2015</h1> <h1>Challenge du club 2015</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/challenge2015/p_module_yves.jpg","images/challenge2015/module_yves.jpg","Le module d'Yves"); ?></td> <td><?php litebox("images/challenge2015/p_module_yves.jpg", "images/challenge2015/module_yves.jpg", "Le module d'Yves"); ?></td>
<td><?php litebox("images/challenge2015/p_module_jean_luc.jpg","images/challenge2015/module_jean_luc.jpg","Le module de Jean-Luc"); ?></td> <td><?php litebox("images/challenge2015/p_module_jean_luc.jpg", "images/challenge2015/module_jean_luc.jpg", "Le module de Jean-Luc"); ?></td>
<td><?php litebox("images/challenge2015/p_module_alain.jpg","images/challenge2015/module_alain.jpg","Le module d'Alain"); ?></td> <td><?php litebox("images/challenge2015/p_module_alain.jpg", "images/challenge2015/module_alain.jpg", "Le module d'Alain"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/challenge2015/p_module_pascal.jpg","images/challenge2015/module_pascal.jpg","Le module de Pascal"); ?></td> <td><?php litebox("images/challenge2015/p_module_pascal.jpg", "images/challenge2015/module_pascal.jpg", "Le module de Pascal"); ?></td>
<td><?php litebox("images/challenge2015/p_module_bernard.jpg","images/challenge2015/module_bernard.jpg","Le module de Bernard"); ?></td> <td><?php litebox("images/challenge2015/p_module_bernard.jpg", "images/challenge2015/module_bernard.jpg", "Le module de Bernard"); ?></td>
</tr> </tr>
</table></div> </table></div>
<br /> <br />

View File

@ -1,19 +1,19 @@
<br /><br /><br /> <br /><br /><br />
<h1>Forum des associations 2017</h1> <h1>Forum des associations 2017</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/forum2017/p_20170909_131847.jpg","images/forum2017/20170909_131847.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_131847.jpg", "images/forum2017/20170909_131847.jpg", ""); ?></td>
<td><?php litebox("images/forum2017/p_20170909_131915.jpg","images/forum2017/20170909_131915.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_131915.jpg", "images/forum2017/20170909_131915.jpg", ""); ?></td>
<td><?php litebox("images/forum2017/p_20170909_131953.jpg","images/forum2017/20170909_131953.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_131953.jpg", "images/forum2017/20170909_131953.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/forum2017/p_20170909_161127.jpg","images/forum2017/20170909_161127.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_161127.jpg", "images/forum2017/20170909_161127.jpg", ""); ?></td>
<td><?php litebox("images/forum2017/p_20170909_161236.jpg","images/forum2017/20170909_161236.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_161236.jpg", "images/forum2017/20170909_161236.jpg", ""); ?></td>
<td><?php litebox("images/forum2017/p_20170909_161320.jpg","images/forum2017/20170909_161320.jpg",""); ?></td> <td><?php litebox("images/forum2017/p_20170909_161320.jpg", "images/forum2017/20170909_161320.jpg", ""); ?></td>
</tr> </tr>
</table></div> </table></div>
<br /> <br />

View File

@ -6,18 +6,18 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/i.reduit/p_gare1.jpg","images/i.reduit/gare1.jpg","gare1"); ?></td> <td><?php litebox("images/i.reduit/p_gare1.jpg", "images/i.reduit/gare1.jpg", "gare1"); ?></td>
<td><?php litebox("images/i.reduit/p_gare2.jpg","images/i.reduit/gare2.jpg","gare2"); ?></td> <td><?php litebox("images/i.reduit/p_gare2.jpg", "images/i.reduit/gare2.jpg", "gare2"); ?></td>
<td><?php litebox("images/i.reduit/p_gare3.jpg","images/i.reduit/gare3.jpg","gare3"); ?></td> <td><?php litebox("images/i.reduit/p_gare3.jpg", "images/i.reduit/gare3.jpg", "gare3"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/i.reduit/p_gare4.jpg","images/i.reduit/gare4.jpg","gare4"); ?></td> <td><?php litebox("images/i.reduit/p_gare4.jpg", "images/i.reduit/gare4.jpg", "gare4"); ?></td>
<td><?php litebox("images/i.reduit/p_gare5.jpg","images/i.reduit/gare5.jpg","gare5"); ?></td> <td><?php litebox("images/i.reduit/p_gare5.jpg", "images/i.reduit/gare5.jpg", "gare5"); ?></td>
<td><?php litebox("images/i.reduit/p_gare6.jpg","images/i.reduit/gare6.jpg","gare6"); ?></td> <td><?php litebox("images/i.reduit/p_gare6.jpg", "images/i.reduit/gare6.jpg", "gare6"); ?></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td><?php litebox("images/i.reduit/p_gare7.jpg","images/i.reduit/gare7.jpg","gare7"); ?></td> <td><?php litebox("images/i.reduit/p_gare7.jpg", "images/i.reduit/gare7.jpg", "gare7"); ?></td>
<td></td> <td></td>
</tr> </tr>
</table></div> </table></div>

View File

@ -6,18 +6,18 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/i.reduit/p_gare1.jpg","images/i.reduit/gare1.jpg","gare1"); ?></td> <td><?php litebox("images/i.reduit/p_gare1.jpg", "images/i.reduit/gare1.jpg", "gare1"); ?></td>
<td><?php litebox("images/i.reduit/p_gare2.jpg","images/i.reduit/gare2.jpg","gare2"); ?></td> <td><?php litebox("images/i.reduit/p_gare2.jpg", "images/i.reduit/gare2.jpg", "gare2"); ?></td>
<td><?php litebox("images/i.reduit/p_gare3.jpg","images/i.reduit/gare3.jpg","gare3"); ?></td> <td><?php litebox("images/i.reduit/p_gare3.jpg", "images/i.reduit/gare3.jpg", "gare3"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/i.reduit/p_gare4.jpg","images/i.reduit/gare4.jpg","gare4"); ?></td> <td><?php litebox("images/i.reduit/p_gare4.jpg", "images/i.reduit/gare4.jpg", "gare4"); ?></td>
<td><?php litebox("images/i.reduit/p_gare5.jpg","images/i.reduit/gare5.jpg","gare5"); ?></td> <td><?php litebox("images/i.reduit/p_gare5.jpg", "images/i.reduit/gare5.jpg", "gare5"); ?></td>
<td><?php litebox("images/i.reduit/p_gare6.jpg","images/i.reduit/gare6.jpg","gare6"); ?></td> <td><?php litebox("images/i.reduit/p_gare6.jpg", "images/i.reduit/gare6.jpg", "gare6"); ?></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>
<td><?php litebox("images/i.reduit/p_gare7.jpg","images/i.reduit/gare7.jpg","gare7"); ?></td> <td><?php litebox("images/i.reduit/p_gare7.jpg", "images/i.reduit/gare7.jpg", "gare7"); ?></td>
<td></td> <td></td>
</tr> </tr>
</table></div> </table></div>

View File

@ -1,29 +1,29 @@
<br /><br /><br /> <br /><br /><br />
<h1>Images de la gare d'Avallon</h1> <h1>Images de la gare d'Avallon</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("images/m.reel/BV.jpg","images/i.reel/BV.jpg","BV"); ?></td> <td><?php litebox("images/m.reel/BV.jpg", "images/i.reel/BV.jpg", "BV"); ?></td>
<td><?php litebox("images/m.reel/bois.jpg","images/i.reel/bois.jpg","Bois"); ?></td> <td><?php litebox("images/m.reel/bois.jpg", "images/i.reel/bois.jpg", "Bois"); ?></td>
<td><?php litebox("images/m.reel/bois1.jpg","images/i.reel/bois1.jpg","Bois"); ?></td> <td><?php litebox("images/m.reel/bois1.jpg", "images/i.reel/bois1.jpg", "Bois"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/m.reel/chantier.jpg","images/i.reel/chantier.jpg","En chantier..."); ?></td> <td><?php litebox("images/m.reel/chantier.jpg", "images/i.reel/chantier.jpg", "En chantier..."); ?></td>
<td><?php litebox("images/m.reel/gm1.jpg","images/i.reel/gm1.jpg","La gare de marchandise"); ?></td> <td><?php litebox("images/m.reel/gm1.jpg", "images/i.reel/gm1.jpg", "La gare de marchandise"); ?></td>
<td><?php litebox("images/m.reel/gm2.jpg","images/i.reel/gm2.jpg","La gare de marchandise"); ?></td> <td><?php litebox("images/m.reel/gm2.jpg", "images/i.reel/gm2.jpg", "La gare de marchandise"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/m.reel/grue.jpg","images/i.reel/grue.jpg","Une grue"); ?></td> <td><?php litebox("images/m.reel/grue.jpg", "images/i.reel/grue.jpg", "Une grue"); ?></td>
<td><?php litebox("images/m.reel/herbes.jpg","images/i.reel/herbes.jpg","Des herbes"); ?></td> <td><?php litebox("images/m.reel/herbes.jpg", "images/i.reel/herbes.jpg", "Des herbes"); ?></td>
<td><?php litebox("images/m.reel/marquise.jpg","images/i.reel/marquise.jpg","La marquise de la gare"); ?></td> <td><?php litebox("images/m.reel/marquise.jpg", "images/i.reel/marquise.jpg", "La marquise de la gare"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("images/m.reel/panogare.jpg","images/i.reel/panogare.jpg","Panorama"); ?></td> <td><?php litebox("images/m.reel/panogare.jpg", "images/i.reel/panogare.jpg", "Panorama"); ?></td>
<td><?php litebox("images/m.reel/train.jpg","images/i.reel/train.jpg","train.jpg"); ?></td> <td><?php litebox("images/m.reel/train.jpg", "images/i.reel/train.jpg", "train.jpg"); ?></td>
<td><?php litebox("images/m.reel/traind.jpg","images/i.reel/traind.jpg","traind.jpg"); ?></td> <td><?php litebox("images/m.reel/traind.jpg", "images/i.reel/traind.jpg", "traind.jpg"); ?></td>
</tr> </tr>
</table></div> </table></div>
<br /> <br />

View File

@ -1,10 +1,14 @@
<?php <?php
$randimg=rand(1,3); $randimg = rand(1, 3);
switch($randimg) switch($randimg) {
{ case '1': $logo = "yoyo.png";
case '1': $logo="yoyo.png"; $logodesc="Y8000"; break; $logodesc = "Y8000";
case '2': $logo="cc70002.png"; $logodesc="CC70002"; break; break;
case '3': $logo="vapeur.png"; $logodesc="Mallet 030 030T"; case '2': $logo = "cc70002.png";
$logodesc = "CC70002";
break;
case '3': $logo = "vapeur.png";
$logodesc = "Mallet 030 030T";
} }
?> ?>
<br /><br /><br /> <br /><br /><br />

View File

@ -1,13 +1,13 @@
<?php <?php
unset($NbMaxPost);
extract($themeset, EXTR_OVERWRITE); unset($NbMaxPost);
//$headstartcode = "<font size='3' class='centerhead'>"; extract($themeset, EXTR_OVERWRITE);
//$headendcode ="</font>"; //$headstartcode = "<font size='3' class='centerhead'>";
$bodyclass = "centerbody"; //$headendcode ="</font>";
$module = "goldbook"; $bodyclass = "centerbody";
$titre = "Livre d'or"; $module = "goldbook";
$GoldbookFile = "goldbook"; $titre = "Livre d'or";
echo "<br /><br /><br />\n<div class='center'><h1>Laissez-nous un message...</h1></div><br />\n"; $GoldbookFile = "goldbook";
include "modules/magicbox.php"; echo "<br /><br /><br />\n<div class='center'><h1>Laissez-nous un message...</h1></div><br />\n";
unset($bodyclass); include "modules/magicbox.php";
?> unset($bodyclass);

View File

@ -1,43 +1,43 @@
<br /><br /><br /> <br /><br /><br />
<h1>Images de la gare de Lormes (2011)</h1> <h1>Images de la gare de Lormes (2011)</h1>
<?php include "include/note.inc.php"; ?> <?php include "include/note.inc.php"; ?>
<div class='center'> <div class='center'>
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0007.jpg","images/lormes2011/DSCF0007.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0007.jpg", "images/lormes2011/DSCF0007.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0008.jpg","images/lormes2011/DSCF0008.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0008.jpg", "images/lormes2011/DSCF0008.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0009.jpg","images/lormes2011/DSCF0009.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0009.jpg", "images/lormes2011/DSCF0009.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0012.jpg","images/lormes2011/DSCF0012.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0012.jpg", "images/lormes2011/DSCF0012.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0014.jpg","images/lormes2011/DSCF0014.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0014.jpg", "images/lormes2011/DSCF0014.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0015.jpg","images/lormes2011/DSCF0015.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0015.jpg", "images/lormes2011/DSCF0015.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0016.jpg","images/lormes2011/DSCF0016.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0016.jpg", "images/lormes2011/DSCF0016.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0017.jpg","images/lormes2011/DSCF0017.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0017.jpg", "images/lormes2011/DSCF0017.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0018.jpg","images/lormes2011/DSCF0018.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0018.jpg", "images/lormes2011/DSCF0018.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0019.jpg","images/lormes2011/DSCF0019.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0019.jpg", "images/lormes2011/DSCF0019.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0034.jpg","images/lormes2011/DSCF0034.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0034.jpg", "images/lormes2011/DSCF0034.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0047.jpg","images/lormes2011/DSCF0047.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0047.jpg", "images/lormes2011/DSCF0047.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0064.jpg","images/lormes2011/DSCF0064.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0064.jpg", "images/lormes2011/DSCF0064.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0065.jpg","images/lormes2011/DSCF0065.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0065.jpg", "images/lormes2011/DSCF0065.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0066.jpg","images/lormes2011/DSCF0066.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0066.jpg", "images/lormes2011/DSCF0066.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0068.jpg","images/lormes2011/DSCF0068.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0068.jpg", "images/lormes2011/DSCF0068.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0069.jpg","images/lormes2011/DSCF0069.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0069.jpg", "images/lormes2011/DSCF0069.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0070.jpg","images/lormes2011/DSCF0070.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0070.jpg", "images/lormes2011/DSCF0070.jpg", ""); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php openimg("images/lormes2011/p_DSCF0071.jpg","images/lormes2011/DSCF0071.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0071.jpg", "images/lormes2011/DSCF0071.jpg", ""); ?></td>
<td><?php openimg("images/lormes2011/p_DSCF0072.jpg","images/lormes2011/DSCF0072.jpg",""); ?></td> <td><?php openimg("images/lormes2011/p_DSCF0072.jpg", "images/lormes2011/DSCF0072.jpg", ""); ?></td>
</tr> </tr>
</table></div> </table></div>

View File

@ -26,8 +26,8 @@ else if ((myhours >=19) && (myhours <24))
<br /> <br />
<h1>Bienvenue sur notre site.</h1> <h1>Bienvenue sur notre site.</h1>
<?php //include "modules/piwik.php"; ?> <?php //include "modules/piwik.php";?>
<!--<h2>Vous êtes notre <?php //include "modules/visites.php"; ?><sup>&egrave;me</sup> visiteur depuis le 15/01/2004.</h2>--> <!--<h2>Vous êtes notre <?php //include "modules/visites.php";?><sup>&egrave;me</sup> visiteur depuis le 15/01/2004.</h2>-->
<h2>Nous vous souhaitons une agréable visite<script type='text/JavaScript'>document.write(msg);</script>...</h2> <h2>Nous vous souhaitons une agréable visite<script type='text/JavaScript'>document.write(msg);</script>...</h2>
<h3>Veuillez choisir un sujet dans le menu ci-contre.</h3> <h3>Veuillez choisir un sujet dans le menu ci-contre.</h3>
<br /><br /><br /> <br /><br /><br />

View File

@ -6,8 +6,8 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/modules/p_canal.jpg","/images/modules/canal.jpg","Le canal"); ?></td> <td><?php litebox("/images/modules/p_canal.jpg", "/images/modules/canal.jpg", "Le canal"); ?></td>
<td><?php litebox("/images/modules/p_canal2.jpg","/images/modules/canal2.jpg","Le canal"); ?></td> <td><?php litebox("/images/modules/p_canal2.jpg", "/images/modules/canal2.jpg", "Le canal"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,11 +6,11 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/modules/p_chateau.jpg","/images/modules/chateau.jpg","Le chateau"); ?></td> <td><?php litebox("/images/modules/p_chateau.jpg", "/images/modules/chateau.jpg", "Le chateau"); ?></td>
<td><?php litebox("/images/modules/p_chateau2.jpg","/images/modules/chateau2.jpg","Le chateau"); ?></td> <td><?php litebox("/images/modules/p_chateau2.jpg", "/images/modules/chateau2.jpg", "Le chateau"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/modules/p_chateau3.jpg","/images/modules/chateau3.jpg","Le chateau"); ?></td> <td><?php litebox("/images/modules/p_chateau3.jpg", "/images/modules/chateau3.jpg", "Le chateau"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,8 +6,8 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/modules/p_chateaudeau1.jpg","/images/modules/chateaudeau1.jpg","Le chateau d'eau"); ?></td> <td><?php litebox("/images/modules/p_chateaudeau1.jpg", "/images/modules/chateaudeau1.jpg", "Le chateau d'eau"); ?></td>
<td><?php litebox("/images/modules/p_chateaudeau2.jpg","/images/modules/chateaudeau2.jpg","Le chateau d'eau"); ?></td> <td><?php litebox("/images/modules/p_chateaudeau2.jpg", "/images/modules/chateaudeau2.jpg", "Le chateau d'eau"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -6,11 +6,11 @@
<div class="center"> <div class="center">
<table width="25%" cellspacing="20" align="center"> <table width="25%" cellspacing="20" align="center">
<tr> <tr>
<td><?php litebox("/images/modules/p_ferme01.jpg","/images/modules/ferme01.jpg","La ferme (Août 2000)"); ?></td> <td><?php litebox("/images/modules/p_ferme01.jpg", "/images/modules/ferme01.jpg", "La ferme (Août 2000)"); ?></td>
</tr> </tr>
<tr> <tr>
<td><?php litebox("/images/modules/p_ferme02.jpg","/images/modules/ferme02.jpg","La ferme (Octobre 2003)"); ?></td> <td><?php litebox("/images/modules/p_ferme02.jpg", "/images/modules/ferme02.jpg", "La ferme (Octobre 2003)"); ?></td>
<td><?php litebox("/images/modules/p_ferme03.jpg","/images/modules/ferme03.jpg","La ferme (Octobre 2003)"); ?></td> <td><?php litebox("/images/modules/p_ferme03.jpg", "/images/modules/ferme03.jpg", "La ferme (Octobre 2003)"); ?></td>
</tr> </tr>
</table> </table>
<hr /> <hr />

View File

@ -1,4 +1,5 @@
<?php <?php
$themeset["pageimage"] = "/themes/default/fond.jpg"; $themeset["pageimage"] = "/themes/default/fond.jpg";
//$themeset["headcolor"] = "44cc44"; //$themeset["headcolor"] = "44cc44";
$themeset["headcolor"] = "C68484"; $themeset["headcolor"] = "C68484";
@ -6,4 +7,3 @@ $themeset["headcolor"] = "C68484";
$themeset["bodycolor"] = "fffff"; $themeset["bodycolor"] = "fffff";
$themeset["boxborder"] = 1; $themeset["boxborder"] = 1;
$themeset["dirtheme"] = "/themes/default"; $themeset["dirtheme"] = "/themes/default";
?>