disabled(_("Raw HTML is disabled in this wiki.")); } if (!$basepage) { return $this->error("$basepage unset?"); } $page = $request->getPage($basepage); if (! $page->get('locked')) { return $this->disabled(fmt(_("%s is only allowed in locked pages."), _("Raw HTML"))); } return HTML::raw($argstr); } } // $Log: not supported by cvs2svn $ // Revision 1.6 2003/03/17 21:24:53 dairiki // Fix security bugs in the RawHtml plugin. // // Change the default configuration to allow use of plugin, since // I believe the plugin is now safe for general use. (Raw HTML will only // work on locked pages.) // // Revision 1.5 2003/01/18 22:01:43 carstenklapp // Code cleanup: // Reformatting & tabs to spaces; // Added copyleft, getVersion, getDescription, rcs_id. // // For emacs users // Local Variables: // mode: php // tab-width: 8 // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: ?>