plugins/SpecialRSS.php
changeset 2 882c793b0f37
parent 1 327d3c7cd3f3
equal deleted inserted replaced
1:327d3c7cd3f3 2:882c793b0f37
   238 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
   238 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
   239 
   239 
   240 function page_Special_RSS()
   240 function page_Special_RSS()
   241 {
   241 {
   242   global $db, $session, $paths, $template, $plugins; // Common objects
   242   global $db, $session, $paths, $template, $plugins; // Common objects
   243   header('Content-type: text/xml; charset=windows-1252'); //application/rss+xml');
   243   header('Content-type: text/xml; charset=utf-8'); //application/rss+xml');
   244   global $aggressive_optimize_html;
   244   global $aggressive_optimize_html;
   245   $aggressive_optimize_html = false;
   245   $aggressive_optimize_html = false;
   246   $session->sid_super = false;
   246   $session->sid_super = false;
   247   if ( $session->auth_level > USER_LEVEL_MEMBER )
   247   if ( $session->auth_level > USER_LEVEL_MEMBER )
   248     $session->auth_level = USER_LEVEL_MEMBER;
   248     $session->auth_level = USER_LEVEL_MEMBER;