PluginProbe
FeedWordPress / 2008.1214
FeedWordPress v2008.1214
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
feedwordpress / syndication-options.php

syndication-options.php in FeedWordPress 2008.1214, at syndication-options.php

471 lines 21.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require_once(dirname(__FILE__) . '/admin-ui.php');
3
4 function fwp_syndication_options_page () {
5 global $wpdb, $wp_db_version, $fwp_path;
6
7 if (FeedWordPress::needs_upgrade()) :
8 fwp_upgrade_page();
9 return;
10 endif;
11
12 if (isset($_POST['create_index'])) :
13 check_admin_referer();
14 if (!current_user_can('manage_options')) :
15 die (__("Cheatin' uh ?"));
16 else :
17 FeedWordPress::create_guid_index();
18 ?>
19 <div class="updated">
20 <p><?php _e('Index created on database table.')?></p>
21 </div>
22 <?php
23 endif;
24 endif;
25
26 if (isset($_POST['submit']) or isset($_POST['create_index'])) :
27 check_admin_referer();
28
29 if (!current_user_can('manage_options')):
30 die (__("Cheatin' uh ?"));
31 else:
32 update_option('feedwordpress_cat_id', $_REQUEST['syndication_category']);
33 update_option('feedwordpress_munge_permalink', $_REQUEST['munge_permalink']);
34 update_option('feedwordpress_use_aggregator_source_data', $_REQUEST['use_aggregator_source_data']);
35 update_option('feedwordpress_formatting_filters', $_REQUEST['formatting_filters']);
36 update_option('feedwordpress_update_logging', $_REQUEST['update_logging']);
37
38 if ('newuser'==$_REQUEST['unfamiliar_author']) :
39 $newuser_name = trim($_REQUEST['unfamiliar_author_newuser']);
40 if (strlen($newuser_name) > 0) :
41 $userdata = array();
42 $userdata['ID'] = NULL;
43
44 $userdata['user_login'] = sanitize_user($newuser_name);
45 $userdata['user_login'] = apply_filters('pre_user_login', $userdata['user_login']);
46
47 $userdata['user_nicename'] = sanitize_title($newuser_name);
48 $userdata['user_nicename'] = apply_filters('pre_user_nicename', $userdata['user_nicename']);
49
50 $userdata['display_name'] = $wpdb->escape($newuser_name);
51
52 $newuser_id = wp_insert_user($userdata);
53 if (is_numeric($newuser_id)) :
54 update_option('feedwordpress_unfamiliar_author', $newuser_id);
55 else :
56 // TODO: Add some error detection and reporting
57 endif;
58 else :
59 // TODO: Add some error reporting
60 endif;
61 else :
62 update_option('feedwordpress_unfamiliar_author', $_REQUEST['unfamiliar_author']);
63 endif;
64
65 if (isset($_REQUEST['match_author_by_email']) and $_REQUEST['match_author_by_email']=='yes') :
66 update_option('feedwordpress_do_not_match_author_by_email', 'no');
67 else :
68 update_option('feedwordpress_do_not_match_author_by_email', 'yes');
69 endif;
70
71 if (isset($_REQUEST['null_emails'])) :
72 update_option('feedwordpress_null_email_set', $_REQUEST['null_emails']);
73 endif;
74
75 update_option('feedwordpress_unfamiliar_category', $_REQUEST['unfamiliar_category']);
76 update_option('feedwordpress_syndicated_post_status', $_REQUEST['post_status']);
77 update_option('feedwordpress_automatic_updates', ($_POST['automatic_updates']=='yes'));
78 update_option('feedwordpress_update_time_limit', ($_POST['update_time_limit']=='yes')?(int) $_POST['time_limit_seconds']:0);
79 update_option('feedwordpress_freshness', ($_POST['freshness_interval']*60));
80
81 // Categories
82 $cats = array();
83 if (isset($_POST['post_category'])) :
84 $cats = array();
85 foreach ($_POST['post_category'] as $cat_id) :
86 $cats[] = '{#'.$cat_id.'}';
87 endforeach;
88 endif;
89
90 if (!empty($cats)) :
91 update_option('feedwordpress_syndication_cats', implode(FEEDWORDPRESS_CAT_SEPARATOR, $cats));
92 else :
93 delete_option('feedwordpress_syndication_cats');
94 endif;
95
96 // Tags
97 if (isset($_REQUEST['tags_input'])) :
98 $tags = explode(",", $_REQUEST['tags_input']);
99 else :
100 $tags = array();
101 endif;
102
103 if (!empty($tags)) :
104 update_option('feedwordpress_syndication_tags', implode(FEEDWORDPRESS_CAT_SEPARATOR, $tags));
105 else :
106 delete_option('feedwordpress_syndication_tags');
107 endif;
108
109 if (isset($_REQUEST['comment_status']) and ($_REQUEST['comment_status'] == 'open')) :
110 update_option('feedwordpress_syndicated_comment_status', 'open');
111 else :
112 update_option('feedwordpress_syndicated_comment_status', 'closed');
113 endif;
114
115 if (isset($_REQUEST['ping_status']) and ($_REQUEST['ping_status'] == 'open')) :
116 update_option('feedwordpress_syndicated_ping_status', 'open');
117 else :
118 update_option('feedwordpress_syndicated_ping_status', 'closed');
119 endif;
120
121 if (isset($_REQUEST['hardcode_name']) and ($_REQUEST['hardcode_name'] == 'no')) :
122 update_option('feedwordpress_hardcode_name', 'no');
123 else :
124 update_option('feedwordpress_hardcode_name', 'yes');
125 endif;
126
127 if (isset($_REQUEST['hardcode_description']) and ($_REQUEST['hardcode_description'] == 'no')) :
128 update_option('feedwordpress_hardcode_description', 'no');
129 else :
130 update_option('feedwordpress_hardcode_description', 'yes');
131 endif;
132
133 if (isset($_REQUEST['hardcode_url']) and ($_REQUEST['hardcode_url'] == 'no')) :
134 update_option('feedwordpress_hardcode_url', 'no');
135 else :
136 update_option('feedwordpress_hardcode_url', 'yes');
137 endif;
138 ?>
139 <div class="updated">
140 <p><?php _e('Options saved.')?></p>
141 </div>
142 <?php
143 endif;
144 endif;
145
146 $cat_id = FeedWordPress::link_category_id();
147 $munge_permalink = get_option('feedwordpress_munge_permalink');
148 $use_aggregator_source_data = get_option('feedwordpress_use_aggregator_source_data');
149 $formatting_filters = get_option('feedwordpress_formatting_filters');
150 $update_logging = get_option('feedwordpress_update_logging');
151
152 $update_time_limit = (int) get_option('feedwordpress_update_time_limit');
153
154 $automatic_updates = get_option('feedwordpress_automatic_updates');
155
156 $freshness_interval = get_option('feedwordpress_freshness');
157 if (false === $freshness_interval) :
158 $freshness_interval = FEEDWORDPRESS_FRESHNESS_INTERVAL;
159 endif;
160 $freshness_interval = $freshness_interval / 60; // convert to minutes
161
162 $hardcode_name = get_option('feedwordpress_hardcode_name');
163 $hardcode_description = get_option('feedwordpress_hardcode_description');
164 $hardcode_url = get_option('feedwordpress_hardcode_url');
165
166 $post_status = get_option("feedwordpress_syndicated_post_status"); // default="publish"
167 $comment_status = get_option("feedwordpress_syndicated_comment_status"); // default="closed"
168 $ping_status = get_option("feedwordpress_syndicated_ping_status"); // default="closed"
169
170 $unfamiliar_author = array ('create' => '','default' => '','filter' => '');
171 $ua = FeedWordPress::on_unfamiliar('author');
172 if (is_string($ua) and array_key_exists($ua, $unfamiliar_author)) :
173 $unfamiliar_author[$ua] = ' checked="checked"';
174 endif;
175
176 $match_author_by_email = !('yes' == get_option("feedwordpress_do_not_match_author_by_email"));
177 $null_emails = FeedWordPress::null_email_set();
178
179 $unfamiliar_category = array ('create'=>'','default'=>'','filter'=>'', 'tag'=>'');
180 $uc = FeedWordPress::on_unfamiliar('category');
181 if (is_string($uc) and array_key_exists($uc, $unfamiliar_category)) :
182 $unfamiliar_category[$uc] = ' checked="checked"';
183 endif;
184
185 if (isset($wp_db_version) and $wp_db_version >= 4772) :
186 $results = get_categories('type=link');
187
188 // Guarantee that the Contributors category will be in the drop-down chooser, even if it is empty.
189 $found_link_category_id = false;
190 foreach ($results as $row) :
191 if ($row->cat_id == $cat_id) : $found_link_category_id = true; endif;
192 endforeach;
193
194 if (!$found_link_category_id) : $results[] = get_category($cat_id); endif;
195 else :
196 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_id");
197 endif;
198
199 $cats = array_map('trim',
200 preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, get_option('feedwordpress_syndication_cats'))
201 );
202 $dogs = SyndicatedPost::category_ids($cats, /*unfamiliar=*/ NULL);
203
204 $tags = array_map('trim',
205 preg_split(FEEDWORDPRESS_CAT_SEPARATOR_PATTERN, get_option('feedwordpress_syndication_tags'))
206 );
207
208 if (fwp_test_wp_version(FWP_SCHEMA_27)) :
209 $icon = '<div class="icon32"><img src="'.htmlspecialchars(WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress.png').'" alt="" /></div>';
210 else :
211 $icon = '';
212 endif;
213
214 if (fwp_test_wp_version(FWP_SCHEMA_26)) :
215 $options = __('Settings');
216 else :
217 $options = __('Options');
218 endif;
219 ?>
220 <script type="text/javascript">
221 function contextual_appearance (item, appear, disappear, value, checkbox) {
222 var rollup=document.getElementById(item);
223 var newuser=document.getElementById(appear);
224 var sitewide=document.getElementById(disappear);
225 if (rollup) {
226 if ((checkbox && rollup.checked) || (!checkbox && value==rollup.value)) {
227 if (newuser) newuser.style.display='block';
228 if (sitewide) sitewide.style.display='none';
229 } else {
230 if (newuser) newuser.style.display='none';
231 if (sitewide) sitewide.style.display='block';
232 }
233 }
234 }
235 </script>
236
237 <div class="wrap">
238 <?php print $icon; ?>
239 <h2>Syndication <?php print $options; ?></h2>
240 <div id="poststuff">
241 <form action="" method="post">
242 <?php fwp_linkedit_single_submit(); ?>
243 <div id="post-body">
244 <?php fwp_option_box_opener('Syndicated Feeds', 'syndicatedfeedsdiv'); ?>
245 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
246 <tr>
247 <th width="33%" scope="row">Syndicated Link category:</th>
248 <td width="67%"><?php
249 echo "\n<select name=\"syndication_category\" size=\"1\">";
250 foreach ($results as $row) {
251 if (!isset($row->cat_id)) { $row->cat_id = $row->cat_ID; }
252
253 echo "\n\t<option value=\"$row->cat_id\"";
254 if ($row->cat_id == $cat_id)
255 echo " selected='selected'";
256 echo ">$row->cat_id: ".wp_specialchars($row->cat_name);
257 if ('Y' == $row->auto_toggle)
258 echo ' (auto toggle)';
259 echo "</option>\n";
260 }
261 echo "\n</select>\n";
262 ?></td>
263 </tr>
264
265 <tr style="vertical-align: top">
266 <th width="33%" scope="row">Check for feeds ready to be polled for updates:</th>
267 <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;">
268 <option value="yes"<?php echo ($automatic_updates)?' selected="selected"':''; ?>>automatically</option>
269 <option value="no"<?php echo (!$automatic_updates)?' selected="selected"':''; ?>>only when I request</option>
270 </select>
271 <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>
272 </td>
273 </tr>
274
275 <tr style="vertical-align: top">
276 <th width="33%" scope="row"><?php print __('Time limit on updates'); ?>:</th>
277 <td width="67%"><select id="time-limit" name="update_time_limit" size="1" onchange="contextual_appearance('time-limit', 'time-limit-box', null, 'yes');">
278 <option value="no"<?php echo ($update_time_limit>0)?'':' selected="selected"'; ?>>no time limit on updates</option>
279 <option value="yes"<?php echo ($update_time_limit>0)?' selected="selected"':''; ?>>limit updates to no more than...</option>
280 </select>
281 <span id="time-limit-box"><label><input type="text" name="time_limit_seconds" value="<?php print $update_time_limit; ?>" size="5" /> seconds</label></span>
282 </tr>
283
284 <script type="text/javascript">
285 contextual_appearance('time-limit', 'time-limit-box', null, 'yes');
286 </script>
287
288 <tr><th width="33%" scope="row" style="vertical-align:top">Feed information:</th>
289 <td width="67%"><ul style="margin:0;padding:0;list-style:none">
290 <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>
291 <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>
292 <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>
293 </ul></td></tr>
294 </table>
295 <?php fwp_linkedit_periodic_submit(); ?>
296 <?php fwp_option_box_closer(); ?>
297
298 <?php
299 fwp_option_box_opener(__('Syndicated Posts'), 'syndicatedpostsdiv');
300 ?>
301 <table class="editform" width="75%" cellspacing="2" cellpadding="5">
302 <tr style="vertical-align: top"><th width="44%" scope="row">Publication:</th>
303 <td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
304 <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>
305 <?php if (SyndicatedPost::use_api('post_status_pending')) : ?>
306 <li><label><input type="radio" name="post_status" value="pending"<?php echo ($post_status=='pending')?' checked="checked"':''; ?> /> Hold syndicated posts for review; mark as Pending</label></li>
307 <?php endif; ?>
308 <li><label><input type="radio" name="post_status" value="draft"<?php echo ($post_status=='draft')?' checked="checked"':''; ?> /> Save syndicated posts as drafts</label></li>
309 <li><label><input type="radio" name="post_status" value="private"<?php echo ($post_status=='private')?' checked="checked"':''; ?> /> Save syndicated posts as private posts</label></li>
310 </ul></td></tr>
311
312 <tr style="vertical-align: top"><th width="44%" scope="row">Permalinks point to:</th>
313 <td width="56%"><select name="munge_permalink" size="1">
314 <option value="yes"<?php echo ($munge_permalink=='yes')?' selected="selected"':''; ?>>original website</option>
315 <option value="no"<?php echo ($munge_permalink=='no')?' selected="selected"':''; ?>>this website</option>
316 </select></td></tr>
317
318 <tr style="vertical-align: top"><th width="44%" scope="row">Posts from aggregator feeds:</th>
319 <td width="56%"><ul style="margin: 0; padding: 0; list-style: none;">
320 <li><label><input type="radio" name="use_aggregator_source_data" value="no"<?php echo ($use_aggregator_source_data!="yes")?' checked="checked"':''; ?>> Give the aggregator itself as the source of posts from an aggregator feed.</label></li>
321 <li><label><input type="radio" name="use_aggregator_source_data" value="yes"<?php echo ($use_aggregator_source_data=="yes")?' checked="checked"':''; ?>> Give the original source of the post as the source, not the aggregator.</label></li>
322 </ul>
323 <p>Some feeds (for example, those produced by FeedWordPress) aggregate content from several different sources, and include information about the original source of the post.
324 This setting controls what FeedWordPress will give as the source of posts from
325 such an aggregator feed.</p>
326 </td></tr>
327
328 <tr style="vertical-align:top"><th width="44%" scope="row">Formatting filters:</th>
329 <td width="56%">
330 <select name="formatting_filters" size="1">
331 <option value="no"<?php echo ($formatting_filters!='yes')?' selected="selected"':''; ?>>Protect syndicated posts from formatting filters</option>
332 <option value="yes"<?php echo ($formatting_filters=='yes')?' selected="selected"':''; ?>>Expose syndicated posts to formatting filters</option>
333 </select>
334 <p>If you have trouble getting plugins to work that are supposed to insert
335 elements after posts (like relevant links or a social networking
336 <q>Share This</q> button), try changing this option to see if it fixes your
337 problem.</p>
338 </td></tr>
339 </table>
340 <?php
341 fwp_option_box_closer();
342 fwp_linkedit_periodic_submit();
343
344 fwp_option_box_opener(__('Categories for syndicated posts'), 'categorydiv', 'postbox');
345 fwp_category_box($dogs, '<em>all syndicated posts</em>');
346 ?>
347 <table class="editform" width="75%" cellspacing="2" cellpadding="5">
348 <tr style="vertical-align: top"><th width="27%" scope="row" style="vertical-align:top">Unfamiliar categories:</th>
349 <td><p>When one of the categories on a syndicated post is a category that FeedWordPress has not encountered before ...</p>
350 <ul style="margin: 0; padding:0; list-style:none">
351 <li><label><input type="radio" name="unfamiliar_category" value="create"<?php echo $unfamiliar_category['create']; ?>/> create a new category</label></li>
352 <?php if (fwp_test_wp_version(FWP_SCHEMA_23)) : ?>
353 <li><label><input type="radio" name="unfamiliar_category" value="tag"<?php echo $unfamiliar_category['tag']; ?>/> create a new tag</label></li>
354 <?php endif; ?>
355 <li><label><input type="radio" name="unfamiliar_category" value="default"<?php echo $unfamiliar_category['default']; ?>/> don't create new categories<?php if (fwp_test_wp_version(FWP_SCHEMA_23)) : ?> or tags<?php endif; ?></li>
356 <li><label><input type="radio" name="unfamiliar_category" value="filter"<?php echo $unfamiliar_category['filter']; ?>/> don't create new categories<?php if (fwp_test_wp_version(FWP_SCHEMA_23)) : ?> or tags<?php endif; ?> and don't syndicate posts unless they match at least one familiar category</label></li>
357 </ul></td></tr>
358 </table>
359 <?php
360 fwp_option_box_closer();
361 fwp_linkedit_periodic_submit();
362
363 if (isset($wp_db_version) and $wp_db_version >= FWP_SCHEMA_25) :
364 fwp_tags_box($tags);
365 fwp_linkedit_periodic_submit();
366 endif;
367
368 fwp_option_box_opener(__('Comments & Pings'), 'commentstatus', 'postbox');
369 ?>
370 <table class="editform" width="75%" cellspacing="2" cellpadding="5">
371 <tr style="vertical-align: top"><th width="44%" scope="row"><?php print __('Comments') ?>:</th>
372 <td width="56%"><ul style="margin: 0; padding: 0; list-style:none">
373 <li><label><input type="radio" name="comment_status" value="open"<?php echo ($comment_status=='open')?' checked="checked"':''; ?> /> Allow comments on syndicated posts</label></li>
374 <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>
375 </ul></td></tr>
376
377 <tr style="vertical-align: top"><th width="44%" scope="row"><?php print __('Pings') ?>:</th>
378 <td width="56%"><ul style="margin:0; padding: 0; list-style:none">
379 <li><label><input type="radio" name="ping_status" value="open"<?php echo ($ping_status=='open')?' checked="checked"':''; ?> /> Accept pings on syndicated posts</label></li>
380 <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>
381 </ul></td></tr>
382 </table>
383 <?php
384 fwp_option_box_closer();
385 fwp_linkedit_periodic_submit();
386
387 fwp_option_box_opener('Syndicated Authors', 'authordiv', 'postbox');
388
389 $unfamiliar_author = FeedWordPress::on_unfamiliar('author');
390 $authorlist = fwp_author_list();
391 ?>
392 <table>
393 <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>
394 <tr style="vertical-align: top">
395 <th style="text-align: left">Posts by new authors</th>
396 <td>
397 <select style="max-width: 16.0em;" id="unfamiliar-author" name="unfamiliar_author" onchange="contextual_appearance('unfamiliar-author', 'unfamiliar-author-newuser', 'unfamiliar-author-default', 'newuser');">
398 <option value="create"<?php if ('create'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>create a new author account</option>
399 <?php foreach ($authorlist as $author_id => $author_name) : ?>
400 <option value="<?php echo $author_id; ?>"<?php if ($author_id==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>are assigned to <?php echo $author_name; ?></option>
401 <?php endforeach; ?>
402 <option value="newuser">will be assigned to a user named...</option>
403 <option value="filter"<?php if ('filter'==$unfamiliar_author) : ?>selected="selected"<?php endif; ?>>get filtered out</option>
404 </select>
405 </td>
406 <td>
407 <div id="unfamiliar-author-newuser"><input type="text" name="unfamiliar_author_newuser" value="" /></div>
408 </td>
409 </tr>
410 <tr><td></td>
411 <td colspan="2">
412 <p>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=<?php print $GLOBALS['fwp_path']; ?>/syndication.php">Syndicated Sites</a></p>
413 </td>
414 </table>
415
416 <script type="text/javascript">
417 contextual_appearance('unfamiliar-author', 'unfamiliar-author-newuser', 'unfamiliar-author-default', 'newuser');
418 </script>
419
420 <h4>Matching Authors</h4>
421 <ul style="list-style: none; margin: 0; padding: 0;">
422 <li><div><label><input id="match-author-by-email" type="checkbox" name="match_author_by_email" value="yes" <?php if ($match_author_by_email) : ?>checked="checked" <?php endif; ?>onchange="contextual_appearance('match-author-by-email', 'unless-null-email', null, 'yes', /*checkbox=*/ true);" /> Treat syndicated authors with the same e-mail address as the same author.</label></div>
423 <div id="unless-null-email">
424 <p>Unless the e-mail address is one of the following anonymous e-mail addresses:</p>
425 <textarea name="null_emails" rows="3" style="width: 100%">
426 <?php print implode("\n", $null_emails); ?>
427 </textarea>
428 </div></li>
429 </ul>
430
431 <script type="text/javascript">
432 contextual_appearance('match-author-by-email', 'unless-null-email', null, 'yes', /*checkbox=*/ true);
433 </script>
434
435 <?php
436 fwp_option_box_closer();
437 fwp_linkedit_periodic_submit();
438
439 fwp_option_box_opener('Back End', 'backenddiv', 'postbox');
440 ?>
441 <table class="editform" width="100%" cellspacing="2" cellpadding="5">
442 <tr style="vertical-align: top">
443 <th width="33%" scope="row">Update notices:</th>
444 <td width="67%"><select name="update_logging" size="1">
445 <option value="yes"<?php echo (($update_logging=='yes')?' selected="selected"':''); ?>>write to PHP logs</option>
446 <option value="no"<?php echo (($update_logging!='yes')?' selected="selected"':''); ?>>don't write to PHP logs</option>
447 </select></td>
448 </tr>
449 <tr style="vertical-align: top">
450 <th width="33%" scope="row">Guid index:</th>
451 <td width="67%"><input class="button" type="submit" name="create_index" value="Create index on guid column in posts database table" />
452 <p>Creating this index may significantly improve performance on some large
453 FeedWordPress installations.</p></td>
454 </tr>
455 </table>
456 <?php
457 fwp_option_box_closer();
458 fwp_linkedit_periodic_submit();
459 fwp_linkedit_single_submit_closer();
460 ?>
461 </div>
462 </form>
463
464 </div> <!-- id="poststuff" -->
465 </div> <!-- class="wrap" -->
466 <?php
467 }
468
469 fwp_syndication_options_page();
470
471