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
21 if ((isset($_GET['preview']) || isset($_GET['edit']) || isset($_GET['delete'])) && !isset($_GET['fid'])) {
\r
22 $msg->addError('NO_ITEM_SELECTED');
\r
23 } else if (isset($_GET['edit'])) {
\r
24 header("Location:edit_feed.php?fid=".intval($_GET['fid']));
\r
26 } else if (isset($_GET['delete'])) {
\r
27 header("Location:delete_feed.php?fid=".intval($_GET['fid']));
\r
29 } else if (isset($_GET['preview'])) {
\r
30 header("Location:preview.php?fid=".intval($_GET['fid']));
\r
34 require (AT_INCLUDE_PATH.'header.inc.php');
\r
36 $sql = "SELECT * FROM ".TABLE_PREFIX."feeds ORDER BY feed_id";
\r
37 $result = mysql_query($sql, $db);
\r
39 $savant->assign('result', $result);
\r
40 $savant->display('admin/system_preferences/index.tmpl.php');
\r
41 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>