From 16211ddbf24c978d88d8eb434ab57d7824827dbd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 25 Jan 2008 18:46:01 +0100 Subject: allow per-feed update method selection --- modules/pref-feeds.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index c31977164..749f4dc04 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -4,6 +4,7 @@ global $update_intervals; global $purge_intervals; + global $update_methods; $subop = $_REQUEST["subop"]; $quiet = $_REQUEST["quiet"]; @@ -259,6 +260,17 @@ print ""; + $update_method = db_fetch_result($result, 0, "update_method"); + + print "".__('Update using:').""; + + print ""; + + print_select_hash("update_method", $update_method, $update_methods, + "class=\"iedit\""); + + print ""; + $auth_login = htmlspecialchars(db_fetch_result($result, 0, "auth_login")); print "".__('Login:').""; @@ -374,6 +386,7 @@ db_escape_string($_POST["include_in_digest"])); $cache_images = checkbox_to_sql_bool( db_escape_string($_POST["cache_images"])); + $update_method = (int) db_escape_string($_POST["update_method"]); if (get_pref($link, 'ENABLE_FEED_CATS')) { if ($cat_id && $cat_id != 0) { @@ -411,7 +424,8 @@ rtl_content = $rtl_content, hidden = $hidden, $cache_images_qpart - include_in_digest = $include_in_digest + include_in_digest = $include_in_digest, + update_method = '$update_method' WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); if (get_pref($link, 'ENABLE_FEED_CATS')) { -- cgit v1.2.3