<?php



  header("Content-type: application/xml");



  $firstdiv = 1;



  foreach (file('atom.xml') as $line) {



    if (strstr($line, '<?xml-stylesheet ') == $line) {

      $line = str_replace('www.blogger.com/styles','www.atomenabled.org/css',$line);



    } else if (strstr($line, '<feed') == $line) {

      $line = str_replace('version="0.3" ','',$line);

      $line = str_replace('http://purl.org/atom/ns#','http://www.w3.org/2005/Atom',$line);



    } else if (strstr($line, '<link') == $line) {

      if (strstr($line, ' rel="service.')) continue;

      $line = str_replace(' title=""','',$line);



    } else if (strstr($line, '<title') == $line) {

      $line = str_replace('mode="escaped" type="text/html"','type="html"',$line);



    } else if (strstr($line, '<tagline') == $line) {

      $line = str_replace('mode="escaped" type="text/html"','type="html"',$line);

      $line = str_replace('<tagline ','<subtitle ',$line);

      $line = str_replace('tagline>','subtitle>',$line);

      echo $line;

      $line = "<link href=\"http://$_SERVER[SERVER_NAME]/atom.php\" rel=\"self\"/>\n";



    } else if (strstr($line, '<modified') == $line) {

      $line = str_replace('<modified ','<updated ',$line);

      $line = str_replace('modified>','updated>',$line);



    } else if (strstr($line, '<generator') == $line) {

      $line = str_replace(' url="',' uri="',$line);



    } else if (strstr($line, '<info') == $line) {

      continue;



    } else if (strstr($line, '<div ') == $line) {

      if ($firstdiv) {

        if (strstr($line, 'class="info"') == "") {

          $line = str_replace('<div ','<div class="info" ',$line);

        }

        $firstdiv = 0;

      }



    } else if (strstr($line, '</info') == $line) {

      continue;



    } else if (strstr($line, '<entry ') == $line) {

      $line = str_replace('http://purl.org/atom/ns#',

        'http://www.w3.org/2005/Atom',$line);



    } else if (strstr($line, '<issued') == $line) {

      $line = str_replace('<issued ','<published ',$line);

      $line = str_replace('issued>','published>',$line);



    } else if (strstr($line, '<created') == $line) {

      continue;



    } else if (strstr($line, '<content') == $line) {

      $line = str_replace('mode="escaped" type="text/html"',

        'type="html"',$line);

      $line = str_replace('type="application/xhtml+xml"',

        'type="xhtml"',$line);



    }



    echo $line;

  }

?>

RSS Feed Reader

Population Clocks   All Iraq Casualties   Today in Iraq   Link to our site!

Contact us   Jobs   Fair Use             Click on the map to Support This Resource! →→   

 “If the American people heard these stories..."  Bookmark This Page!
The American people deserve accurate information, not only about Iraq. 

Most of the latest research validates the importance of mass media.  Beyond that validation, the research provides some understanding of what tactics and methods might be most effective.  tmf

                   Discussion of research and critical insights regarding:  
 Political Communication, Social Change, & Civic Commitment
   Activism News, Direct Activism, Alternative News, Human Rights, Issues, Jewish Activism, Peace news, Portland Peace Portal 


                                                           
Click here to comment 
The Ticking Bomb Fallacy    The Reading List 
Terrorism Defined

www.AlternativeNewsResource.org/

Activism, Alternative News, Activism Newsletter, Blues, Capital Punishment, Cartoons, Children, Computer Resources, Coretta, Creative Art, Employment, Environment, Human Rights, Impeach, International Peace Resources, Harley, Issues, Jefferson, Library, Logic Martin, Middle East, News, Oregon News, Peace News, Peace Portal, Peace Resources, Political Communication, Rhetoric, Road to Peace, Tutor, Resource Link, Union Resources, Women's Resources, Writing Resource ... or  

         © © Copyright 1995-2009 The Wordsmith Collection  www.WritingResource.org/ , all rights reserved.

Google

 

Web

www.WritingResource.org

www.PeaceResource.com

www.UnionResource.org

"The spread of evil is the symptom of a vacuum. whenever evil wins, it is only by default: by the moral failure of those who evade the fact that there can be no compromise on basic principles."  Ayn Rand 

        Support Portland's Oldest Progressive Newspaper

         © © Copyright 1995-2009 The Wordsmith Collection  www.WritingResource.org/ , all rights reserved.

Support This Resource!

Click the map at left for direct support or click below to visit our store and  Support our Public Benefit Nonprofit.