cvs: php-gtk-web /include shared-manual.inc

From: Date: Wed, 24 Oct 2001 06:55:41 +0000
Subject: cvs: php-gtk-web /include shared-manual.inc
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-124@lists.php.net to get a copy of this message
jimw Wed Oct 24 02:55:41 2001 EDT Modified files: /php-gtk-web/include shared-manual.inc Log: don't try to be cute about last-modified. it doesn't work. Index: php-gtk-web/include/shared-manual.inc diff -u php-gtk-web/include/shared-manual.inc:1.48 php-gtk-web/include/shared-manual.inc:1.49 --- php-gtk-web/include/shared-manual.inc:1.48 Sat Oct 13 17:36:03 2001 +++ php-gtk-web/include/shared-manual.inc Wed Oct 24 02:55:40 2001 @@ -382,26 +382,6 @@ -function manualLastModified($title, $id) { - global $MYSITE, $SCRIPT_FILENAME; -# if (is_primary_site()) { - if ( true ) { - $query = "SELECT UNIX_TIMESTAMP(ts) AS stamp FROM note WHERE sect = '$title' OR sect = '$id' ORDER BY ts DESC limit 1"; - $result_id = @mysql_query($query); - if($result_id && mysql_num_rows($result_id)) { - $t = mysql_fetch_row($result_id); - Header("Last-Modified: ".gmdate("D, d M Y H:i:s",$t[0])." GMT"); - } else { - Header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())." GMT"); - } - if ($result_id) { - mysql_free_result($result_id); - } - } -} - - - function sendManualHeaders($charset,$lang) { global $LANG; $LANG = $lang; @@ -414,9 +394,6 @@ function manualHeader($title,$id="") { global $HTDIG, $LANGUAGES, $LANG, $SIDEBAR_DATA; global $HTTP_GET_VARS, $HTTP_SERVER_VARS; - if (!$HTTP_GET_VARS['rate_id'] && !$HTTP_GET_VARS['rate_note']) { - manualLastModified($title,$id); - } makeBorderTOC($title); commonHeader('Manual: '.$title); # create links to plain html and other languages

« previous php.gtk.webmaster (#124) next »