*/ class WikiPlugin_CreatePage extends WikiPlugin { function getName () { return _("CreatePage"); } function getDescription () { return _("Create a Wiki page."); } function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision: 1.1.2.2 $"); } function getDefaultArguments() { return array('s' => false); } function run($dbi, $argstr, $request) { $args = $this->getArgs($argstr, $request); if (empty($args['s'])) return ''; return HTML($request->redirect(WikiURL($args['s'], 'action=edit', 'absurl'), true)); } }; // $Log: CreatePage.php,v $ // Revision 1.1.2.2 2004/02/23 21:22:29 dfrankow // Add a little doc // // Revision 1.1.2.1 2004/02/21 15:29:19 dfrankow // Allow a CreatePage edit box, as GUI syntactic sugar // // Revision 1.1.1.1 2004/01/29 14:30:28 dfrankow // Right out of the 1.3.7 package // // Revision 1.20 2003/11/02 20:42:35 carstenklapp // Allow for easy page creation when search returns no matches. // Based on cuthbertcat's patch, SF#655090 2002-12-17. // // Revision 1.19 2003/03/07 02:50:16 dairiki // Fixes for new javascript redirect. // // Revision 1.18 2003/02/21 04:16:51 dairiki // Don't NORETURN from redirect. // // Revision 1.17 2003/01/18 22:08:01 carstenklapp // Code cleanup: // Reformatting & tabs to spaces; // Added copyleft, getVersion, getDescription, rcs_id. // // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: ?>