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
37 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
\r
39 <table class="data" summary="" rules="cols">
\r
42 <th scope="col"> </th>
\r
43 <th scope="col"><?php echo _AT('title'); ?></th>
\r
44 <th scope="col"><?php echo _AT('url'); ?></th>
\r
50 <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
\r
51 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
\r
52 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
\r
58 $sql = "SELECT * FROM ".TABLE_PREFIX."feeds ORDER BY feed_id";
\r
59 $result = mysql_query($sql, $db);
\r
61 if (!($row = mysql_fetch_assoc($result))) {
\r
65 <td colspan="3"><?php echo _AT('none_found'); ?></td>
\r
69 $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>
\r
70 <tr onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">
\r
71 <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>
\r
72 <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>
\r
73 <td><?php echo $row['url']; ?></td>
\r
75 <?php } while ($row = mysql_fetch_assoc($result)); ?>
\r
82 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>