is_admin()) { $html = "

"; $html .= gettext ("This page has been locked by the administrator and cannot be edited."); $html .= "\n

"; $html .= gettext ("Sorry for the inconvenience."); $html .= "\n"; echo GeneratePage('MESSAGE', $html, sprintf (gettext ("Problem while editing %s"), $pagename), 0); ExitWiki (""); } $textarea = htmlspecialchars(implode("\n", $pagehash["content"])); } else { if (preg_match("/^${WikiNameRegexp}\$/", $pagename)) $newpage = $pagename; else $newpage = "[$pagename]"; $textarea = htmlspecialchars(sprintf(gettext("Describe %s here."), $newpage)); unset($pagehash); $pagehash["version"] = 0; $pagehash["lastmodified"] = time(); $pagehash["author"] = ''; $currentpage = $pagehash; } echo GeneratePage('EDITPAGE', $textarea, $pagename, $pagehash); // For emacs users // Local Variables: // mode: php // c-file-style: "ellemtel" // End: ?>