/* Articles - 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 v2.2 (22 April 2003) : cleanup in the images organization v2.3 (27 July 2003) : bug fix, papers from right articles boxes would not appear when left articles boxes was not active added charset meta tag in the HTML print friendly version if no category for article, remove parenthesis in print friendly option v2.4 (24 September 2003) : added an icon for articles and news added react to an article option added Quick Article Admin Access (by Nicolas Alves) added number of times an article was read (by Nicolas Alves and Laurent Duveau) added ReadDoc() function added ReadDocCounter(), WriteDocCounter() and UpdateDocCounter() functions 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 v3.0 (25 February 2004) : upgraded the printable version (thanks tuture and B@lou) v4.0 (06 December 2004) : added page title (by Jean-Mi) added alt tags to img and removed border tag for non-linked img (by Isa) minimal CSS for a print friendly version (by Isa) added optionnal quick admin and members management(by Nicolas Alves) */ header("Pragma: no-cache"); $chemin = ""; include("inc/includes.inc"); if ($serviz[3] != "on" && $serviz[22] != "on") { exit($web143); } $pg = strip_tags($pg); $prt = strip_tags($prt); if (count(SelectDBFields($typ_art,"a",$pg)) == 1) { ReadDoc($dbbase.$pg); $countit = 1; if ($lng == $lang[0]) { $txtart1 = $fieldb1; $txtprt = strip_tags($fieldb1); $txtart2 = $fieldc1; $txtart3 = $fielda1; } else { $txtart1 = $fieldb2; $txtprt = strip_tags($fieldb2); $txtart2 = $fieldc2; $txtart3 = $fielda2; } $txtart4 = FormatDate($moddate); $txtart5 = FormatDate($creadate); } else { $prt = 0; $countit = 0; $txtart1 = $web35; $txtart2 = $web36; $txtart3 = $web37; $txtart4 = $web37; $txtart5 = $web37; } if (!empty($fieldd2)) { $txtart1 = "".$txtart1; } if (empty($prt)) { if (!empty($txtart3)) $topmess = $txtart3." - ".$txtart1; else $topmess = $txtart1; include("inc/hpage.inc"); htable($txtart1, "100%"); if ($members[0]=="on" && $userprefs[1]=="" && $members[1]=="on") { echo "
".$web342."
[ ".$web343." ]
echo $txtart2; ?>
echo $web95; ?> echo $txtart5 ; ?>
echo $web20; ?> echo $txtart4 ; ?>
echo $web21; ?> echo $txtart3; ?>
if ($serviz[33] == "on" && $countit == 1) {
$artcounter = UpdateDocCounter($pg);
if ($artcounter <= 1) {
$txtcount = $web188;
}
else {
$txtcount = $web189;
}
?>
echo $web190; ?> echo $artcounter." ".$txtcount; ?>
echo $web264; ?> echo $web22; ?>
} if ($serviz[32]=="on" && !empty($serviz[31]) && $serviz[31]==$userprefs[1] && $countit == 1) { ?>echo $site[3]; ?>
echo $txtart2; ?>
} ?>