2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /************************************************************************/
15 define('AT_INCLUDE_PATH', '../../../include/');
16 require(AT_INCLUDE_PATH . 'vitals.inc.php');
18 admin_authenticate(AT_ADMIN_PRIV_RSS);
20 if (isset($_POST['back'])) {
21 header('Location: index.php');
25 require (AT_INCLUDE_PATH.'header.inc.php');
27 $feed_id = intval($_GET['fid']);
28 $cache_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss.cache';
29 $title_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss_title.cache';
31 if (!file_exists($cache_file) || ((time() - filemtime($cache_file)) > 21600) ) {
32 make_cache_file($feed_id);
38 $savant->assign('cache_file', $cache_file);
39 $savant->assign('title_file', $title_file);
40 $savant->display('admin/system_preferences/preview.tmpl.php');
41 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>