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

"; $html .= gettext ("Sorry for the inconvinience."); $html .= "\n"; GeneratePage('MESSAGE', $html, sprintf (gettext ("Problem while editing %s"), $pagename), 0); ExitWiki (""); } $textarea = implode("\n", $pagehash["content"]); if ($copy) { // $cdbi = OpenDataBase($WikiPageStore); $currentpage = RetrievePage($dbi, $pagename, $WikiPageStore); $pagehash["version"] = $currentpage["version"]; } elseif ($pagehash["version"] > 1) { if(IsInArchive($dbi, $pagename)) $pagehash["copy"] = 1; } } else { $textarea = sprintf(gettext ("Describe %s here."), htmlspecialchars($pagename)); unset($pagehash); $pagehash["version"] = 0; } GeneratePage('EDITPAGE', $textarea, $pagename, $pagehash); ?>