/* Guestbook - GuppY PHP Script - version 4.0 CeCILL Copyright (C) 2004-2006 by Laurent Duveau Made by Laurent Duveau, Nicolas Alves, Albert Aymard, Jean-Michel Misrachi, Isabelle Marchina and Team Web site = http://www.freeguppy.org/ e-mail = info@aldweb.com Version History : v1.0 (30 December 2002) : initial release v1.5 (10 January 2003) : addeed target=_new in user's url v1.6 (23 January 2003) : added option to hide on the site the e-mail address of poster v2.0 (27 February 2003) : added encryption of webmaster's e-mail @ (SPAM protection) v2.1 (10 March 2003) : added addslashes() to var in Javascript functions (to avoid errors) v2.2 (22 April 2003) : option for choosing the number of items to display in news, forum threads, links, downloads, FAQ and Guestbook replaced
otherwise IE takes the default font instead of the required one (Thanks Michel)
cleanup in the images organization
v2.3 (27 July 2003) : added direct jump to pages (by Nicolas Alves and Laurent Duveau)
upgraded WriteMailTo() function for better SPAM protection (thanks Michel)
v2.4 (24 September 2003) : added section icon in central boxes
added ReadDoc() function
added GetCurrentDateTime() and FormatDate() function to ease various date and time formatings
reviewed all Files Read & Write functions
secured transfered parameters
created $typ_[name] variables
v4.0 (06 December 2004) : added page title (by Jean-Mi)
added alt tags to img and removed border tag for non-linked img, replaced & by & for better compliance to standards (by Isa)
added new appearance (by Icare)
added new navigation and optionnal quick admin (by Nicolas Alves)
*/
header("Pragma: no-cache");
$chemin = "";
include("inc/includes.inc");
if ($serviz[12] != "on") {
exit($web143);
}
$pg = strip_tags($pg);
$id = strip_tags($id);
if (!empty($pg)) {
if (count(SelectDBFields($typ_guestbk,"a",$pg)) != 0) {
$dbwork = SelectDBFields($typ_guestbk,"a",$pg);
}
else {
$dbwork = array();
}
}
else {
$dbwork = SelectDBFields($typ_guestbk,"a","");
}
@rsort($dbwork);
if ($lng == $lang[0]) {
$i = 0;
}
else {
$i = 10;
}
$topmess = $nom[$i+9];
if ($page[9] != "") {
$topmess = "".$topmess;
}
include("inc/hpage.inc");
htable($topmess, "100%");
echo "
";
if ($members[0]=="on" && $userprefs[1]=="" && $members[12]=="on") {
echo "
".$web342."
[ ".$web343." ]
echo $web39.$fielda1; ?> |
echo $web6." ";
if ($fieldd1 != "on") {
$em = BreakEMail($email);
?>
echo addslashes($author); ?>
}
else {
echo "".$author."";
}
echo " ".$web7." ".FormatDate($creadate);
if ($fieldb1 != "") {
echo " ".$fieldb1.""; } ?> |
echo $fieldc1; ?> if ($serviz[32]=="on" && !empty($serviz[31]) && $serviz[31]==$userprefs[1]) { ?> } ?> |
} ?> | } echo " | "; $nbrpages = 1; $debpg = floor($id/10)*10; $finpg = ceil($id/10)*10; if($debpg==$finpg) { $debpg=($finpg-10); } if($id >$debpg && $id <= $finpg) { $debdeca = $debpg; $findeca = $finpg; if ($nbrceil >= $findeca) { $paq = 10; } else { $paq = $nbrceil-$debdeca; } } if($id >= 11 && $debdeca < $nbrceil) { if(($nbrceil-10+$findeca)>10) { $restpgdeb=10; } else { $restpgdeb=($nbrceil-10+$findeca); } if($restpgdeb > 1) { $txtrestpgdeb = $web340; } else { $txtrestpgdeb = $web341; } ?> " title=" echo $restpgdeb." ".$txtrestpgdeb; ?>" border="0"> } ?> [ for($i = 1; $i <= $paq; $i++) { if ($i+$debdeca <> $id) { ?> echo $nbrpages+$debdeca; ?> } else { ?> echo $nbrpages+$debdeca; ?> } $nbrpages++; } ?> ] if($id <= $findeca && $findeca < $nbrceil) { if(($nbrceil-10-$debdeca)>10) { $restpgfin=10; } else { $restpgfin=($nbrceil-10-$debdeca); } if($restpgfin>1) { $txtrestpgfin = $web337; } else { $txtrestpgfin = $web336; } ?> " title=" echo $restpgfin." ".$txtrestpgfin; ?>" border="0"> } echo" | "; if ($id < $nbrceil) { ?>if ($nbrceil >= 3) { ?> | } } ?> |