From 758e1c4ad905d10a31e0749ec22973b8a4055764 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Sep 2008 07:06:25 +0100 Subject: implement (incomplete) batch feed editor --- modules/pref-feeds.php | 159 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) (limited to 'modules') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 50b8013e3..7a3695da7 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1,5 +1,10 @@ "; + } + function module_pref_feeds($link) { global $update_intervals; @@ -378,6 +383,159 @@ return; } + if ($subop == "editfeeds") { + + $feed_ids = db_escape_string($_REQUEST["ids"]); + + print "
".__('Batch Feed Editor')."
"; + + print "
"; + + print "[$feed_ids]
"; + + print "
"; + + print ""; + print ""; + print ""; + + print "
".__("Feed")."
"; + print "
"; + + /* Title */ + + print ""; + + batch_edit_cbox("title"); + + /* Feed URL */ + + print "
"; + + print __('URL:') . " "; + print ""; + + batch_edit_cbox("feed_url"); + + /* Category */ + + if (get_pref($link, 'ENABLE_FEED_CATS')) { + + print "
"; + + print __('Place in category:') . " "; + + print_feed_cat_select($link, "cat_id", $cat_id, "disabled"); + + batch_edit_cbox("cat_id"); + + } + + print "
"; + + print "
".__("Update")."
"; + print "
"; + + /* Update Interval */ + + print_select_hash("update_interval", $update_interval, $update_intervals, + "disabled"); + + batch_edit_cbox("update_interval"); + + /* Update method */ + + if (ALLOW_SELECT_UPDATE_METHOD) { + print " " . __('using') . " "; + print_select_hash("update_method", $update_method, $update_methods, + "disabled"); + batch_edit_cbox("update_method"); + } + + /* Purge intl */ + + print "
"; + + print __('Article purging:') . " "; + + print_select_hash("purge_interval", $purge_interval, $purge_intervals, + "disabled"); + + batch_edit_cbox("purge_interval"); + + print "
"; + print "
".__("Authentication")."
"; + print "
"; + + print __('Login:') . " "; + print ""; + + batch_edit_cbox("auth_login"); + + print " " . __("Password:") . " "; + + print ""; + + batch_edit_cbox("auth_pass"); + + print "
"; + print "
".__("Options")."
"; + print "
"; + + print "
"; + + print " "; + + print " "; batch_edit_cbox("private", "private_l"); + + print "
 "; + + print " "; batch_edit_cbox("rtl_content", "rtl_content_l"); + + print "
 "; + + print " "; batch_edit_cbox("hidden", "hidden_l"); + + print "
 "; + + print " "; batch_edit_cbox("include_in_digest", "include_in_digest_l"); + + print "
 "; + + + if (ENABLE_SIMPLEPIE && SIMPLEPIE_CACHE_IMAGES) { + print " "; batch_edit_cbox("cache_images", "cache_images_l"); + } + + print "
"; + print "
"; + + print "
"; + + print "
+ + +
"; + + return; + } + if ($subop == "editSave") { $feed_title = db_escape_string(trim($_POST["title"])); @@ -1113,6 +1271,7 @@ + -- cgit v1.2.3