update_wpdb($_POST); if(!get_option($this->wp_option_name)) { add_option($this->wp_option_name, ''); $this->rodape = ' '; } else { $this->rodape = stripslashes(get_option($this->wp_option_name)); } $this->add_hooks(); } function update_wpdb($data) { global $wpdb; $str = $data[$this->wp_option_name]; if (get_option($this->wp_option_name) != $str) update_option($this->wp_option_name, $str); } function add_hooks() { // Add Admin Menu add_action('admin_menu', array(&$this, 'admin_menu')); // Adds the rodape add_action('get_footer', array(&$this, 'get_rodape')); } function get_rodape() { _e($this->rodape); } // Manage Admin Options function admin_menu() { // Add admin page to the Presentation Tab of the admin section add_options_page('Anonimação CTDO', 'Anonimação CTDO', 8, basename(__FILE__), array(&$this, 'admin_page')); } // Admin page function admin_page() { if ($_POST['anonimacaoctdo_update']) _e('

Auto Anonimação atualizado

'); //show styles _e(' '); //show form _e('

Código:

Se você for utilizador, apenas subistitua todo o código abaixo pelo seu código personalizado.

'); } // end function admin_page } // end class // Instantiate anonimacaoctdo class $dbd_anon = new anonimacaoctdo(); ?>