separate sub.
(ScriptUrl): New.
(GetRcRss, RssItem): No longer provide a quoted $ScriptName. Use
ScriptUrl instead of manually concatenating the quoted $ScriptName
with code testing $UsePathInfo. This is now handled by ScriptUrl.
o perldoc is added to wiki.pl
o To aid automatic tools including Makefile.PL
o $VERSION='...' is added
o quotes in regexs are escaped
Current installations should see no behavioral differences
from this checkin.
Those who wish can read the perldoc.
The documentation indicates the plans for CPAN/rpm distribution
o package oddmuse => package OddMuse::Wiki
o FHS-2.3 default pathnames
o /var/opt/oddmuse/...,
(/tmp is required to be safely removable)
o /etc/opt/oddmuse/...
o /opt/oddmuse/wiki/...,
At this time configuration by variables is not known to
be CPAN or rpm compatible.
Future conventional configuration by environment, and PATH,
will be added and may alter the default directories.
At this time the version must be set in two places
$VERSION='...' and q{$Id ...
In the future, the latter will be set automatically by Makefile.PL
from the former.
Moved meta element generation from into GetRobots and GetFeeds.
Set $HtmlHeaders via GetFeeds in InitVariables so that users can
append to the default value.
username testing from InitCookie to a new sub and add rollback
testing. The reason is that for submit buttons, all the info is
encoded in the name attribute; the value is used for the label.
(GetRcHtml, GetHistoryLine): Use a submit button instead of a link
for rollbacks.
links explicitly. Instead, generate nofollow links whenever an
action is invoked. Thus, only ordinary links should be followed.
(RcHeader): No longer generate nofollow links explicitly. Instead,
rely on the new code in ScriptLink.
(GetHtmlHeader): Simplify the generation of the robots meta tag.
Use INDEX,FOLLOW for the browse action without any revisions and
NOINDEX,FOLLOW for everything else.
(%NearSite, %NearSource, %NearLinksUsed, $NearDir)
($NearMap, %NearSearch, $SisterSiteLogoUrl): Deleted.
(@IndexOptions): Removed near pages from the default value.
(%Action, @Debugging, DoDebug, DebugInterLinks, DoShowVersion):
Added debug action and moved interling debugging from the version
action to the debugging action. Simplified DoShowVersion by
showing dependencies always.
(NearInit, ReInit): Deleted NearInit; no longer call it from
ReInit.
(ResolveId): No longer resolve near links.
(PrintFooter, @MyFooters, GetSisterSites, GetNearLinksUsed):
Deleted GetSisterSites and GetNearLinksUsed; no longer call them
from PrintFooter; add the new option @MyFooters instead where
modules can add code.
(DoSearch, SearchMenu): Remove link to near search; moved the link
to search result changes into SearchMenu.
(SearchNearPages): Deleted.
(DoMaintain): Removed near cache maintenance.
(%PermanentAnchors, $PermanentAnchors)
($PermanentAnchorsFile): Deleted.
(PermanentAnchorsInit, ReInit): PermanentAnchorsInit deleted.
(LinkRules): Rule for permanent anchors deleted.
(ResolveId): Name resolution for permanent anchors deleted.
(GetHistoryLink): Special handling of permanent anchors removed.
(DoIndex): Major rewrite using @IndexOptions, replacing all
permanent anchors and near links related code. Use checkboxes
instead of links.
(DoPost, DeletePage, DeletePermanentAnchors):
DeletePermanentAnchors deleted.
(PermanentAnchorsInit, WritePermanentAnchors)
(GetPermanentAnchor): Deleted.