(PageHtml): Print diff if possible, even if the page itself is too
large.
(GetRcRss): Conditionalize some prints to avoid empty elements.
(TimeToRFC822): Rewrote to not use sprintf such as to avoid
localized names.
(GetEditLink, GetDownloadLink, GetRcText, GetRcRss, )
(DoAdminPage, GetOldPageLink, GetSearchLink, GetAuthorLink)
(GetHeader, DoEdit, PrintPage, SearchTitleAndBody)
(SearchNearPages, PrintSearchResultEntry, GetPermanentAnchor): Use
NormalToFree instead of s/_/ /g.
(NormalToFree): New.
(UserIsEditor, UserIsAdmin): Simplify.
(UserIsEditorOrError): Use ReportError.
(DoRollback): Require a username (because of bots disregarding
robot instructions).
(DoHistory, GetHistoryLine): Make sure that you need either a
password or a username to see rollback links.
(InitVariables): Add counter if the script is being called
multiple times.
(RcHeader): Add view-rollback link.
(PrintAllPages, ValidIdOrDie, DoRandom): Simplified.
(DoRc, GetRcLines): Moved stripping of rollbacks from DoRc to
GetRcLines. Add parameter to GetRcLines.
(DoRollback): Add parameter to GetRcLines call in order to not
strip rollbacks. Fix bug which caused message printing at all
times.
(RcHeader, GetRc): Use rcmatch instead of match parameter.
(GetHistoryLink, GetRCLink): Use FreeToNormal.
(DoRollback): Rollback to empty pages is allowed. Print message
when only one page is to be rolled back and the two revisions are
the same.
(PrintHtmlDiff): Change messages used when displaying the diff.
Get rid of oldmajor. Show link to later minor edits when showing
last major edit diff.
(GetDiff): Changed s///g to s///ge.
(ExpireKeepFiles): Get rid of oldmajor.
(Save): Pass old diff on to UpdateDiffs. Get rid of oldmajor. Only
call UpdateDiffs if UseCache > 1.
(UpdateDiffs): Simplify. Get rid of oldmajor.
(GetRcLines): New. No longer generate warnings when reading empty
rc files (as is usual when creating a new wiki).
(DoRollback): Optimize by calling GetRcLines and parsing the
result instead of checking all pages. Allow rollback of single
pages.
(DoHistory): Pass new parameter to GetHistoryLine. Add link to
delete current page at the bottom.
(GetHistoryLine): Accept new parameter, and add rollback links
when appropriate.
(GetRcHtml): Simplify translation handling.
(DoEdit): Changed text of the file/text replacement link at the
bottom. Did this for all translation files, too!
(DoPost, PageDeletable): Don't treat $DeletedPage like a regular
expression.