Commit Graph

857 Commits

Author SHA1 Message Date
Alex Schroeder
534023fcf3 Also moved copyright notice and licence info back to the front of
the file and removed the standard POD info at the back of the
file.
2008-06-13 14:19:02 +00:00
Alex Schroeder
fce21298c1 ($DocumentHeader): New option.
(GetHtmlHeader): Use $DocumentHeader and GetFeeds.
(InitVariables): No longer set $HtmlHeaders to GetFeeds.
2008-06-13 13:44:14 +00:00
Alex Schroeder
04ab1dbdf6 Typo 2008-05-29 08:43:45 +00:00
Alex Schroeder
2b896b791f (PrintJournal): Add p element around the More... link. 2008-05-29 08:40:26 +00:00
Alex Schroeder
3af2d57ffd Fix typo. 2008-05-29 08:32:54 +00:00
Alex Schroeder
c501db8cf7 (PrintJournal): Remove content class from div.
(DoJournal): Add div with content class.
2008-05-29 08:28:47 +00:00
Alex Schroeder
2caf382dc9 (PrintJournal): Add content class to div. 2008-05-29 08:23:47 +00:00
Alex Schroeder
1a0f813bf4 (LinkRules): Fix typo. 2008-05-23 11:32:15 +00:00
Alex Schroeder
a8798ce1ed (LinkRules): Support [[url text]], [[url|text]],
and [url|text].
2008-05-23 11:19:15 +00:00
Alex Schroeder
e0c69c4685 Revert change to default $DataDir. 2008-03-08 00:41:33 +00:00
Alex Schroeder
0e3d719289 *** empty log message *** 2008-03-08 00:05:55 +00:00
Alex Schroeder
3d4b0cdfd9 Collected all POD documentation in the back. Shortened considerably. 2008-03-08 00:03:56 +00:00
Alex Schroeder
b993dc7725 Some whitespace changes. 2008-03-07 23:27:51 +00:00
Alex Schroeder
3b58d93428 (ScriptLink): Moved the URL modifying code into a
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.
2008-03-07 09:48:14 +00:00
Alex Schroeder
f290bd92be ($VERSION): New expression based on CVS keyword
splitting and many changes involving perldoc and the options at
the beginning of the file.
2008-02-29 09:34:10 +00:00
Alex Schroeder
a0c7c0b885 (InitLinkPatterns): $FreeLinkPattern no longer allows
linking to the page named "0" (zero).
2008-02-25 00:07:44 +00:00
Alex Schroeder
0879395fd3 Delete trailing whitespace. 2008-02-24 23:46:58 +00:00
grandfather
c8e9081c86 As a first step toward CPAN-compatibility,
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.
2008-02-10 20:16:17 +00:00
Alex Schroeder
c0972d1b8b (PrintHtmlDiff): Handle cache=0 as noted by Markus Lude. 2008-02-01 09:53:56 +00:00
Alex Schroeder
b96191ec9b (PrintFooter): Print newline at the very end. 2008-02-01 07:14:21 +00:00
Alex Schroeder
fec8e9c5b6 (DebugInterLinks): Only print header if InterSite
contains anything.
2008-01-10 10:54:02 +00:00
Alex Schroeder
de10f971a2 (UnWiki): New function to split WikiWords.
(GetHeader): Use UnWiki for the page page title.
2008-01-03 01:13:01 +00:00
Alex Schroeder
21450eff79 (UserCanEdit): %LockOnCreation only affects permissions
when the page is new. Once it exists, the lock file determines
permissions.
2007-12-22 20:49:38 +00:00
Alex Schroeder
0a5d0e588a (GetFooterLinks, GetCommentForm): Use the parameter $id
instead of the global $OpenPageName.
2007-12-15 22:41:41 +00:00
Alex Schroeder
69e1f331c3 (GetFeeds): Removed link using match and kept just rcidonly. 2007-12-14 13:33:40 +00:00
Alex Schroeder
b97ae390f3 (GetHtmlHeader): Add charset http-equiv meta tag. 2007-12-14 13:24:35 +00:00
Alex Schroeder
99e84b0d45 (GetHtmlHeader): Bugfixing. 2007-12-14 09:40:15 +00:00
Alex Schroeder
f3b346c91c (GetHtmlHeader, GetRobots, GetFeeds, InitVariables):
Moved meta element generation from into GetRobots and GetFeeds.
Set $HtmlHeaders via GetFeeds in InitVariables so that users can
append to the default value.
2007-12-14 08:58:20 +00:00
Alex Schroeder
52727bc2ea (GetInterLink): Enclose the ":" in a separate span. 2007-11-22 18:24:35 +00:00
Alex Schroeder
5879bd12dd (GetRcHtml): Wrap the entire list in a form block so
that the rollback buttons actually have an effect.
2007-11-13 23:23:57 +00:00
Alex Schroeder
c060df2449 (GetRcLines, StripRollbacks): Move the rollback
stripping into a separate sub.
2007-11-13 20:27:05 +00:00
Alex Schroeder
d7814f2cbf (GetHtmlHeader): Add
xmlns="http://www.w3.org/1999/xhtml" to the html element.
2007-11-06 14:46:07 +00:00
Alex Schroeder
d5bc7eae08 (DoHistory): Add compare button to the top of the list. 2007-11-03 00:01:21 +00:00
Alex Schroeder
3b4e23f5b5 *** empty log message *** 2007-10-26 16:18:10 +00:00
Alex Schroeder
7a10418e3b (LinkRules): Unquote alt text. 2007-10-24 19:06:27 +00:00
Alex Schroeder
ab13587443 (InitCookie, CookieUsernameFix, CookieRollbackFix): Move
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.
2007-10-22 16:38:30 +00:00
Alex Schroeder
2b44b91097 (GetPageLink): Removed page name to tests for local links again. 2007-10-06 20:28:37 +00:00
Alex Schroeder
8ba73ff3b5 (GetPageLink): Add the pagename to the link class. 2007-10-06 14:19:26 +00:00
Alex Schroeder
6bd4a82e07 (DoRollback): Fix call to WriteRcLog in order to leave the target_id
marker in the correct spot.
2007-10-06 13:27:22 +00:00
Alex Schroeder
cc68c1dcbd (GetRcLines): Handle rollback hiding for single page
rollbacks.
(DoRollback): Leave marker for single page rollbacks.
(RcTextRevision): Encode id for the current revision.
2007-10-06 12:24:38 +00:00
Alex Schroeder
a39fe69a43 ($NewText): Changed default to "This page is empty.\n" 2007-10-04 17:12:41 +00:00
Alex Schroeder
12a8197636 (BrowsePage): Use $NewText if looking at a page that
does not yet exist.
(OpenPage): When opening a nonexisting page, don't store $NewText
as the default text.
2007-10-04 17:09:24 +00:00
Alex Schroeder
3c09baba0c (ScriptLink): Get rid of the last parameter to generate nofollow
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.
2007-10-04 08:57:45 +00:00
Alex Schroeder
0da016da3b (RssItem): Don't append the summary to the title if
showing full page content.
2007-10-03 09:09:02 +00:00
Alex Schroeder
3d08623373 (DoAdminPage): Sort AdminPages when printing the list.
(%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.
2007-10-02 10:13:14 +00:00
Alex Schroeder
8b78d523df (GetFooterLinks): UrlEncode id for admin link.
(GetHistoryLine): UrlEncode id for rollback link.
2007-09-29 16:04:33 +00:00
Alex Schroeder
564be892df (@IndexOptions): New.
(%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.
2007-09-27 15:56:06 +00:00
Alex Schroeder
4ab63bd8d3 (ApplyRules): Add a pattern for #REDIRECT in order to
prevent mismatches for non-existing link-patterns.
(BrowsePage): Add explanation for failed redirections.
2007-09-25 15:28:07 +00:00
Alex Schroeder
6a0224352a (BrowsePage): Save a line. 2007-09-24 08:24:32 +00:00
Alex Schroeder
4a9696c0a2 (DiffMarkWords): Tighter.
(DiffHtmlMarkWords): Fix named entities if they have been pulled
appart by the diff highlighting.
2007-09-12 12:17:38 +00:00