Alex Schroeder
a1995ad00e
(PageDeletable): Delete empty pages, too.
...
(ApplyRules): Changed the way $bol is computed to a substring
comparison instead of a regular expression match.
2005-04-23 19:44:51 +00:00
Alex Schroeder
f8383c4f76
(PageDeletable): Delete empty pages, too.
2005-04-23 15:33:58 +00:00
Alex Schroeder
e0d6032355
(LinkRules): Make sure named entities such as < > and &
...
are handled correctly at the end of an URL.
(TimeToW3): New.
(GetRcText): Use TimeToW3 instead of CalcDay.
(GetRcRss): Use TimeToW3 instead of doing it manually.
(ExpireKeepFiles): Handle lastmajor like oldmajor.
(DoShowVersion): Report mod_perl.
2005-04-12 22:27:42 +00:00
frodo72
8f6e958615
Isolated test for uploaded file in FileIsText sub.
...
FileIsText can be used in list context to get the mime type!
2005-04-11 17:38:18 +00:00
frodo72
597889a92f
Hopefully definitively fixed bug for previous version diffing.
...
Note that oldmajor could be still wrong in page database...
2005-04-07 16:16:18 +00:00
Alex Schroeder
26dcbe18bf
(GetKeptDiff): Use GetTextRevision instead of
...
duplicating code.
(Save): Fix handling of oldmajor by introducing a new key,
lastmajor.
(UpdateDiffs): Changed argument list, changed to also handle new
oldmajor.
2005-04-05 23:01:11 +00:00
Alex Schroeder
c7e9946015
(Save): Fix handling of $oldmajor.
2005-04-05 21:10:02 +00:00
Alex Schroeder
14ca0f16c6
(GetCurrentRequest): Deleted.
...
(GetCurrentPageName): Deleted.
(GetId): New, returns the id as set in the request, like
GetCurrentRequest used to do, but don't return a "dirty_id" and
"error". Split info_path and set all parameters with these names
to 1. This is more generic than specialcasing "raw".
(DoBrowseRequest): Call GetId.
2005-04-03 02:27:37 +00:00
Alex Schroeder
92545a2372
(RSS): Use LWP::Parallel::UserAgent if available.
2005-03-27 01:24:55 +00:00
frodo72
c2e4d44ce5
The DoBrowseRequest() method has been splitted and some functionalities can be accessed now via the GetCurrentRequest() method. As a side effect, you can access the currently selected page via the GetCurrentPage() method, which will give you either OpenPageName, if already available, or will munge it using GetCurrentRequest. This is particularly useful inside modules' initialisation functions.
2005-03-25 11:40:22 +00:00
frodo72
39e8b0a2bd
Separated the actual diff' call from GetDiff(), now DoDiff() is in charge of spawning diff' process. This has been changed in DiffMarkWords too. As a positive side effect, ImproveDiff (and DiffMarkWords) do not need to be called while the temporary lock is active any more.
...
A similar separation process will follow regarding `diff3'.
Version of `diff'-`diff3' programs is output only if UseDiff is exactly equal to 1; this allows modules overriding DoDiff to set UseDiff to higher values and void invocation of programs while still setting DoDiff to a true value.
2005-03-25 11:16:24 +00:00
Alex Schroeder
0df4528029
Removed the global $first variable, since it made no
...
sense when ApplyRules was called for cached HTML fragments.
(ApplyRules): Removed $first, moved link rules to new sub, call
RunMyRules with $locallinks, $withanchors parameters.
(LinkRules): Moved all link rules to new sub.
(@MyRules): Initialize with LinkRules.
(RunMyRules): Call the various rules with $locallinks and
$withanchors parameters.
2005-03-18 22:32:16 +00:00
frodo72
d5208c7f15
Corrected a bug in GetDiff() while calling GetDownloadLink().
2005-03-16 11:15:23 +00:00
Alex Schroeder
eacc36cdd2
(DoPageLock): Add link back to the page.
2005-03-12 01:00:54 +00:00
Alex Schroeder
836d30e106
(ApplyRules): Removed debug warnings that got checked
...
in...
2005-03-06 16:31:59 +00:00
Alex Schroeder
f30f0c4801
(DoBrowseRequest): Added CGI error message suggested by
...
Tim Jenness.
2005-02-02 22:08:08 +00:00
Alex Schroeder
c5584090da
(BrowsePage): Revert last change: DO report 404 for non-existing pages
...
even when using raw=1.
2005-02-02 00:09:11 +00:00
Alex Schroeder
33e70469f2
(BrowsePage): No longer report 404 for non-existing pages even when
...
using raw=1, as oddwiki.taoriver.net kept reporting a 404.
2005-02-01 23:58:23 +00:00
Alex Schroeder
3d977c6223
(BrowsePage): Report 404 for non-existing pages even
...
when using raw=1.
2005-02-01 23:28:26 +00:00
Alex Schroeder
ee4efdb1a9
(ApplyRules): Fix typo found by Flavio Poletti.
2005-01-31 23:27:03 +00:00
Alex Schroeder
6a6c5ee7b3
(CreateDir): Add error if mkdir fails.
2005-01-24 17:43:46 +00:00
Tilmann Holst
20ac55673d
Added missing start_html() to ReportError
2005-01-20 11:45:22 +00:00
Alex Schroeder
c65b98da07
(RSS): Fix rfc 822 date parsing regular expression.
2005-01-19 21:05:11 +00:00
Alex Schroeder
c362eaa2c1
(handler): Added no strict "refs" pragma after a report
...
by Ross Thomas.
2005-01-08 00:02:41 +00:00
Alex Schroeder
94a9125e26
(handler): Typo: Use my.
2005-01-07 16:03:26 +00:00
Alex Schroeder
cdeca94f45
(handler): Don't set $RunCGI.
2005-01-07 08:53:44 +00:00
Alex Schroeder
5bfda829a7
(handler): Set all sort of variables from environment
...
variables.
2005-01-07 08:51:49 +00:00
Alex Schroeder
0c1dc29a05
(InitVariables): Typo.
2005-01-07 00:46:23 +00:00
Alex Schroeder
8d43d86cbe
Moved referrer tracking into a module. Removed
...
appropriate values from several variables.
(InitVariables, BrowsePage): Related changes.
(DoAdminPage, DoMaintain, DeletePage): Ditto.
(GetRefererFile, ReadReferers, ExpireReferers, GetReferers)
(UpdateReferers, WriteReferers, RefererTrack)
(DoPrintAllReferers, PrintAllReferers): Removed.
2005-01-07 00:41:57 +00:00
Alex Schroeder
a1f2ce32a4
(InitDirConfig): New, set all directories here.
...
(Init): Call it.
(handler): New, for mod_perl.
2005-01-06 23:21:53 +00:00
Alex Schroeder
effde5cc05
(ApplyRules): Use Clean instead of print for the p
...
element that opens after include, rss, and journal tags.
(RSS): Use div instead of strong for descriptions containing HTML.
2005-01-06 10:25:03 +00:00
Alex Schroeder
7c0cbff9a7
(GetHttpHeader): Added handling of HEAD requests.
2005-01-06 07:28:51 +00:00
Alex Schroeder
b8b1db69a4
(RSS, GetRcHtml): Use ndash to separate summary from the
...
rest of the item. The dash is in a new span.
2005-01-05 22:19:39 +00:00
Alex Schroeder
9c9ca9eb0c
(RSS): Take dash out of the strong element with the description.
2005-01-05 21:27:06 +00:00
Alex Schroeder
fe74541eb8
(@MyAdminCode): New option.
...
(@AdminBlocks): Removed option.
(DoAdminPage): Rewritten to take advantage of the new @MyAdminCode.
2005-01-05 01:18:35 +00:00
Alex Schroeder
8863b2dd50
Update copyright year.
2005-01-05 00:34:52 +00:00
Alex Schroeder
4d8cb033c1
(@MyInitVariables): New option.
...
(InitVariables): Use it.
(DoAdminPage): Bugfix.
(GetFooterLinks): Add class.
2005-01-04 08:53:53 +00:00
Alex Schroeder
8386477251
(DoAdminPage): Treat space.
2005-01-04 07:43:58 +00:00
Alex Schroeder
b47516248d
(DoAdminPage): Add more actions.
...
(DoUnlock, DoMaintain): Changed title.
2005-01-04 07:30:15 +00:00
Alex Schroeder
b5743ed9a6
(DoAdminPage): Use edit links for non-existing important pages.
2005-01-04 06:47:58 +00:00
Alex Schroeder
ca0540035a
(@AdminPages, @AdminBlocks): New options.
...
(%Action): Register admin action.
(InitVariables): Set @AdminPages.
(DoAdminPage): New.
(PrintFooter): No longer print admin bar.
(GetAdminBar): Deleted.
(GetFooterLinks): Link to admin page.
(DoIndex): Add menu for the various parameters.
(DoEditLock, DoPageLock): Touch index file (invalidate the cache).
2005-01-04 06:27:00 +00:00
Alex Schroeder
78cfbacf63
(InitLinkPatterns): Remove "" delimiter from
...
$FreeLinkPattern and $FreeInterLinkPattern.
(ApplyRules): Unquote URLs in include and rss rules.
2005-01-02 15:49:23 +00:00
Alex Schroeder
89d4aa3fc3
(RSS): Add RFC 822 Parsing for RSS 2.0.
...
(DoDownload): Fix regexp for #FILE.
(DoShowVisitors, DoPrintAllReferers): Add content div.
2004-12-26 23:34:05 +00:00
Alex Schroeder
04fda7548d
(DoPost): Only determine new authors if there is an old
...
revision that is being changed.
2004-12-22 03:04:00 +00:00
Alex Schroeder
b4d3d17cbe
($DefaultStyleSheet): Minor twiddling.
2004-12-21 00:41:51 +00:00
Alex Schroeder
03e46d191d
(ApplyRules): Locally set $OpenPageName when including local
...
pages.
2004-12-19 16:41:42 +00:00
Alex Schroeder
04e5e15120
(Save): Moved automatic lock creation back to after the
...
SavePage call in order to make sure the directory exists.
2004-12-19 15:51:39 +00:00
Alex Schroeder
a82ae94af8
(InitVariables): Removed handling of $HtmlHeaders.
...
(GetHtmlHeader): Add site RSS and page RSS if $HtmlHeaders is not
set.
2004-12-19 14:00:17 +00:00
Alex Schroeder
de962aed6b
(PrintPageHtml, BrowsePage): Don't print cache if using
...
$UseCache=-1.
(PrintHtmlDiff): Take cache=0 and cache=-1 into account when
serving diffs.
(DiffMarkWords): Append trailing newlines.
2004-12-19 13:44:31 +00:00
Alex Schroeder
7a9d4c5c23
(PrintFooter): Changed 'time' parameter to 'timing' to
...
avoid collision with Timezone Extension.
2004-12-18 15:51:18 +00:00