Changeset 1772 for trunk/gregarius/admin
- Timestamp:
- 11/03/07 00:28:42 (13 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/admin/items.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/items.php
r1661 r1772 29 29 30 30 /** 31 * renders the prun eing form31 * renders the pruning form 32 32 */ 33 33 function items() { … … 52 52 . "<p><label for=\"prune_include_sticky\">".__('Delete Sticky items too: ')."</label>\n" 53 53 . "<input type=\"checkbox\" id=\"prune_include_sticky\" name=\"prune_include_sticky\" value=\"1\"/></p>\n" 54 . "<p><label for=\"prune_include_unread\">".__('Delete Unread items too: ')."</label>\n" 55 . "<input type=\"checkbox\" id=\"prune_include_unread\" name=\"prune_include_unread\" value=\"1\"/></p>\n" 54 . "<p><label for=\"prune_include_flag\">".__('Delete Flag items too: ')."</label>\n" 55 . "<input type=\"checkbox\" id=\"prune_include_flag\" name=\"prune_include_flag\" value=\"1\"/></p>\n" 56 . "<p><label for=\"prune_include_unread\">".__('Delete Unread items too: ')."</label>\n" 57 . "<input type=\"checkbox\" id=\"prune_include_unread\" name=\"prune_include_unread\" value=\"1\"/></p>\n" 56 58 . "<p><label for=\"prune_exclude_tags\">".__('Do not delete items tagged... ')."</label>\n" 57 59 . "<input type=\"text\" id=\"prune_exclude_tags\" name=\"prune_exclude_tags\" value=\"\"/></p>\n" … … 117 119 } 118 120 121 if (!array_key_exists('prune_include_flag', $_REQUEST) 122 || $_REQUEST['prune_include_flag'] != '1') { 123 $sql .= " and not(unread & " . RSS_MODE_FLAG_STATE . ") "; 124 } 125 119 126 120 127 if (!array_key_exists('prune_include_unread', $_REQUEST) … … 155 162 156 163 if (array_key_exists(CST_ADMIN_CONFIRMED,$_REQUEST)) { 157 158 159 160 // Possible fix for #207: max out execution time 161 // to avoid timeouts 162 @set_time_limit(0); 163 @ini_set('max_execution_time', 60*10); 164 165 166 164 // Possible fix for #207: max out execution time 165 // to avoid timeouts 166 @set_time_limit(0); 167 @ini_set('max_execution_time', 60*10); 168 167 169 //echo "<pre>\n"; 168 170 //delete the tags for these items 169 171 $sqlids = "select distinct i.id,i.cid " . $sql 170 172 . " order by i.cid, i.id desc"; 171 172 173 173 174 $rs = rss_query($sqlids); … … 176 177 //echo "to be deleted\n"; 177 178 while (list($id,$cid) = rss_fetch_row($rs)) { 178 179 179 $cids[$cid][]= $id; 180 180
