($BannedHosts): New variable for the page name.
(DoBrowseRequest): No more editbanned action and edit_ban parameter.
(UserIsBanned): Test now opens the $BannedHosts page.
(DoPost): Added test such that only admins can create the $BannedHosts file.
(Save): When saving the first revision of the $BannedHosts file, lock it.
(DoEditBanned): Deleted.
(DoUpdateBanned): Deleted.
(ScriptLink): No more quoting of the action, this happens
automatically.
(DoPrintAllReferers): New function.
(DoBrowseRequest): New refer action.
(GetReferers): Fixed spelling of Referer to Referrer.
Lots of tiny changes -- moved from the &foo() notation to foo().
Saved some lines by changing some if conditions around.
This patch is very big!
Unified all lock requests and releases:
(RequestDiffLock, ReleaseDiffLock, RequestVisitorsLock)
(ReleaseVisitorsLock, RequestMergeLock, RequestMergeLock)
(ReleaseMergeLock, ReleaseRefererLock, RequestIndexLock)
(ReleaseIndexLock): Removed, changed callers.
(InitRequest): Set $ReplaceForm to 0.
(GetSearchForm): Add a replace item if $ReplaceForm is set.
(DoSearch): Call Replace when replacement is given.
(Replace): New function.
(DoPost): Removed $isEdit and $editTime. Use $Now instead. Moved
the saving code into Save.
(Save): New function.
(WriteRcLog): Use $Now instead of $editTime.
(ReBrowsePage): Rename $isEdit to $minor.
(GetRc, GetRcHtml, GetRcRss, GetRcText, GetRedirectPage): Ditto.
(DoEdit, WriteRcLog, UpdateDiffs): Ditto.
(DoBrowseRequest): Added new ping action.
(DoPost): Call PingWeblogs for major edits if $NotifyWeblogs is set.
(PingWeblogs): New.
(DoPingWeblogs): New.
(RFC): Include the RFCLink code.
(RFCLink): Removed.
(ISBN): Include the ISBNLink code.
(ISBNLink): Removed.
hidden in some subroutine.
(OpenNewText): Just use $NewText.
(DoPost): If oldrev is 1 and the new text is $NewText, then do not
save.
Patch by Pierre Gaston <pgas@intracom.gr>:
Many subroutines: Replaced print &GetFooter(...) with
&PrintFooter(...).
(GetFooter, PrintFooter): Renamed GetFooter to PrintFooter, and
changed concatenations to prints.
(InitRequest): Ditto.
(InitCookie): Ditto.
(BrowsePage): Print header later, set $Message for the messages
"Revision %s not available" and "Showing revision %s".
(BrowsePage): Added new div class="rc" for recent changes output.
(GetHeader): Changed header layout. Logo and GotoBar are now at
the top, followed by messages, page title, and content. Added div
and special days.
(GetGotoBar): Removed special days from the goto bar.
(GetFooterText, GetCommonFooter, GetMinimumFooter): Replaced by GetFooter.
(GetFooter): New, unified, added div.
(DoHistory): Use GetFooter with history parameter.
(DoUnlock): Use GetFooter.
(DoEdit): Use GetFooter with edit parameter.
(DoPassword, DoEdit, UserIsEditorOrError, UserIsAdminOrError)
(DoSearch, DoLinks, DoPrintAllPages, DoMaintain, DoMaintain)
(DoIndex, DoConvert, DoEditLock, DoPageLock, DoEditBanned)
(DoUpdateBanned, DoShowVersion, DoShowVisitors): Use GetFooter.
(GetHeader): Use it.
($Monolithic): New variable.
(ScriptLink): Use it.
(DoBrowseRequest): New action 'all'.
(DoUnlock): Rewrote using a loop.
(GetFullLinkList): Rewrote variable declarations a bit.
(ReleaseRefererLock, RequestRefererLock): Avoid declaring a variable for just one call.
(DoPrintAllPages): New function.
(PrintAllPages): New function.