Steve Smith, this plugin detects all ways to access your original WordPress feeds and redirects them to your FeedBurner feed so you can track every possible subscriber. Author: FeedBurner Author URI: http://www.feedburner.com Version: 2.3.1 */ $data = array( 'feedburner_url' => '', 'feedburner_comments_url' => '' ); $ol_flash = ''; function ol_is_authorized() { global $user_level; if (function_exists("current_user_can")) { return current_user_can('activate_plugins'); } else { return $user_level > 5; } } add_option('feedburner_settings',$data,'FeedBurner Feed Replacement Options'); $feedburner_settings = get_option('feedburner_settings'); function fb_is_hash_valid($form_hash) { $ret = false; $saved_hash = fb_retrieve_hash(); if ($form_hash === $saved_hash) { $ret = true; } return $ret; } function fb_generate_hash() { return md5(uniqid(rand(), TRUE)); } function fb_store_hash($generated_hash) { return update_option('feedsmith_token',$generated_hash,'FeedSmith Security Hash'); } function fb_retrieve_hash() { $ret = get_option('feedsmith_token'); return $ret; } function ol_add_feedburner_options_page() { if (function_exists('add_options_page')) { add_options_page('FeedBurner', 'FeedBurner', 8, basename(__FILE__), 'ol_feedburner_options_subpanel'); } } function ol_feedburner_options_subpanel() { global $ol_flash, $feedburner_settings, $_POST, $wp_rewrite; if (ol_is_authorized()) { // Easiest test to see if we have been submitted to if(isset($_POST['feedburner_url']) || isset($_POST['feedburner_comments_url'])) { // Now we check the hash, to make sure we are not getting CSRF if(fb_is_hash_valid($_POST['token'])) { if (isset($_POST['feedburner_url'])) { $feedburner_settings['feedburner_url'] = $_POST['feedburner_url']; update_option('feedburner_settings',$feedburner_settings); $ol_flash = "Your settings have been saved."; } if (isset($_POST['feedburner_comments_url'])) { $feedburner_settings['feedburner_comments_url'] = $_POST['feedburner_comments_url']; update_option('feedburner_settings',$feedburner_settings); $ol_flash = "Your settings have been saved."; } } else { // Invalid form hash, possible CSRF attempt $ol_flash = "Security hash missing."; } // endif fb_is_hash_valid } // endif isset(feedburner_url) } else { $ol_flash = "You don't have enough access rights."; } if ($ol_flash != '') echo '
' . $ol_flash . '
This plugin makes it easy to redirect 100% of traffic for your feeds to a FeedBurner feed you have created. FeedBurner can then track all of your feed subscriber traffic and usage and apply a variety of features you choose to improve and enhance your original WordPress feed.
'; echo 'Sorry, you are not allowed to access this page.