Changeset 1518
- Timestamp:
- 07/23/06 00:47:29 (2 years ago)
- Files:
-
- trunk/gregarius/admin/channels.php (modified) (5 diffs)
- trunk/gregarius/schema.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gregarius/admin/channels.php
r1512 r1518 97 97 98 98 $sql = "select " 99 ." c.id, c.title, c.url, c.siteurl, d.name, c.descr, c.parent, c.icon, c.mode "99 ." c.id, c.title, c.url, c.siteurl, d.name, c.descr, c.parent, c.icon, c.mode, c.daterefreshed " 100 100 ." from " .getTable("channels") ." c, " . getTable("folders") ." d " 101 101 ." where d.id = c.parent "; … … 109 109 $res = rss_query($sql); 110 110 $cntr = 0; 111 while (list($id, $title, $url, $siteurl, $parent, $descr, $pid, $icon, $mode) = rss_fetch_row($res)) {111 while (list($id, $title, $url, $siteurl, $parent, $descr, $pid, $icon, $mode, $daterefreshed) = rss_fetch_row($res)) { 112 112 113 113 if (getConfig('rss.output.usemodrewrite')) { … … 135 135 } 136 136 } 137 138 if(NULL == $daterefreshed) { 139 $dead = true; 140 } else { 141 $dead = (time() - strtotime($daterefreshed) > getConfig('rss.config.deadthreshhold')*60 ? true : false); 142 } 137 143 138 144 $fmode = array(); … … 142 148 if ($mode & RSS_MODE_DELETED_STATE) { 143 149 $fmode[] = "D"; 144 } 150 $dead = false; 151 } 152 145 153 $slabel = count($fmode)?implode(", ",$fmode):" "; 146 154 if ($icon && substr($icon,0,5) == 'blob:') { … … 152 160 .((getConfig('rss.output.showfavicons') && $icon != "")? 153 161 "<img src=\"$icon\" class=\"favicon\" alt=\"\" width=\"16\" height=\"16\" />":"") 154 ."<label for=\"scb_$id\"> $title</label>"162 ."<label for=\"scb_$id\">".($dead ? "<strike>" : "").$title.($dead ? "</strike>" : "")."</label>" 155 163 ."</td>\n" 156 164 ."\t<td class=\"cntr\">".preg_replace('/ /',' ',$parentLabel)."</td>\n" trunk/gregarius/schema.php
r1507 r1518 470 470 "rss.config.ajaxparallelsize" => array('3','3','num','Sets the number of feeds to update in parallel. Remember to set rss.config.serverpush to false.',NULL), 471 471 "rss.config.ajaxbatchsize" => array('3','3','num','Sets the number of feeds in a batch when using the ajax updater. Remember to set rss.config.serverpush to false.',NULL), 472 "rss.config.defaultdashboard" => array('true','true','boolean','If the first page seen when entering the admin section should be the dashboard',NULL) 472 "rss.config.defaultdashboard" => array('true','true','boolean','If the first page seen when entering the admin section should be the dashboard',NULL), 473 "rss.config.deadthreshhold" => array('24', '24', 'num', 'Sets the threshold for when a feed is marked as dead, in hours', NULL) 473 474 ); 474 475
