Пример #1
0
/* ---------------------------------------------------------------------------*
 *                                                                            *
 *                     This file is part of Beaneditor                        * 
 *                                                                            *
 *                                   _/                                       *
 *                                  /o|                                       *
 *                                 |o||                                       *
 *                                 |o||                                       *
 *                                  v\|                                       *
 *                                                                            *
 *                                                                            *
 *  Beaneditor is free software:  you can redistribute it and / or modify it  *
 *  under the terms of the GNU Affero General Public License as published by  *
 *  the Free Software Foundation, either version three of the License or (at  *
 *  your option) any later version.                                           *
 *                                                                            *
 *  Beaneditor is distributed in hope that it will be useful but WITHOUT ANY  *
 *  WARRANTY; without even the implied warranty of MERCHANTABILTY or FITNESS  *
 *  FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for  *
 *  more details.                                                             *
 *                                                                            *
 *  You should have received a copy of the GNU Affero General Public License  *
 *  along with Beaneditor. If not, see <http://www.gnu.org/licenses/>.        *
 *                                                                            * 
 *----------------------------------------------------------------------------*/
include "../settings.php";
include "../inc/inc.php";
$last = (int) $_GET['last'];
render_bean(true, false, $last, true);
Пример #2
0
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>  
		<title><?php 
print $name;
?>
</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="description" content="" />
		<link rel="stylesheet" type="text/css" href="../css/2.css" />
		<link rel="shortcut icon" href="favicon.ico" />
		<link rel="alternate" type="application/rss+xml" title="<?php 
print $name;
?>
 RSS feed" href="<?php 
print $feed_url;
?>
" />		
	</head>
	<body>
		<ul id="objects_container"><li id="obj0"><?php 
// get latest issues
render_bean(false, false, $requested_issue);
?>
</li></ul>	
	    <script type="text/javascript" src="../js/jquery-1.6.3.min.js"></script>
	    <script type="text/javascript" src="../js/2.js"></script>		
	</body>
</html>
Пример #3
0
print '<?xml version="1.0" encoding="UTF-8" ?>' . "\n";
?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
		<atom:link href="<?php 
print "http://" . $_SERVER['SERVER_NAME'] . $_SERVER["REQUEST_URI"];
?>
" rel="self" type="application/rss+xml" />		
        <title><?php 
print $name;
?>
</title>
        <description>RSS feed for <?php 
print $name;
?>
</description>
        <link><?php 
print "http://" . $_SERVER['SERVER_NAME'] . substr($_SERVER["REQUEST_URI"], 0, strpos($_SERVER["REQUEST_URI"], 'rss'));
?>
</link>
        <lastBuildDate><?php 
print date('r', last_change_timestamp());
?>
</lastBuildDate>
        <ttl>1800</ttl>
        <?php 
// we haz RSS bean
render_bean(false, true);
?>
</channel>
</rss>