diff options
author | Wojciech Polak <polak@gnu.org> | 2005-04-09 07:23:43 +0000 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2005-04-09 07:23:43 +0000 |
commit | f7f11513da7faa3ca7f1652d1c6de63804f9fadc (patch) | |
tree | 8bf5554c17b78d506d7d8e212c681f857edd2bb8 | |
parent | 33672a806ebee9ac03b667184471dc19161dcfa3 (diff) | |
download | blogright-f7f11513da7faa3ca7f1652d1c6de63804f9fadc.tar.gz blogright-f7f11513da7faa3ca7f1652d1c6de63804f9fadc.tar.bz2 |
version 1.8b
-rw-r--r-- | blog.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |