$v) { $content = preg_replace('#[\s|\,|\?|\!]'.$k.'[\s|\,|\?|\!]#si', '$0', $content); } return $content; } function ag_admin_content() { echo '

agLinker Settings

About agLinker

Donate with MicroPayment

Donate with PayPal

Link Management

Put your words that should be linked here. Format: [WordToBeLinked]|[Description]|[URL] (one per line)




'; } function ag_admin_box() { add_menu_page('agLinker', 'agLinker', 8, basename(__file__), '' , plugins_url('icon.png',__FILE__)); add_submenu_page(basename(__file__), 'agLinker Settings', 'Edit Links', 8, basename(__file__), 'ag_admin_content'); } if (!get_option('aglinker_wordlist')) { add_option('aglinker_wordlist', ''); } if (isset($_POST["aglinker_wordlist"]) && !empty($_POST["aglinker_wordlist"])) { update_option('aglinker_wordlist', $_POST["aglinker_wordlist"]); } add_action('admin_menu', 'ag_admin_box'); add_filter( 'the_content', 'filter_agLinker'' ); ?>