<?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;
}
?>
|
Population Clocks All Iraq Casualties Today in Iraq Link to our site!
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 |
|||||
| The Ticking Bomb Fallacy |
|
||||
| Terrorism Defined | |||||
| 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 | |||||
|
|
|||||
|
|
|
||||
|
|||||
|
|||||
|
|
|||||
|
Click the map at left for direct support or click below to visit our store and Support our Public Benefit Nonprofit. |
|||||