'.__('Please update!', 'ure').''; if (version_compare($wp_version,"2.8","<")) { return ($exit_msg); } require_once('ure-lib.php'); load_plugin_textdomain('ure','', $urePluginDirName.'/lang'); function ure_optionsPage() { global $wpdb, $ure_OptionsTable; if (!current_user_can('activate_plugins')) { die('action is forbidden'); } ?>

".__('Settings','ure').""; array_unshift( $links, $settings_link ); } return $links; } // end of ure_plugin_action_links function ure_plugin_row_meta($links, $file) { if ($file == plugin_basename(dirname(__FILE__).'/user-role_editor.php')){ $links[] = ''.__('Changelog', 'ure').''; } return $links; } // end of ure_plugin_row_meta function ure_settings_menu() { if ( function_exists('add_users_page') ) { $ure_page = add_users_page('User Role Editor', 'User Role Editor', 9, basename(__FILE__), 'ure_optionsPage'); add_action( "admin_print_styles-$ure_page", 'ure_adminCssAction' ); } } // end of ure_settings_menu() function ure_adminCssAction() { wp_enqueue_style('ure_admin_css', URE_PLUGIN_URL.'/css/ure-admin.css', array(), false, 'screen'); } // end of ure_adminCssAction() if (is_admin()) { // activation action register_activation_hook(__FILE__, "ure_install"); add_action('admin_init', 'ure_init'); // add a Settings link in the installed plugins page add_filter('plugin_action_links', 'ure_plugin_action_links', 10, 2); add_filter('plugin_row_meta', 'ure_plugin_row_meta', 10, 2); add_action('admin_menu', 'ure_settings_menu'); } ?>