2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or */
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /************************************************************************/
\r
15 define('AT_INCLUDE_PATH', '../../../include/');
\r
16 require(AT_INCLUDE_PATH . 'vitals.inc.php');
\r
18 admin_authenticate(AT_ADMIN_PRIV_RSS);
\r
20 if (isset($_POST['back'])) {
\r
21 header('Location: index.php');
\r
25 require (AT_INCLUDE_PATH.'header.inc.php');
\r
27 $feed_id = intval($_GET['fid']);
\r
28 $cache_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss.cache';
\r
29 $title_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss_title.cache';
\r
31 if (!file_exists($cache_file) || ((time() - filemtime($cache_file)) > 21600) ) {
\r
32 make_cache_file($feed_id);
\r
36 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
\r
38 <div class="input-form">
\r
40 <h3><?php if (file_exists($title_file)) { readfile($title_file); } ?></h3>
\r
44 <?php if (file_exists($cache_file) && filesize($cache_file) > 0) {
\r
45 readfile($cache_file);
\r
46 echo '<p><br /><small>'._AT('new_window').'</small></p>';
\r
48 echo _AT('no_content_avail');
\r
52 <div class="row buttons">
\r
53 <input type="submit" name="back" value="<?php echo _AT('back'); ?>" />
\r
58 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>