PluginProbe
FeedWordPress / 0.992
FeedWordPress v0.992
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | syndication-options.php +226 -145 2009.06180.992 View file →
@@ -1,9 +1,7 @@
1 1 <?php
2 -require_once(dirname(__FILE__) . '/admin-ui.php');
3 -
4 2 function fwp_syndication_options_page () {
5 - global $wpdb, $wp_db_version, $fwp_path;
3 + global $wpdb, $wp_db_version;
6 4
7 5 if (FeedWordPress::needs_upgrade()) :
8 6 fwp_upgrade_page();
9 7 return;
@@ -8,59 +6,107 @@
8 6 fwp_upgrade_page();
9 7 return;
10 8 endif;
11 9
12 - // If this is a POST, validate source and user credentials
13 - FeedWordPressCompatibility::validate_http_request(/*action=*/ 'feedwordpress_options', /*capability=*/ 'manage_options');
10 + $caption = 'Save Changes';
11 + if (isset($_POST['action']) and $_POST['action']==$caption):
12 + check_admin_referer();
14 13
15 - if (isset($_POST['create_index'])) :
16 - FeedWordPress::create_guid_index();
17 -?>
18 -<div class="updated">
19 -<p><?php _e('Index created on database table.')?></p>
20 -</div>
21 -<?php
22 - endif;
14 + if (!current_user_can('manage_options')):
15 + die (__("Cheatin' uh ?"));
16 + else:
17 + update_option('feedwordpress_cat_id', $_REQUEST['syndication_category']);
18 + update_option('feedwordpress_munge_permalink', $_REQUEST['munge_permalink']);
19 + update_option('feedwordpress_update_logging', $_REQUEST['update_logging']);
20 +
21 + if ('newuser'==$_REQUEST['unfamiliar_author']) :
22 + $newuser_name = trim($_REQUEST['unfamiliar_author_newuser']);
23 + if (strlen($newuser_name) > 0) :
24 + $userdata = array();
25 + $userdata['ID'] = NULL;
26 +
27 + $userdata['user_login'] = sanitize_user($newuser_name);
28 + $userdata['user_login'] = apply_filters('pre_user_login', $userdata['user_login']);
29 +
30 + $userdata['user_nicename'] = sanitize_title($newuser_name);
31 + $userdata['user_nicename'] = apply_filters('pre_user_nicename', $userdata['user_nicename']);
32 +
33 + $userdata['display_name'] = $wpdb->escape($newuser_name);
23 34
24 - if (isset($_POST['submit']) or isset($_POST['create_index'])) :
25 - update_option('feedwordpress_cat_id', $_REQUEST['syndication_category']);
26 - update_option('feedwordpress_update_logging', $_REQUEST['update_logging']);
27 - update_option('feedwordpress_debug', $_POST['feedwordpress_debug']);
28 - update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes'));
29 - update_option('feedwordpress_update_time_limit', ($_POST['update_time_limit']=='yes')?(int) $_POST['time_limit_seconds']:0);
35 + $newuser_id = wp_insert_user($userdata);
36 + if (is_numeric($newuser_id)) :
37 + update_option('feedwordpress_unfamiliar_author', $newuser_id);
38 + else :
39 + // TODO: Add some error detection and reporting
40 + endif;
41 + else :
42 + // TODO: Add some error reporting
43 + endif;
44 + else :
45 + update_option('feedwordpress_unfamiliar_author', $_REQUEST['unfamiliar_author']);
46 + endif;
30 47
31 - $freshness_interval = (isset($_POST['freshness_interval']) ? (int) $_POST['freshness_interval'] : 10);
32 - update_option('feedworidpress_freshness', $freshness_interval*60);
48 + update_option('feedwordpress_unfamiliar_category', $_REQUEST['unfamiliar_category']);
49 + update_option('feedwordpress_syndicated_post_status', $_REQUEST['post_status']);
50 + update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes'));
51 + update_option('feedwordpress_freshness', ($_POST['freshness_interval']*60));
33 52
34 - if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) :
35 - update_option('feedwordpress_hardcode_name', 'no');
36 - else :
37 - update_option('feedwordpress_hardcode_name', 'yes');
38 - endif;
39 -
40 - if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) :
41 - update_option('feedwordpress_hardcode_description', 'no');
42 - else :
43 - update_option('feedwordpress_hardcode_description', 'yes');
44 - endif;
53 + // Categories
54 + $cats = array();
55 + if (isset($_POST['post_category'])) :
56 + $cats = array();
57 + foreach ($_POST['post_category'] as $cat_id) :
58 + $cats[] = '{#'.$cat_id.'}';
59 + endforeach;
60 + endif;
45 61
46 - if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) :
47 - update_option('feedwordpress_hardcode_url', 'no');
48 - else :
49 - update_option('feedwordpress_hardcode_url', 'yes');
50 - endif;
62 + if (!empty($cats)) :
63 + update_option('feedwordpress_syndication_cats', implode("\n", $cats));
64 + else :
65 + delete_option('feedwordpress_syndication_cats');
66 + endif;
67 +
68 + if (isset($_REQUEST['comment_status']) and ($_REQUEST['comment_status'] == 'open')) :
69 + update_option('feedwordpress_syndicated_comment_status', 'open');
70 + else :
71 + update_option('feedwordpress_syndicated_comment_status', 'closed');
72 + endif;
73 +
74 + if (isset($_REQUEST['ping_status']) and ($_REQUEST['ping_status'] == 'open')) :
75 + update_option('feedwordpress_syndicated_ping_status', 'open');
76 + else :
77 + update_option('feedwordpress_syndicated_ping_status', 'closed');
78 + endif;
79 +
80 + if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) :
81 + update_option('feedwordpress_hardcode_name', 'no');
82 + else :
83 + update_option('feedwordpress_hardcode_name', 'yes');
84 + endif;
85 +
86 + if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) :
87 + update_option('feedwordpress_hardcode_description', 'no');
88 + else :
89 + update_option('feedwordpress_hardcode_description', 'yes');
90 + endif;
91 +
92 + if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) :
93 + update_option('feedwordpress_hardcode_url', 'no');
94 + else :
95 + update_option('feedwordpress_hardcode_url', 'yes');
96 + endif;
51 97 ?>
52 98 <div class="updated">
53 99 <p><?php _e('Options saved.')?></p>
54 100 </div>
55 101 <?php
102 + endif;
56 103 endif;
57 104
58 105 $cat_id = FeedWordPress::link_category_id();
106 + $munge_permalink = get_option('feedwordpress_munge_permalink');
59 107 $update_logging = get_option('feedwordpress_update_logging');
60 - $feedwordpress_debug = (get_option('feedwordpress_debug')=='yes');
61 108
62 - $update_time_limit = (int) get_option('feedwordpress_update_time_limit');
63 109 $automatic_updates = get_option('feedwordpress_automatic_updates');
64 110
65 111 $freshness_interval = get_option('feedwordpress_freshness');
66 112 if (false === $freshness_interval) :
@@ -70,14 +116,26 @@
70 116
71 117 $hardcode_name = get_option('feedwordpress_hardcode_name');
72 118 $hardcode_description = get_option('feedwordpress_hardcode_description');
73 119 $hardcode_url = get_option('feedwordpress_hardcode_url');
120 +
121 + $post_status = get_option("feedwordpress_syndicated_post_status"); // default="publish"
122 + $comment_status = get_option("feedwordpress_syndicated_comment_status"); // default="closed"
123 + $ping_status = get_option("feedwordpress_syndicated_ping_status"); // default="closed"
124 +
125 + $unfamiliar_author = array ('create' => '','default' => '','filter' => '');
126 + $ua = FeedWordPress::on_unfamiliar('author');
127 + if (is_string($ua) and array_key_exists($ua, $unfamiliar_author)) :
128 + $unfamiliar_author[$ua] = ' checked="checked"';
129 + endif;
130 + $unfamiliar_category = array ('create'=>'','default'=>'','filter'=>'');
131 + $uc = FeedWordPress::on_unfamiliar('category');
132 + if (is_string($uc) and array_key_exists($uc, $unfamiliar_category)) :
133 + $unfamiliar_category[$uc] = ' checked="checked"';
134 + endif;
74 135
75 136 if (isset($wp_db_version) and $wp_db_version >= 4772) :
76 - $results = get_categories(array(
77 - "type" => 'link',
78 - "hide_empty" => false,
79 - ));
137 + $results = get_categories('type=link');
80 138
81 139 // Guarantee that the Contributors category will be in the drop-down chooser, even if it is empty.
82 140 $found_link_category_id = false;
83 141 foreach ($results as $row) :
@@ -88,36 +146,33 @@
88 146 else :
89 147 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id");
90 148 endif;
91 149
92 - $cats = array_map('trim',
93 - preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, get_option('feedwordpress_syndication_cats'))
94 - );
95 - $dogs = SyndicatedPost::category_ids($cats, /*unfamiliar=*/ NULL);
150 + $cats = get_option('feedwordpress_syndication_cats');
151 + $dogs = get_nested_categories(-1, 0);
152 + $cats = array_map('strtolower',
153 + array_map('trim',
154 + preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, $cats)
155 + ));
156 +
157 + foreach ($dogs as $tag => $dog) :
158 + $found_by_name = in_array(strtolower(trim($dog['cat_name'])), $cats);
159 + if (isset($dog['cat_ID'])) : $dog['cat_id'] = $dog['cat_ID']; endif;
160 + $found_by_id = in_array('{#'.trim($dog['cat_id']).'}', $cats);
96 161
97 - $tags = array_map('trim',
98 - preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, get_option('feedwordpress_syndication_tags'))
99 - );
100 -
101 - if (fwp_test_wp_version(FWP_SCHEMA_27)) :
102 - $icon = '<div class="icon32"><img src="'.htmlspecialchars(WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress.png').'" alt="" /></div>';
103 - else :
104 - $icon = '';
105 - endif;
162 + if ($found_by_name or $found_by_id) :
163 + $dogs[$tag]['checked'] = true;
164 + endif;
165 + endforeach;
106 166
107 - if (fwp_test_wp_version(FWP_SCHEMA_26)) :
108 - $options = __('Settings');
109 - else :
110 - $options = __('Options');
111 - endif;
112 167 ?>
113 168 <script type="text/javascript">
114 - function contextual_appearance (item, appear, disappear, value, checkbox) {
115 - var rollup=document.getElementById(item);
116 - var newuser=document.getElementById(appear);
117 - var sitewide=document.getElementById(disappear);
169 + function flip_newuser (item) {
170 + rollup=document.getElementById(item);
171 + newuser=document.getElementById(item+'-newuser');
172 + sitewide=document.getElementById(item+'-default');
118 173 if (rollup) {
119 - if ((checkbox && rollup.checked) || (!checkbox && value==rollup.value)) {
174 + if ('newuser'==rollup.value) {
120 175 if (newuser) newuser.style.display='block';
121 176 if (sitewide) sitewide.style.display='none';
122 177 } else {
123 178 if (newuser) newuser.style.display='none';
@@ -127,62 +182,42 @@
127 182 }
128 183 </script>
129 184
130 185 <div class="wrap">
131 -<?php print $icon; ?>
132 -<h2>Syndication <?php print $options; ?></h2>
133 -<div id="poststuff">
186 +<h2>Syndication Options</h2>
134 187 <form action="" method="post">
135 -<?php
136 - FeedWordPressCompatibility::stamp_nonce('feedwordpress_options');
137 - fwp_linkedit_single_submit();
138 -?>
139 -<div id="post-body">
140 -<?php fwp_option_box_opener('Syndicated Feeds', 'syndicatedfeedsdiv'); ?>
188 +<fieldset class="options">
189 +<legend>Syndicated Feeds</legend>
141 190 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
142 191 <tr>
143 192 <th width="33%" scope="row">Syndicated Link category:</th>
144 193 <td width="67%"><?php
145 - echo "\n<select name=\"syndication_category\" size=\"1\">";
146 - foreach ($results as $row) :
147 - if (!isset($row->cat_id)) : $row->cat_id = $row->cat_ID; endif;
148 -
149 - echo "\n\t<option value=\"$row->cat_id\"";
150 - if ($row->cat_id == $cat_id) :
151 - echo " selected='selected'";
152 - endif;
153 - echo ">$row->cat_id: ".wp_specialchars($row->cat_name);
154 - if ('Y' == $row->auto_toggle) :
155 - echo ' (auto toggle)';
156 - endif;
157 - echo "</option>\n";
158 - endforeach;
159 - echo "\n</select>\n";
194 + echo "\n<select name=\"syndication_category\" size=\"1\">";
195 + foreach ($results as $row) {
196 + if (!isset($row->cat_id)) { $row->cat_id = $row->cat_ID; }
197 +
198 + echo "\n\t<option value=\"$row->cat_id\"";
199 + if ($row->cat_id == $cat_id)
200 + echo " selected='selected'";
201 + echo ">$row->cat_id: ".wp_specialchars($row->cat_name);
202 + if ('Y' == $row->auto_toggle)
203 + echo ' (auto toggle)';
204 + echo "</option>\n";
205 + }
206 + echo "\n</select>\n";
160 207 ?></td>
161 208 </tr>
162 209
163 -<tr style="vertical-align: top">
164 -<th width="33%" scope="row">Check for updates:</th>
165 -<td width="67%"><select name="automatic_updates" size="1">
210 +<tr>
211 +<th width="33%" scope="row">Check for new posts:</th>
212 +<td width="67%"><select name="automatic_updates" size="1" onchange="if (this.value=='yes') { disp = 'inline'; } else { disp = 'none'; }; el=document.getElementById('automatic-update-interval-span'); if (el) el.style.display=disp;">
166 213 <option value="yes"<?php echo ($automatic_updates)?' selected="selected"':''; ?>>automatically</option>
167 214 <option value="no"<?php echo (!$automatic_updates)?' selected="selected"':''; ?>>only when I request</option>
168 215 </select>
216 +<span id="automatic-update-interval-span" style="display: <?php echo $automatic_updates?'inline':'none';?>"><label for="automatic-update-interval">every</label> <input id="automatic-update-interval" name="freshness_interval" value="<?php echo $freshness_interval; ?>" size="4" /> minutes.</span>
169 217 </td>
170 218 </tr>
171 219
172 -<tr style="vertical-align: top">
173 -<th width="33%" scope="row"><?php print __('Time limit on updates'); ?>:</th>
174 -<td width="67%"><select id="time-limit" name="update_time_limit" size="1" onchange="contextual_appearance('time-limit', 'time-limit-box', null, 'yes');">
175 -<option value="no"<?php echo ($update_time_limit>0)?'':' selected="selected"'; ?>>no time limit on updates</option>
176 -<option value="yes"<?php echo ($update_time_limit>0)?' selected="selected"':''; ?>>limit updates to no more than...</option>
177 -</select>
178 -<span id="time-limit-box"><label><input type="text" name="time_limit_seconds" value="<?php print $update_time_limit; ?>" size="5" /> seconds</label></span>
179 -</tr>
180 -
181 -<script type="text/javascript">
182 - contextual_appearance('time-limit', 'time-limit-box', null, 'yes');
183 -</script>
184 -
185 220 <tr><th width="33%" scope="row" style="vertical-align:top">Feed information:</th>
186 221 <td width="67%"><ul style="margin:0;padding:0;list-style:none">
187 222 <li><input type="checkbox" name="hardcode_name" value="no"<?php echo (($hardcode_name=='yes')?'':' checked="checked"');?>/> Update the contributor title when the feed title changes</li>
188 223 <li><input type="checkbox" name="hardcode_description" value="no"<?php echo (($hardcode_description=='yes')?'':' checked="checked"');?>/> Update when contributor description if the feed tagline changes</li>
@@ -188,56 +223,102 @@
188 223 <li><input type="checkbox" name="hardcode_description" value="no"<?php echo (($hardcode_description=='yes')?'':' checked="checked"');?>/> Update when contributor description if the feed tagline changes</li>
189 224 <li><input type="checkbox" name="hardcode_url" value="no"<?php echo (($hardcode_url=='yes')?'':' checked="checked"');?>/> Update the contributor homepage when the feed link changes</li>
190 225 </ul></td></tr>
191 226 </table>
192 -<?php fwp_linkedit_periodic_submit(); ?>
193 -<?php fwp_option_box_closer(); ?>
227 +<div class="submit"><input type="submit" name="action" value="<?php echo $caption; ?>" /></div>
228 +</fieldset>
194 229
230 +<fieldset class="options">
231 +<legend>Syndicated Posts</legend>
232 +
233 +<?php fwp_category_box($dogs, '<em>all syndicated posts</em>'); ?>
234 +
235 +<table class="editform" width="75%" cellspacing="2" cellpadding="5">
236 +<tr style="vertical-align: top"><th width="44%" scope="row">Publication:</th>
237 +<td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
238 +<li><label><input type="radio" name="post_status" value="publish"<?php echo (!$post_status or $post_status=='publish')?' checked="checked"':''; ?> /> Publish syndicated posts immediately</label></li>
239 +<li><label><input type="radio" name="post_status" value="draft"<?php echo ($post_status=='draft')?' checked="checked"':''; ?> /> Hold syndicated posts as drafts</label></li>
240 +<li><label><input type="radio" name="post_status" value="private"<?php echo ($post_status=='private')?' checked="checked"':''; ?> /> Hold syndicated posts as private posts</label></li>
241 +</ul></td></tr>
242 +
243 +<tr style="vertical-align: top"><th width="44%" scope="row">Comments:</th>
244 +<td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
245 +<li><label><input type="radio" name="comment_status" value="open"<?php echo ($comment_status=='open')?' checked="checked"':''; ?> /> Allow comments on syndicated posts</label></li>
246 +<li><label><input type="radio" name="comment_status" value="closed"<?php echo ($comment_status!='open')?' checked="checked"':''; ?> /> Don't allow comments on syndicated posts</label></li>
247 +</ul></td></tr>
248 +
249 +<tr style="vertical-align: top"><th width="44%" scope="row">Trackback and Pingback:</th>
250 +<td width="56%"><ul style="margin:0; padding: 0; list-style:none">
251 +<li><label><input type="radio" name="ping_status" value="open"<?php echo ($ping_status=='open')?' checked="checked"':''; ?> /> Accept pings on syndicated posts</label></li>
252 +<li><label><input type="radio" name="ping_status" value="closed"<?php echo ($ping_status!='open')?' checked="checked"':''; ?> /> Don't accept pings on syndicated posts</label></li>
253 +</ul></td></tr>
254 +
255 +<tr style="vertical-align: top"><th width="44%" scope="row" style="vertical-align:top">Unfamiliar categories:</th>
256 +<td width="56%"><ul style="margin: 0; padding:0; list-style:none">
257 +<li><label><input type="radio" name="unfamiliar_category" value="create"<?php echo $unfamiliar_category['create']; ?>/> create any categories the post is in</label></li>
258 +<li><label><input type="radio" name="unfamiliar_category" value="default"<?php echo $unfamiliar_category['default']; ?>/> don't create new categories</li>
259 +<li><label><input type="radio" name="unfamiliar_category" value="filter"<?php echo $unfamiliar_category['filter']; ?>/> don't create new categories and don't syndicate posts unless they match at least one familiar category</label></li>
260 +</ul></td></tr>
261 +
262 +<tr style="vertical-align: top"><th width="44%" scope="row">Permalinks point to:</th>
263 +<td width="56%"><select name="munge_permalink" size="1">
264 +<option value="yes"<?php echo ($munge_permalink=='yes')?' selected="selected"':''; ?>>original website</option>
265 +<option value="no"<?php echo ($munge_permalink=='no')?' selected="selected"':''; ?>>this website</option>
266 +</select></td></tr>
267 +</table>
268 +<div class="submit"><input type="submit" name="action" value="<?php echo $caption; ?>" /></div>
269 +</fieldset>
270 +
271 +<fieldset class="options">
272 +<legend>Syndicated Authors</legend>
195 273 <?php
196 - FeedWordPressSettingsUI::instead_of_posts_box();
197 - FeedWordPressSettingsUI::instead_of_authors_box();
198 - FeedWordPressSettingsUI::instead_of_categories_box();
199 -
200 - fwp_option_box_opener('Back End', 'backenddiv', 'postbox');
274 + $unfamiliar_author = FeedWordPress::on_unfamiliar('author');
275 + $authorlist = fwp_author_list();
201 276 ?>
277 +
278 +<table>
279 +<tr><th colspan="3" style="text-align: left; padding-top: 1.0em; border-bottom: 1px dotted black;">For posts by authors that haven't been syndicated before:</th></tr>
280 +<tr>
281 + <th style="text-align: left">Posts by new authors</th>
282 + <td>
283 + <select id="unfamiliar-author" name="unfamiliar_author" onchange="flip_newuser('unfamiliar-author');">
284 + <option value="create"<?php if ('create'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>create a new author account</option>
285 + <?php foreach ($authorlist as $author_id => $author_name) : ?>
286 + <option value="<?php echo $author_id; ?>"<?php if ($author_id==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>are assigned to <?php echo $author_name; ?></option>
287 + <?php endforeach; ?>
288 + <option value="newuser">will be assigned to a user named...</option>
289 + <option value="filter"<?php if ('filter'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>get filtered out</option>
290 + </select>
291 + </td>
292 + <td>
293 + <div id="unfamiliar-author-default">This is a default setting. You can override it for one or more particular feeds using the Edit link in <a href="admin.php?page=feedwordpress/feedwordpress.php">Syndicated Sites</a></div>
294 + <div id="unfamiliar-author-newuser"><input type="text" name="unfamiliar_author_newuser" value="" /></div>
295 + </td>
296 +</tr>
297 +</table>
298 +
299 +<script>
300 + flip_newuser('unfamiliar-author');
301 +</script>
302 +
303 +<div class="submit"><input type="submit" name="action" value="<?php echo $caption; ?>" /></div>
304 +</fieldset>
305 +
306 +<fieldset class="options">
307 +<legend>Back-end Options</legend>
202 308 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
203 -<tr style="vertical-align: top">
204 -<th width="33%" scope="row">Update notices:</th>
309 +<th width="33%" scope="row">Write update notices to PHP logs:</th>
205 310 <td width="67%"><select name="update_logging" size="1">
206 -<option value="yes"<?php echo (($update_logging=='yes')?' selected="selected"':''); ?>>write to PHP logs</option>
207 -<option value="no"<?php echo (($update_logging!='yes')?' selected="selected"':''); ?>>don't write to PHP logs</option>
311 +<option value="yes"<?php echo (($update_logging=='yes')?' selected="selected"':''); ?>>yes</option>
312 +<option value="no"<?php echo (($update_logging!='yes')?' selected="selected"':''); ?>>no</option>
208 313 </select></td>
209 314 </tr>
210 -<tr style="vertical-align: top">
211 -<th width="33%" scope="row">Debugging mode:</th>
212 -<td width="67%"><select name="feedwordpress_debug" size="1">
213 -<option value="yes"<?php echo ($feedwordpress_debug ? ' selected="selected"' : ''); ?>>on</option>
214 -<option value="no"<?php echo ($feedwordpress_debug ? '' : ' selected="selected"'); ?>>off</option>
215 -</select>
216 -<p>When debugging mode is <strong>ON</strong>, FeedWordPress displays many diagnostic error messages,
217 -warnings, and notices that are ordinarily suppressed, and turns off all caching of feeds. Use with
218 -caution: this setting is absolutely inappropriate for a production server.</p>
219 -</td>
220 -</tr>
221 -
222 -<tr style="vertical-align: top">
223 -<th width="33%" scope="row">Guid index:</th>
224 -<td width="67%"><input class="button" type="submit" name="create_index" value="Create index on guid column in posts database table" />
225 -<p>Creating this index may significantly improve performance on some large
226 -FeedWordPress installations.</p></td>
227 -</tr>
228 315 </table>
229 -<?php
230 - fwp_option_box_closer();
231 - fwp_linkedit_periodic_submit();
232 - fwp_linkedit_single_submit_closer();
233 -?>
316 +<div class="submit"><input type="submit" name="action" value="<?php echo $caption; ?>" /></div>
317 +</fieldset>
318 +</form>
234 319 </div>
235 -</form>
236 -
237 -</div> <!-- id="poststuff" -->
238 -</div> <!-- class="wrap" -->
239 320 <?php
240 321 }
241 322
242 323 fwp_syndication_options_page();
243 -
324 +?>