示例#1
0
<?php

header('Content-Type: text/xml; charset=' . strtoupper(rss_header_charset()));
echo "<?xml version=\"1.0\" encoding=\"" . strtolower(rss_header_charset()) . "\"?>\n";
?>
<feed xmlns="http://www.w3.org/2005/Atom">
        <id>urn:<?php 
echo str_replace('.', '-', $_SERVER['HTTP_HOST']) . ":feeds:atom";
?>
</id>
	<title><?php 
echo rss_header_title();
?>
</title>
	<subtitle><?php 
echo rss_header_title();
?>
</subtitle>      
        <link rel="alternate" type="text/html" href="<?php 
echo guessTransportProto() . $_SERVER['HTTP_HOST'] . getPath();
?>
" />
        <link rel="self" type="text/xml" href="<?php 
echo guessTransportProto() . $_SERVER['HTTP_HOST'] . getPath();
?>
?media=atom"/>
        <updated><?php 
echo rss_date('c', getLastModif());
?>
</updated>
	<?php 
示例#2
0
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo rss_header_charset();
?>
" />
	<title><?php 
echo rss_header_title();
?>
</title>
	<meta name="robots" content="<?php 
echo rss_header_robotmeta();
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getExternalThemeFile('css/layout.css');
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getExternalThemeFile('css/look.css');
?>
" />
	<link rel="stylesheet" type="text/css" href="<?php 
echo getPath();
?>
css/print.css" media="print" />
	<?php 
echo rss_scheme_stylesheets();
echo rss_plugin_hook('rss.plugins.stylesheets', null);
if (rss_header_autorefreshtime() > 0 && !getConfig('rss.config.restrictrefresh')) {
    ?>
	<meta http-equiv="refresh"  content="<?php 
    echo rss_header_autorefreshtime();