Beispiel #1
0
 function reply_editons_xml($atom_mode, $newsstand_mode)
 {
     header('Content-Type: application/atom+xml; charset=utf-8');
     global $is_package;
     $is_package = !$atom_mode;
     $edition_ids = $atom_mode ? get_all_atom_edition_ids() : get_all_packaged_edition_ids();
     $internal = FALSE;
     $d = pugpig_get_opds_container($edition_ids, $internal, $atom_mode, $newsstand_mode, array("Created by test script"));
     $d->formatOutput = TRUE;
     echo $d->saveXML();
     exit;
 }
 function reply_editions_xml($atom_mode, $newsstand_mode)
 {
     header('Vary: Authorization');
     header('Content-Type: application/atom+xml; charset=utf-8');
     global $is_package;
     $is_package = !$atom_mode;
     $edition_ids = $atom_mode ? get_all_atom_edition_ids() : get_all_packaged_edition_ids();
     $internal = false;
     $d = pugpig_get_opds_container($edition_ids, $internal, $atom_mode, $newsstand_mode, get_opds_comments());
     $d->formatOutput = true;
     $out = $d->saveXML();
     $static_entries = get_opds_static_entries();
     if (!empty($static_entries)) {
         $out = str_replace('</feed>', $static_entries . "\n</feed>", $out);
     }
     print $out;
     exit;
 }