The page you are looking at now is at this URL: http://pastoid.com/bmd
This paste was last updated on January 17, 2009 at 10:25 am.
<?php class TestPlugin extends Plugin { /** * function info * Returns information about this plugin * @return array Plugin info array **/ function info() { return array ( 'name' => 'Test', 'url' => 'http://habariproject.org/', 'author' => 'Owen Winkler', 'authorurl' => 'http://asymptomatic.net/', 'version' => '1.0', 'description' => 'A test plugin', 'license' => 'Apache License 2.0', ); } public function filter_plugin_config( $actions, $plugin_id ) { if ( $plugin_id == $this->plugin_id() ) { $actions[]= _t( 'Mail me' ); } return $actions; } public function action_plugin_ui( $plugin_id, $action ) { if ( $plugin_id == $this->plugin_id() ) { switch ( $action ) { case _t( 'Mail me' ): Utils::mail(User::identify()->email, 'Hi from Habari!', 'This is a test message.', array('from'=>'habari@' . Site::get_url('hostname'))); Session::notice(_t('Sent email to %s', array(User::identify()->email))); break; } } } } ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| pastoid.com | 5 |
| search.live.com | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This