PhpWiki is unable to save your changes, because\n" . "another user edited and saved the page while you\n" . "were editing the page too. If saving proceeded now\n" . "changes from the previous author would be lost.

\n" . "

In order to recover from this situation follow these steps:\n" . "

  1. Use your browsers Back button to go back " . "to the edit page.\n" . "
  2. Copy your changes to the clipboard or to another temporary " . "place (e.g. text editor).\n" . "
  3. Reload the page. You should now see the most current" . " version of the page. Your changes are no longer there.\n" . "
  4. Make changes to the file again. Paste your additions from " . "the clipboard (or text editor).\n" . "
  5. Press Save again.
\n" . "

Sorry for the inconvinience.

"; GeneratePage('MESSAGE', $html, "Problem while updating $pagename", 0); exit; } $pagename = rawurldecode($post); $pagehash = RetrievePage($dbi, $pagename); // if this page doesn't exist yet, now's the time! if (! is_array($pagehash)) { $pagehash = array(); $pagehash["version"] = 0; $pagehash["created"] = time(); $pagehash["flags"] = 0; $newpage = 1; } else { if(isset($editversion) && ($editversion != $pagehash["version"])) { ConcurrentUpdates($pagename); } // archive it if it's a new author if ($pagehash["author"] != $remoteuser) { SaveCopyToArchive($pagename, $pagehash); } $newpage = 0; } $pagehash["lastmodified"] = time(); $pagehash["version"]++; $pagehash["author"] = $remoteuser; // create page header $enc_url = rawurlencode($pagename); $enc_name = htmlspecialchars($pagename); $html = "Thank you for editing " . "$enc_name
\n"; if (! empty($content)) { // patch from Grant Morgan for magic_quotes_gpc if (get_magic_quotes_gpc()) $content = stripslashes($content); $pagehash["content"] = explode("\n", $content); // convert spaces to tabs at user request if ($convert) { $pagehash["content"] = CookSpaces($pagehash["content"]); } } for ($i = 1; $i <= NUM_LINKS; $i++) { if (! empty(${'r'.$i})) { if (preg_match("#^($AllowedProtocols):#", ${'r'.$i})) $pagehash['refs'][$i] = ${'r'.$i}; else $html .= "

Link [$i]: unknown protocol" . " - use one of $AllowedProtocols - link discarded.

\n"; } } InsertPage($dbi, $pagename, $pagehash); UpdateRecentChanges($dbi, $pagename, $newpage); $html .= "Your careful attention to detail is much appreciated.\n"; if ($WikiDataBase == "/tmp/wikidb") { $html .= "

Warning: the Wiki DBM file still lives in the " . "/tmp directory. Please read the INSTALL file and move " . "the DBM file to a permanent location or risk losing " . "all the pages!\n"; } $html .= "


"; include("wiki_transform.php3"); GeneratePage('BROWSE', $html, $pagename, $pagehash); ?>