__construct(); } /** * PHP5 style contructor * * Hooks into all of the necessary WordPress actions and filters needed * for this plugin to function * * @since 1.0 * @return none */ function __construct() { AjaxPluginHelper::__construct(); add_action('admin_menu', array(&$this, 'add_options_page')) ; register_activation_hook($this->plugin_file, array(&$this, 'activation')); add_action('plugins_loaded', array(&$this, 'plugins_loaded')); } /** * Action hook callback for activation * * Initializes the plugin for first time use and notifies users of * any issues they may encounter. * * @since 1.0 * @return none */ function activation() { if ( !$this->can_modify_fs() ) { set_site_transient('ajax-plugin-helper-fs', true, 1); } } /** * Check if there are any messages to be displayed to the user * * @since 1.0 * @return none */ function plugins_loaded() { if ( ! current_user_can('update_plugins') ) return; if ( get_site_transient('ajax-plugin-helper-fs') == true ) { add_action('admin_notices', array(&$this, 'modify_fs_notice')); } load_plugin_textdomain('ajax-plugin-helper', false, $this->plugin_dir_basename . '/localization'); } /** * Action hook callback for displaying message letting * user know that ajax upgrade and delete functions * are not available due to not being able to perform * file system tasks without prompting for FTP/SSH/SFTP * credentials * * @sinec 1.0 * @return none */ function modify_fs_notice() { ?>
response[ $file ]) ) return false; $r = $current->response[ $file ]; $plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()); $plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags ); $details_url = admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&TB_iframe=true&width=600&height=800'); echo '