Ejemplo n.º 1
0
function parse_one_atom($feed)
{
    global $config_values;
    if (isset($config_values['Settings']['Cache Dir'])) {
        $atom_parser = new myAtomParser($feed['Link'], $config_values['Settings']['Cache Dir']);
    } else {
        $atom_parser = new myAtomParser($feed['Link']);
    }
    if (!($config_values['Global']['Feeds'][$feed['Link']] = $atom_parser->getRawOutput())) {
        _debug("Error creating atom parser for " . $feed['Link'] . "\n", -1);
    } else {
        $config_values['Global']['Feeds'][$feed['Link']]['URL'] = $feed['Link'];
        $config_values['Global']['Feeds'][$feed['Link']]['Feed Type'] = 'Atom';
    }
    return;
}
//SHOW/HIDE 
function toggle_visibility(id) {
   var e = document.getElementById(id);
   if(e.style.display == 'block')
      e.style.display = 'none';
   else
      e.style.display = 'block';
}
//END SHOW/HIDE

</script>
<?php 
//OPEN WEATHER.GOV ATOM FEED
include "class.myatomparser.php";
$url = "http://alerts.weather.gov/cap/wwaatmget.php?x=MIC005&y=1";
$atom_parser = new myAtomParser($url);
$output = $atom_parser->getOutput();
# returns string containing HTML
//END WEATHER.GOV ATOM FEED
//BUTTON SPACER
$s = '<span class="blank">&nbsp;</span>';
//END BUTTON SPACER
?>
<!-- BEGIN DISPLAY OUTPUT -->
  
  <div class="mainwrap">
    <div class="titlewrap">
      Library Computer Access and Retrieval System 
    </div>
  </div>