Changeset 1762 for trunk/gregarius/admin/channels.php
- Timestamp:
- 10/17/07 22:58:01 (14 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/admin/channels.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/channels.php
r1748 r1762 489 489 // Delete properties 490 490 deleteProperty($id,'rss.input.allowupdates'); 491 492 deleteProperty($id,'rss.config.refreshinterval'); 491 493 492 494 // Invalidate cache … … 647 649 $old_priv = ($_POST['old_priv'] == '1'); 648 650 649 650 651 // Feed Properties 651 652 $prop_rss_input_allowupdates = rss_real_escape_string($_POST['prop_rss_input_allowupdates']); … … 655 656 setProperty($cid, 'rss.input.allowupdates' , 'feed', ($prop_rss_input_allowupdates == 1)); 656 657 } 657 658 659 deleteProperty($cid, 'rss.config.refreshinterval'); 660 661 $rss_config_refreshinterval = rss_real_escape_string($_POST['rss_config_refreshinterval']); 662 if($rss_config_refreshinterval > 60) { 663 setProperty($cid, 'rss.config.refreshinterval', 'feed', $rss_config_refreshinterval); 664 } 658 665 659 666 if ($priv != $old_priv) { … … 905 912 if(!empty($daterefreshed)) { 906 913 echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" 907 ."<p><label>" . __('Last Update') . ": ".date("M-d-Y H:i", strtotime($daterefreshed))." </label></p>\n";914 ."<p><label>" . __('Last Update') . ": ".date("M-d-Y H:i", strtotime($daterefreshed))." (Age: " . round(((time() - strtotime($daterefreshed))/60)) . " minutes)</label></p>\n"; 908 915 } else { 909 916 echo "<p><label>" . __('Added') . ": " . date("M-d-Y H:i", strtotime($dateadded)) . "</label></p>" … … 1039 1046 1040 1047 ."</p>\n"; 1048 1049 echo "<p>" 1050 ."<span style=\"float:left;\">Refresh Interval (minutes): </span>" 1051 ." " 1052 ."</p>"; 1053 1054 $rss_config_refreshinterval_default_current = getProperty($cid, 'rss.config.refreshinterval'); 1055 1056 echo "<p id=\"rss_config_refreshinterval_options\">" 1057 ."<input type=\"text\" id=\"rss_config_refreshinterval\" name=\"rss_config_refreshinterval\" value=\"" . (true == empty($rss_config_refreshinterval_default_current) ? 60 : $rss_config_refreshinterval_default_current) . "\">" 1058 ."</p>"; 1041 1059 echo "</fieldset>\n"; 1042 1060 1043 1061 1044 echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\" /></p>";1062 echo "<p style=\"clear:both; padding: 1em 0\"><input type=\"submit\" name=\"action_\" value=\"". __('Submit Changes') ."\" /></p>"; 1045 1063 1046 1064 echo "</form></div>\n";
