+ } elseif (Env::has('send')) {
+ $page->trigError("Merci de remplir une explication du problème rencontré.");
+ }
+ }
+
+ function handler_wiki_help(&$page, $action = 'title')
+ {
+ $page->coreTpl('wiki.help.tpl', SIMPLE);
+ $page->assign('wiki_help', MiniWiki::help($action == 'title'));
+ }
+
+ /// Shared handler for wiki syntax result preview
+ function handler_wiki_preview(&$page, $action = 'title')
+ {
+ header('Content-Type: text/html; charset=utf-8');
+ $text = Env::v('text');
+ echo MiniWiki::wikiToHtml($text, $action == 'title');
+ exit;
+ }
+
+ function handler_sqlerror(&$page, $clear = null) {
+ global $globals;
+ $file = @fopen($globals->spoolroot . '/spool/tmp/query_errors', 'r');
+ if ($file !== false) {
+ echo '<html><body>';
+ fpassthru($file);
+ fclose($file);
+ echo '</html></body>';