The page you are looking at now is at this URL: http://pastoid.com/an9
This paste was last updated on February 17, 2009 at 7:35 pm.
<?php class QuickPost extends Plugin { /** * function info * Returns information about this plugin * @return array Plugin info array **/ function info() { return array ( 'name' => 'Quick Post', 'url' => 'http://habariproject.org/', 'author' => 'Habari Community', 'authorurl' => 'http://habariproject.org/', 'version' => '.1', 'description' => '', 'license' => 'Apache License 2.0', ); } public function filter_rewrite_rules( $rules ) { $rules[] = new RewriteRule(array( 'name' => 'quickpost', 'parse_regex' => '/^quickpost[\/]{0,1}$/i', 'build_str' => 'quickpost', 'handler' => 'QuickpostHandler', 'action' => 'act_display_processor', 'priority' => 7, 'is_active' => 1, )); return $rules; } } class QuickpostHandler extends ActionHandler { public function act_display_processor($args) { $postdata= array( 'slug' => Utils::slugify( $args->handler_vars['title'] ), 'title' => $args->handler_vars['title'], 'tags' => $args->handler_vars['tags'], 'content' => $args->handler_vars['content'], 'user_id' => User::identify()->id, 'pubdate' => $args->handler_vars['date'], 'status' => Post::status( 'published' ), 'content_type' => 1, ); $post= Post::create( $postdata ); Utils::redirect( 'http://myintarweb.com/tracker/' . $post->slug ); } } ?>
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| pastoid.com | 6 |
| mibbit.com | 1 |
| search.live.com | 1 |
| drunkenmonkey.org | 1 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This