aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2005-04-09 07:23:43 +0000
committerWojciech Polak <polak@gnu.org>2005-04-09 07:23:43 +0000
commitf7f11513da7faa3ca7f1652d1c6de63804f9fadc (patch)
tree8bf5554c17b78d506d7d8e212c681f857edd2bb8
parent33672a806ebee9ac03b667184471dc19161dcfa3 (diff)
downloadblogright-f7f11513da7faa3ca7f1652d1c6de63804f9fadc.tar.gz
blogright-f7f11513da7faa3ca7f1652d1c6de63804f9fadc.tar.bz2
version 1.8b
-rw-r--r--blog.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/blog.php b/blog.php
index 4a4803c..4e5f370 100644
--- a/blog.php
+++ b/blog.php
@@ -1,6 +1,6 @@
<?php
-// blogRight! version 1.8
+// blogRight! version 1.8b
// Copyright (C) 2004, 2005 Wojciech Polak.
//
// This program is free software; you can redistribute it and/or modify
@@ -195,7 +195,9 @@ if (isset ($RSS) || isset ($_REQUEST['rss']))
{
$pubDate = date ("D, d M Y H:i:s O", filemtime ($include_files[0]));
- echo '<?xml version="1.0"?>'."\n";
+ header ("Content-Type: text/xml; charset=$charsetEncoding");
+
+ echo '<?xml version="1.0" encoding="'.$charsetEncoding.'"?>'."\n";
echo '<rss version="2.0">'."\n";
echo " <channel>\n";
echo " <title>$rssTitle</title>\n";
@@ -253,6 +255,7 @@ if (isset ($RSS) || isset ($_REQUEST['rss']))
}
else // HTML
{
+ header ("Content-Type: text/html; charset=$charsetEncoding");
echo '<?xml version="1.0" encoding="'.$charsetEncoding.'"?>'."\n";
@include ($datadir.$header_file);

Return to:

Send suggestions and report system problems to the System administrator.