Revision: 64
http://picfinity.svn.sourceforge.net/picfinity/?rev=64&view=rev
Author: espadav8
Date: 2007-09-02 10:29:00 -0700 (Sun, 02 Sep 2007)
Log Message:
-----------
Set the header so the page doesn't get cached
Modified Paths:
--------------
trunk/.themes/db/getcomments.php
Modified: trunk/.themes/db/getcomments.php
===================================================================
--- trunk/.themes/db/getcomments.php 2007-09-01 18:00:46 UTC (rev 63)
+++ trunk/.themes/db/getcomments.php 2007-09-02 17:29:00 UTC (rev 64)
@@ -1,6 +1,9 @@
<?php
require_once('../../db.inc');
+ header('Content-Type: text/xml');
+ header("Cache-Control: no-cache, must-revalidate");
+
$image_md5 = mysql_real_escape_string($_GET['md5']);
$query = "
@@ -20,7 +23,6 @@
if ($result)
{
- header('Content-Type: text/xml');
$comments_xml = "<?xml version=\"1.0\"?>"
. "<comments>";
while ($row = mysql_fetch_assoc($result))
@@ -40,7 +42,7 @@
}
else
{
- header('Content-Type: text/xml');
+
echo "<error><message>Error in getting the results</message></error>";
}
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|