Savannah CVS Surfing
- Log of /oddmuse/oddmuse/wiki.pl
Parent Directory
Revision
1.954 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 19 15:19:34 2011 UTC (5 months, 3 weeks ago) by
as
Branch:
MAIN
Changes since
1.953: +20 -17 lines
Diff to
previous 1.953
(PrintJournal, PrintAllPages): Journal pages no longer print deleted pages.
(DoMaintain): PageDeletable doesn't require a parameter.
(PageDeletable): Split into two.
(PageMarkedForDeletion): New, used by PrintAllPages.
Revision
1.951 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 12 22:42:00 2011 UTC (7 months ago) by
as
Branch:
MAIN
Changes since
1.950: +10 -8 lines
Diff to
previous 1.950
(TextIsFile): Extract encoding from the file.
(DoDownload): Take encoding and pass it on.
(GetHttpHeader): Accept encoding parameter and add HTTP header.
(DoPost): Save gzip encoding if the file content starts with the
magic bytes.
Revision
1.945 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jul 6 15:37:10 2011 UTC (10 months, 1 week ago) by
as
Branch:
MAIN
Changes since
1.944: +6 -5 lines
Diff to
previous 1.944
(GetRcRss): Add Dublin Core (dc) and Atom (atom)
namespace. Switch cc prefix to http://web.resource.org/cc/. Switch
channel link from RecentChanges to the HomePage. Fix image title
and link to match the channel title and link. Add atom self link.
(RssItem): Repace wiki:username with dc:contributor. Use link for
guid element.
Revision
1.941 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 7 02:11:53 2010 UTC (18 months, 1 week ago) by
as
Branch:
MAIN
Changes since
1.940: +106 -101 lines
Diff to
previous 1.940
* wiki.pl (InitLinkPatterns): $FreeLinkPattern now inlcudes
%&?;<>.
(LinkRules, UnquoteHtml, GetPageOrEditLink, GetDownloadLink)
(GetId, BrowsePage, PrintRcHtml, RssItem, DoHistory)
(DoContributors, GetHeader, GetHtmlHeader, GetFeeds)
(FreeToNormal, NormalToFree, DoEdit): Implement the various
changes required to allow the extra characters. This includes
issues of HTML quoting and unquoting, and the dangers of double
encoding. Unfortunately, it's a big mess.
Revision
1.939 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 10 15:27:49 2010 UTC (20 months ago) by
as
Branch:
MAIN
Changes since
1.938: +17 -16 lines
Diff to
previous 1.938
(RequestLockDir): Don't enter an infinite loop of trying
requesting a lock and trying to unlock. Unlocking can fail if the
permissions are wrong, for example (user running the script
changed, for example).
Revision
1.931 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 13 22:32:34 2009 UTC (2 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.930: +15 -17 lines
Diff to
previous 1.930
(LatestChanges, RcHtml, RcHeader): Change to parameter
to upto parameter because there was a conflict with the to
parameter used by the rollback action.
Revision
1.930 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 6 14:33:00 2009 UTC (2 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.929: +59 -53 lines
Diff to
previous 1.929
(LatestChanges): Handle "to" parameter.
(RcHeader): Report use of "to" parameter
(RcHtml): Add More... link.
(DebugInterLinks): Moved to debug.pl.
Revision
1.929 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 19 16:17:50 2009 UTC (2 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.928: +6 -9 lines
Diff to
previous 1.928
(SearchRegexp, SearchString): Remove the test for
invalid regular expressions.
(DoSearch): Report invalid regular expressions as an error.
Revision
1.928 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 19 13:59:07 2009 UTC (2 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.927: +6 -4 lines
Diff to
previous 1.927
(SearchRegexp): Keep the test for invalid regular
expressions but do not return it as a result because the value
cannot be passed to grep.
Revision
1.927 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 15 22:11:14 2009 UTC (2 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.926: +10 -6 lines
Diff to
previous 1.926
(SearchString, SearchRegexp): Handle invalid regular
expressions by compiling the regular expression, and if that
fails, use quotemeta on it and use that instead.
Revision
1.926 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 3 22:24:24 2009 UTC (2 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.925: +5 -4 lines
Diff to
previous 1.925
(DoPost): Apparently we cannot count on <$file> to
always work within the eval, so we use a local variable. (Showed
up on a site.)
Revision
1.922 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 22 00:28:22 2009 UTC (2 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.921: +5 -7 lines
Diff to
previous 1.921
(ApplyRules): No longer localize $OpenPageName and %Page
for the <search regexp> rule.
(PrintJournal): No longer localize $OpenPageName and %Page before
calling PrintAllPages().
(PrintAllPages, SearchTitleAndBody): Instead, localize them here.
This will prevent bugs when the OpenPage is called from other
locations.
Revision
1.918 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri May 22 18:58:57 2009 UTC (2 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.917: +14 -10 lines
Diff to
previous 1.917
(GetCommentForm): Added a span around each input field
below the textarea.
(DoMaintain): Do not a newline if the rc.log file contains no more
entries (by default this only happens if the wiki has not been
edited in 90 days).
Revision
1.917 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 9 12:38:30 2009 UTC (3 years ago) by
as
Branch:
MAIN
Changes since
1.916: +12 -12 lines
Diff to
previous 1.916
(DoHistory): Handle date changes here in order to avoid
declaring a variable and having to pass it by reference to
GetHistoryLine.
(GetHistoryLine): Simplified. Also, don't set a revision if
comparing an older revision with the current one.
Revision
1.915 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 5 22:07:40 2009 UTC (3 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.914: +4 -4 lines
Diff to
previous 1.914
(GrepFiltered): Short circuit if we end up with an empty
regular expression. This can happen when using tags.pl and only
specifying -tag:foo.
Revision
1.911 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 27 21:40:20 2009 UTC (3 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.910: +5 -5 lines
Diff to
previous 1.910
(GrepFiltered): Use find and grep because on larger
wikis the command line is too large.
(DoShowVersion): Print find version as well.
Revision
1.907 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 16 17:11:54 2009 UTC (3 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.906: +5 -7 lines
Diff to
previous 1.906
(GetId): Do not return $HomePage if no id has been
specified.
(DoBrowseRequest): Don't report an invalid URL if no id has been
specified. Just browse the HomePage instead.
Revision
1.905 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Mar 14 19:33:15 2009 UTC (3 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.904: +5 -4 lines
Diff to
previous 1.904
(GetId): Use keywords when determining the default page
for the wiki, since recent versions will set parameters.
Revision
1.900 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Mar 12 21:20:56 2009 UTC (3 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.899: +22 -26 lines
Diff to
previous 1.899
($NewCookie): Deleted.
(InitCookie, CookieUsernameFix, CookieRollbackFix, GetParam)
(SetParam): Get rid of $NewCookie.
(CookieUsernameFix): Make sure that with $FreeLinks and $WikiLinks
unset, single words are still allowed.
Revision
1.898 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 11 08:48:19 2009 UTC (3 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.897: +15 -18 lines
Diff to
previous 1.897
(DoSearch, ApplyRules): Replace HighlightRegex with SearchRegexp.
(GrepFiltered): Use SearchRegexp, too. And search AllPagesList.
(HighlightRegex): Deleted.
(SearchRegexp): New.
Revision
1.894 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 22 10:07:47 2009 UTC (3 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.893: +8 -7 lines
Diff to
previous 1.893
(GetParam): Get result from NewCookie before getting it
from $q->param -- this will make SetParam have the intended effect.
(DoBrowseRequest): Fake a search action before calling DoSearch;
since the action is now explicitly not browse, GetRobots will
produce a NOFOLLOW header.
Revision
1.892 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Dec 8 01:10:03 2008 UTC (3 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.891: +5 -16 lines
Diff to
previous 1.891
(GetEditForm): Remove extra closing div.
(@MyBeforeApplyRules, @MyAfterApplyRules): Removed.
(ApplyRules): Removed call of code on @MyBeforeApplyRules.
(PrintWikiToHTML): Removed call of code on @MyAfterApplyRules.
Revision
1.889 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 3 11:46:49 2008 UTC (3 years, 5 months ago) by
leycec
Branch:
MAIN
Changes since
1.888: +4 -4 lines
Diff to
previous 1.888
* wiki.pl (PrintWikiToHTML): Moved "@MyBeforeApplyRules"-specific
code into the ApplyRules() routine. This corrects a number of
subtle issues with the Crossbar module: especially, the Crossbar
module's erroneous handling of uploaded files. (Thanks, Ingo
Belka!)
* modules/crossbar.pl (CrossbarBeforeApplyRule): Corrected this
module's erroneous handling of uploaded files.
(RunMyRulesTocCrossbar): New function, offloading a Crossbar-
specific hack from "toc.pl" into this file. (This is still...
slightly hacky, but a bit better.)
* modules/toc.pl (TocRule): Allowed more than one table of contents
per page. Before, this module only recognized the first "<toc...>"
markup for a Wiki page: all subsequent "<toc...>" markup for that
page was studiously ignored. Correcting this improves integration
with the Crossbar module.
(RunMyRulesToc): Removed a Crossbar-specific hack.
(TocAfterApplyRule): Allowed more than one table of contents.
($TocIsApplyingAutomaticRules): New option, providing slightly
finer-grained control over Table of Contents handling.
Revision
1.887 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 27 21:47:52 2008 UTC (3 years, 5 months ago) by
leycec
Branch:
MAIN
Changes since
1.886: +2 -1 lines
Diff to
previous 1.886
* modules/wiki.pl: Added a CVS-enabled version notice to this file's
header comments This should make it easier for Oddmuse users to
ascertain which Oddmuse version they're using.
Revision
1.885 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 23 22:08:34 2008 UTC (3 years, 5 months ago) by
leycec
Branch:
MAIN
Changes since
1.884: +41 -44 lines
Diff to
previous 1.884
* wiki.pl (GetEditForm): Added the 'upload' class attribute to
upload links produced by this function, for CSS stylization.
(BrowsePage): Calls the new "PrintPageContent" function.
(PrintPageContent): New function, whose implementation has been
extracted from the "BrowsePage" function. This permits external
modules -- like the new Crossbar module -- to override this
function and thereby print page content in a module-specific
manner.
Revision
1.884 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 20 11:45:45 2008 UTC (3 years, 5 months ago) by
leycec
Branch:
MAIN
Changes since
1.883: +3 -3 lines
Diff to
previous 1.883
* wiki.pl (SetHtmlEnvironmentContainer): Corrected a slight, but
significant, typo.
* modules/sidebar.pl: Reverted. I underestimated the scope of
changes needed to bring this module in line with recent, other
changes to the Table of Contents module. The good news is that the
reverted Sidebar module now works as expected for all modules except
the Table of Contents module; of course, the bad news is that the
reverted Sidebar module no longer works for the Table of Contents
module. (Unfortunately, we can't have both, here.) I will be
recommitting my changes to this module as a new module, therefore,
named "modules/crossbar.pl" -- sometime, soon. That new module
will (probably) break backwards compatibility with this module, but
will otherwise behave as expected... with all modules.
* t/sidebar.t: Prevented testing against the Table of Contents
module, as the Sidebar module is now known not to work with that
module.
Revision
1.882 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 15 21:24:32 2008 UTC (3 years, 6 months ago) by
leycec
Branch:
MAIN
Changes since
1.881: +9 -9 lines
Diff to
previous 1.881
* wiki.pl (RegisterBlockLevelElement): Renamed to
SetHtmlEnvironmentContainer (and changed in every other module,
where called).
Revision
1.881 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 15 12:53:26 2008 UTC (3 years, 6 months ago) by
leycec
Branch:
MAIN
Changes since
1.880: +0 -0 lines
Diff to
previous 1.880
* wiki.pl (AddHtmlEnvironment): Corrected a minor regression.
Probably not a genuine issue... but one can never tell.
* modules/creole.pl (CloseHtmlEnvironmentsCreole): Removed.
* modules/creoleaddition.pl (CloseHtmlEnvironmentsCreoleAddition):
Removed.
* modules/poetry.pl (CloseHtmlEnvironmentsPoetry): Removed.
Revision
1.880 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 15 12:40:49 2008 UTC (3 years, 6 months ago) by
leycec
Branch:
MAIN
Changes since
1.879: +72 -73 lines
Diff to
previous 1.879
* wiki.pl (@MyAfterApplyRules): New global list. This is a list of
subroutine references, much like @MyRules. Unlike @MyRules, whose
subroutines are called by ApplyRules() while iterating through wiki
page markup, @MyAfterApplyRules subroutines are called by
PrintWikiToHTML(), iteratively, after all calls to ApplyRules().
This may not sound like much -- certainly, no deep invention.
Actually, however, it permits post-processing of all emitted HTML.
This, in turn, allows us to reimplement the Table of Contents
module ("toc.pl"), so as to remove the hacks upon which that
module formerly depended. This is a good thing. Perhaps, even a
great thing! As Alex can attest, "toc.pl" (and its retinue of
oddball hacks) has given Oddmuse some dire trouble, over time.
That's all past now...thanks be to the Nordic Gods.
(@MyBeforeApplyRules): New global list. This is a list of
subroutine references, much like @MyRules. Like @MyAfterApplyRules,
above, @MyBeforeApplyRules subroutines are not called by
ApplyRules() while iterating through wiki page markup but rather by
PrintWikiToHTML(), iteratively, before all calls to ApplyRules().
This, also, may not sound like much. However, it permits pre-
processing of all emitted HTML. This, in turn, allows us to
reimplement the Sidebar module ("sidebar.pl"), so as to remove the
hacks upon which that module formerly depended. (Praise be to Odin.)
(%BlockLevelElements): New global hash. This hash should not be
assigned to directly, but through the new
RegisterBlockLevelElement() function. Its keys are HTML tags:
'table', 'blockquote', 'div', and so. Its values are regular
expressions matching HTML tag attributes: 'class="poem"',
'align="right"', and so on. That's the structure. Here's how it
works: this hash has one key for each HTML tag to be considered a
"block-level element." Block-level elements are not closed when
closing HTML environments with CloseHtmlEnvironments(). Instead,
they must be explicitly closed with, say,
CloseHtmlEnvironment('table'). CloseHtmlEnvironments() now closes
all environments up to but not including those whose HTML tag
matches a key in %BlockLevelElements and whose HTML tag attributes
match a value in %BlockLevelElements. Thus, if Oddmuse is currently
in a "<table>...</table>" environment, calling
CloseHtmlEnvironments() now closes all environments up to but not
including the table. This is a good thing. This allows modules
to define block-level markup that can, itself, contain block-level
markup -- say, markup for a "<blockquotes>...</blockquotes>"
environment containing markup for a "<pre class='poem'>...</pre>"
environment containing markup for a "<ol>...</ol>" environment.
Prior to the introduction of this hash, block-level markup could
not contain other block-level markup -- since most modules "open" a
new HTML environment for such markup by first calling
CloseHtmlEnvironments(), which, of course, closes the HTML
environments of all "parent" block-level markup of this markup.
Slightly mind-bending, isn't it?
(RegisterBlockLevelElement): New function. (I'm not entirely happy
with the verb 'register', here, but could think of nothing better.)
(CloseHtmlEnvironments): Use the %BlockLevelElements hash to ensure
block-level element HTML environments are not closed. (Of course,
this is an amortized constant-time lookup. No efficiency concern,
here!)
(PrintWikiToHTML): Use the @MyBeforeApplyRules and
@MyAfterApplyRules lists, to perform HTML pre- and post-processing.
Revision
1.879 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 5 09:42:05 2008 UTC (3 years, 6 months ago) by
leycec
Branch:
MAIN
Changes since
1.878: +251 -248 lines
Diff to
previous 1.878
* wiki.pl (@HtmlAttrStack): New global variable. This permits
the InElement() and [Add|Close]HtmlEnvironment() family of
functions to add, remove, and search against HTML tag attributes
for all recently stacked HTML tag environments. Previously, tag
attributes were not retained; they were simply returned as text
from the AddHtmlEnvironment() function. Markup modules producing
complex HTML -- particularly, complex HTML having deeply nested
span or div tags -- can leverage the newly rewritten functions,
below, to simplify, streamline, and "clean up" their markup code.
(InElement): Rewritten to use this new variable.
(AddHtmlEnvironment): Rewritten to use this new variable.
(CloseHtmlEnvironment): Rewritten to use this new variable.
(CloseHtmlEnvironments): Rewritten to use this new variable.
(CloseHtmlEnvironmentUntil): Rewritten to use this new variable.
(AddOrCloseHtmlEnvironment): New function. Added so as to avoid
duplicate redefinition in the Creole, Creole Addition, and Usemod
modules.
* modules/usemod.pl (UsemodRule): Corrected erroneous usage of the
InElement() function. (I don't think UsemodRule() was ever quite
right, really; it's a bit surprising it worked this long!)
Revision
1.878 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 24 04:34:10 2008 UTC (3 years, 6 months ago) by
leycec
Branch:
MAIN
Changes since
1.877: +6 -11 lines
Diff to
previous 1.877
* modules/wiki.pl (OpenHtmlEnvironment): Generalized list closure
by delegating that closure to the "CloseHtmlEnvironments" function.
This permits other extensions (namely, the Creole Markup extension)
to redefine the "CloseHtmlEnvironments" function and thereby
precisely override just when and how list markup is closed.
* modules/creole.pl ($CreoleDashStyleUnorderedLists): New option.
(RunMyRules): New function.
(CreoleRule): Improved conformance to the Wiki Creole standard by
strictly requiring, among other notable things, that horizontal
rules consist of four and only four dashes, that all image links
to images on the Wiki (e.g., image "FreeLinks") be marked as dirty
blocks, that the nowiki markup strictly require the opening and
closing three braces to reside on their own lines having no other
markup, and that preformatted code not extend over multiple blocks.
(CreoleListAndNewLineRule): Avoid handling dash-style unordered
list markup unless explicitly requested by the new
"$CreoleDashStyleUnorderedLists" option being set to 1 (since
that markup is non-standard, and explicitly contradicts the Wiki
Creole standard).
* t/creole.t: Adjusted tests broken by the above modifications;
these were, typically, tests for nowiki and preformatted markup
that assumed a less conformant, gentler handling of that markup.
Revision
1.876 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 6 06:11:20 2008 UTC (3 years, 7 months ago) by
leycec
Branch:
MAIN
Changes since
1.875: +5 -7 lines
Diff to
previous 1.875
* wiki.pl (ApplyRules): Ensure the regular expression match
position returns the length of the matched string on finishing
application of all rules. ("creole.pl" and "creoleaddition.pl" now
depend on this; it notifies them that rules are now finished.)
* modules/creoleaddition.pl (CreoleAdditionRule): Injected a sanity
check, to ensure closure of blockquotes at the end of a page.
* modules/creole.pl ($CreoleTableCellsAllowBlockLevelElements): New
option.
* modules/creole.pl (CreoleRule): The last, one hopes, of all Creole
table markup modifications (for the moment). The rather complex
table markup code has been modified so as to use the new option, has
been refactored for robustness and strict conformance to the Wiki
Creole standard, and has been well-documented.
* modules/creole.pl (CreoleGetTableHtmlAttributes): Deleted function.
Revision
1.875 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 4 03:30:50 2008 UTC (3 years, 7 months ago) by
leycec
Branch:
MAIN
Changes since
1.874: +184 -183 lines
Diff to
previous 1.874
* modules/creole.pl (CreoleRuleRecursive): New function. Permits embedding
of Wiki Creole syntax within Wiki Creole syntax. (Yes... This is confusing?)
* modules/creole.pl (CreoleRule): Used the new function. Specifically, you
can now embed Creole and CreoleAddition syntax (such as bold, italics, small
caps, and so on) within URL and Wiki link text, ala
"[[Some_Page|Wow! **Quite** an //%%interesting page%%// page, here]]."
* modules/creoleaddition.pl (CreoleAdditionRule): Renamed function from
"CreoleAdditionRules" to this.
Revision
1.873 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 2 22:19:21 2008 UTC (3 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.872: +25 -9 lines
Diff to
previous 1.872
($UseGrep): New option. Set by default.
(SearchTitleAndBody): Use GrepFiltered.
(GrepFiltered): New code to filter AllPagesList using grep if
$UseGrep is set.
(ReadFile): Slight rearranging of the lines.
Revision
1.868 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 21 22:07:45 2008 UTC (3 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.867: +7 -7 lines
Diff to
previous 1.867
(GetRcRss): Since this sub no longer takes RC lines as
parameters, there's no point in passing @_ to ProcessRcLines.
Revision
1.867 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 20 00:08:11 2008 UTC (3 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.866: +333 -297 lines
Diff to
previous 1.866
($RssStrip): New option.
(ItemName): Strip the default date from the item title.
(BrowsePage): Replace call to PrintRc with PrintRcHtml.
(BrowseRc): Replace call to PrintRc with PrintRcHtml. Use
PrintRcText instead of DoRcText.
(PrintRc, DoRcText, DoRc, GetRc, GetRcHtml, GetRcText): Deleted.
(GetRcLines): Moved.
(LatestChanges, RcHtml, PrintRcHtml, PrintRcText): New.
(StripRollbacks): Change to new format returned by GetRcLines.
(GetRcLinesFor): Factored out the per-file code of GetRcLines.
(ProcessRcLines): Calls the per day and per item code fragments.
(RcHeader): Return HTML instead of printing it.
(GetRcHtml, GetRcRss): Call ProcessRcLines instead of GetRc.
(DoRss): Call GetRcRss instead of DoRc and passing GetRcRss.
(DoContributors): Set parameters instead of relying on the default
behaviour of GetRcLines.
Revision
1.863 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 11 14:33:05 2008 UTC (3 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.862: +4 -4 lines
Diff to
previous 1.862
Move the RunMyMacros code from BrowsePage back to DoPost so that all
things that change the submitted text are concentrated there.
Revision
1.862 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 11 14:22:53 2008 UTC (3 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.861: +21 -13 lines
Diff to
previous 1.861
(RunMyMacros): New.
(BrowsePage): Call RunMyMacros on the result of AddComment.
(DoPost): Call RunMyMacros on the concatenated page body +
comment.
(AddComment): Call RunMyMacros on the comments, too.
Revision
1.857 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 13 14:19:02 2008 UTC (3 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.856: +28 -137 lines
Diff to
previous 1.856
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.
Revision
1.856 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 13 13:44:14 2008 UTC (3 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.855: +8 -6 lines
Diff to
previous 1.855
($DocumentHeader): New option.
(GetHtmlHeader): Use $DocumentHeader and GetFeeds.
(InitVariables): No longer set $HtmlHeaders to GetFeeds.
Revision
1.844 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 7 09:48:14 2008 UTC (4 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.843: +30 -24 lines
Diff to
previous 1.843
(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.
Revision
1.843 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 29 09:34:10 2008 UTC (4 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.842: +2999 -3003 lines
Diff to
previous 1.842
($VERSION): New expression based on CVS keyword
splitting and many changes involving perldoc and the options at
the beginning of the file.
Revision
1.840 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 10 20:16:17 2008 UTC (4 years, 3 months ago) by
grandfather
Branch:
MAIN
Changes since
1.839: +291 -25 lines
Diff to
previous 1.839
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.
Revision
1.835 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Dec 22 20:49:38 2007 UTC (4 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.834: +2 -2 lines
Diff to
previous 1.834
(UserCanEdit): %LockOnCreation only affects permissions
when the page is new. Once it exists, the lock file determines
permissions.
Revision
1.830 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 14 08:58:20 2007 UTC (4 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.829: +31 -16 lines
Diff to
previous 1.829
(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.
Revision
1.822 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 22 16:38:30 2007 UTC (4 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.821: +19 -6 lines
Diff to
previous 1.821
(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.
Revision
1.818 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 6 12:24:38 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.817: +22 -7 lines
Diff to
previous 1.817
(GetRcLines): Handle rollback hiding for single page
rollbacks.
(DoRollback): Leave marker for single page rollbacks.
(RcTextRevision): Encode id for the current revision.
Revision
1.816 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 4 17:09:24 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.815: +2 -3 lines
Diff to
previous 1.815
(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.
Revision
1.815 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 4 08:57:45 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.814: +15 -21 lines
Diff to
previous 1.814
(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.
Revision
1.813 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 2 10:13:14 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.812: +47 -144 lines
Diff to
previous 1.812
(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.
Revision
1.811 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 27 15:56:06 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.810: +38 -131 lines
Diff to
previous 1.810
(@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.
Revision
1.810 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 25 15:28:07 2007 UTC (4 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.809: +12 -8 lines
Diff to
previous 1.809
(ApplyRules): Add a pattern for #REDIRECT in order to
prevent mismatches for non-existing link-patterns.
(BrowsePage): Add explanation for failed redirections.
Revision
1.808 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 12 12:17:38 2007 UTC (4 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.807: +6 -4 lines
Diff to
previous 1.807
(DiffMarkWords): Tighter.
(DiffHtmlMarkWords): Fix named entities if they have been pulled
appart by the diff highlighting.
Revision
1.802 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 3 23:47:42 2007 UTC (4 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.801: +41 -45 lines
Diff to
previous 1.801
(GetRcRss, RssItem): Rearrange code, move the RssItem generation
out to a new function. Required for module/enclosure.pl.
Revision
1.801 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 20 07:20:58 2007 UTC (4 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.800: +28 -28 lines
Diff to
previous 1.800
(GetSearchForm): Add delete checkbox.
(PrintSearchResult): Call PrintPage if the context parameter is
set.
(Replace): Return the list of pages changed.
(DoSearch): Handle delete checkbox. Ignore context parameter here
and call PrintSearchResult always. Use Unicode right arrow instead
of ->. Use the list of changed pages returned from Replace() to
print the result for replacements.
Revision
1.798 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 3 10:40:51 2007 UTC (4 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.797: +2 -2 lines
Diff to
previous 1.797
(GetCss): Make sure the css parameter replaces the
StyleSheetPage instead of adding to it. This fixes a bug
introduced in revision 1.784.
Revision
1.797 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jul 2 11:59:22 2007 UTC (4 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.796: +46 -40 lines
Diff to
previous 1.796
(GetRcText, RcTextRevision): Moved code out of GetRcText
into a separate sub.
(DoHistory): Support raw=1 and use RcTextRevision to print raw
history items.
(GetLanguages): Got rid of useless $count.
Revision
1.795 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 30 12:33:18 2007 UTC (4 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.794: +34 -25 lines
Diff to
previous 1.794
(RcHeader): Added RSS links and handle followup parameter.
(GetFilterForm): Make sure the form fields are shown in the
correct order every time instead of being random. Add followup field.
(GetRc): Handle followup.
(GetFooterLinks): Only print history, contrib, and admin
links if the action is still defined.
Revision
1.791 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 11 00:37:49 2007 UTC (4 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.790: +4 -4 lines
Diff to
previous 1.790
(GetHttpHeader): Use the second parameter as a
timestamp, if defined and not 'nocache'. This allows us to set a
last-modified date whenever we have one.
Revision
1.785 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 30 10:58:11 2007 UTC (4 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.784: +16 -25 lines
Diff to
previous 1.784
($UseQuestionmark): New option.
(LinkRules): Fix $bracket for [WikiWord text].
(GetPageOrEditLink, GetDownloadLink): Changed display of edit
links and implement !$UseQuestionmark code.
Revision
1.784 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue May 29 13:26:04 2007 UTC (4 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.783: +12 -21 lines
Diff to
previous 1.783
(GetCss): Rewritten more tersely and allow it to return
the first URL only.
(ReportError): Rewrite GetHtmlHeader and using a div with the
error class to allow styling.
Revision
1.783 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue May 29 12:21:15 2007 UTC (4 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.782: +5 -5 lines
Diff to
previous 1.782
(ReportError): Add two newlines at the end and exit with
an error code.
(GetHttpHeader): Print two newlines at the end if only a HEAD
request was sent.
(GetId): Return HomePage if path_info is just a slash (/).
Revision
1.782 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu May 10 15:38:10 2007 UTC (5 years ago) by
as
Branch:
MAIN
Changes since
1.781: +2 -1 lines
Diff to
previous 1.781
(Save): We need to reset %IndexHash and @IndexList when
a page is created to force systems running FCGI to recreate the
pageidx file. This is necessary to communicate between processes.
Revision
1.771 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 31 08:16:06 2007 UTC (5 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.770: +32 -32 lines
Diff to
previous 1.770
(InitCookie, PrintWikiToHTML, PrintAllPages)
(BrowseResolvedPage, GetRcLines, GetRc, GetRcRss)
(DoContributors, DoRollback, GetFooterLinks, GetCommentForm)
(OpenPage, UserCanEdit, BannedContent, PrintSearchResult)
(DoPost, GetSummary, GetCluster, DoMaintain, ReadRecentVisitors):
Add /o to m//, s///, grep, and split calls where appropriate.
Revision
1.768 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 30 20:58:26 2007 UTC (5 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.767: +5 -6 lines
Diff to
previous 1.767
(GetHeader): Put all the content into a div.wrapper.
(PrintFooter): Put a div.close at the end of the content, and
close div.wrapper.
Revision
1.765 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 20 00:51:26 2007 UTC (5 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.764: +4 -3 lines
Diff to
previous 1.764
(GetTextAtTime): Make sure we note any major revision
between now and the target timestamp.
(DoPost): Ignore second return value of GetTextAtTime.
Revision
1.762 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jan 14 16:05:35 2007 UTC (5 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.761: +5 -7 lines
Diff to
previous 1.761
(BannedContent, DoPost): Move message "See ... for more
information" from DoPost to BannedContent, so that strange-spam.pl
can provide a different link target.
(BannedContent): Extract banned content comment and
display it, if possible.
Revision
1.759 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jan 12 01:33:15 2007 UTC (5 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.758: +62 -58 lines
Diff to
previous 1.758
(GetRcLines, GetRc, GetRcHtml, GetRcText, GetRcRss):
Changed $pagename to $id and $timestamp to $ts.
(GetOldPageLink, GetRcRss): Pass $last to GetPageParameters.
(GetPageParameters): Don't add revision parameter if $last.
(GetRcRss, GetRcText, GetRcHtml): Accept $last for printRCLine sub.
(BrowseRc): Pass $RCName along.
(GetRcLines): Fix off-by one error. Count down from $#fullrc
instead of @fullrc.
(GetRc): No longer pass an undefined revision to &$printRCLine;
instead, pass the changetime as an additional $last parameter.
(GetRcHtml): Add logic using $rollback_was_possible and
$rollback_is_possible to add a last rollback link to the entry
after the last one within the timewindow. In calls to
GetOldPageLink and ScriptLinkDiff, make the test by comparing
$last to $timestamp when $all is set.
(RollbackPossible): If $ts is $LastUpdate, no rollback is possible
-- these are the last changes.
Revision
1.755 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 21 21:35:35 2006 UTC (5 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.754: +3 -2 lines
Diff to
previous 1.754
(ReportError): Write lock before releasing the locks and
define $q if it is not defined so we can report errors before
InitRequest, as suggested by Péter Szabó.
Revision
1.753 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 11 11:14:44 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.752: +3 -3 lines
Diff to
previous 1.752
(DoJournal): Pass search parameter along to
PrintJournal.
(PrintJournal): Pass search parameter along to "More..." link.
Revision
1.751 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 10 01:22:24 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.750: +46 -59 lines
Diff to
previous 1.750
(InitVariables, ReInit): Reorganized initialization.
Functions get called in ReInit, and the various $*Init variables
were removed.
(RssInterwikiTranslateInit, NearInit, InterInit, AllPagesList):
Get rid of $*Init variables.
(AllPagesList): Move the reading of all existing pages inside the
lock to prevent race conditions.
(Save): Make sure to use the same timestamp for all variables.
(GetPermanentAnchor): Reread the file inside the lock to prevent
race conditions.
Revision
1.749 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 8 00:24:54 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.748: +20 -19 lines
Diff to
previous 1.748
(DelayRequired): Simplified.
(GetLanguages): Simplified.
(ParseData): Hand-written to optimize for speed. By getting rid of
some regular expressions used for parsing, the code is now more
than 10x faster. This is important for default searching, and for
indexed search using double-quotes.
Revision
1.748 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 7 12:29:06 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.747: +33 -22 lines
Diff to
previous 1.747
(ApplyRules, PrintJournal): Add past and future
keywords.
(PrintJournal): Removed comment with journal metadata because the
attempt to write an AJAX "more" implementation for journals using
journal.js has been abandoned.
($Today): New option.
(JournalSort): Add one-liner explicitly so that we don't need to
test using defined later.
(GetSummary): Fix code that added " . . . " to summaries that are
being cut off.
(AddRecentVisitor): Simplified.
Revision
1.745 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 5 22:58:10 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.744: +14 -5 lines
Diff to
previous 1.744
(%Action): Added journal.
(DoJournal): New, calls PrintJournal.
(PrintJournal): Addd "More..." link if appropriate. No longer
print horizontal lines before pages.
Revision
1.742 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 30 20:09:19 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.741: +7 -5 lines
Diff to
previous 1.741
(DoCss): Report missing LWP::UserAgent or wrong URL.
(GetCommentForm): Pass comment parameter to UserCanEdit();
(UserCanEdit): New comment parameter, enable $EditAllowed = 3.
Revision
1.740 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 27 20:15:34 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.739: +25 -24 lines
Diff to
previous 1.739
(DoEdit, GetEditForm): Moved code from DoEdit into the
new GetEditForm, which returns a string that can be modified by
wrapper code.
Revision
1.738 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 20 22:43:43 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.737: +10 -8 lines
Diff to
previous 1.737
(QuoteHtml): Replace control characters with space.
(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.
Revision
1.735 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 19 21:02:01 2006 UTC (5 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.734: +5 -8 lines
Diff to
previous 1.734
(GetRcRss): Use cc for the creative commons namespace.
(ReportError): Don't return non-zero so that FCGI does not warn
about abnormal exit.
Revision
1.734 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 10 23:01:14 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.733: +4 -4 lines
Diff to
previous 1.733
(GetRcRss): Undo change regarding page and diff parameters.
(InitVariables): Add $RsExclude to %AdminPages.
(PrintPageDiff): Print hr only if pages will follow.
Revision
1.733 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 10 22:50:31 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.732: +13 -12 lines
Diff to
previous 1.732
(PrintPageHtml): Allow skipping using page=0.
(GetRcRss): Call PageHtml if one of full, page, or diff is set.
(GetRcRss): Cosmetics.
Revision
1.731 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 31 18:18:38 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.730: +6 -5 lines
Diff to
previous 1.730
(GetId): If no id parameter was given, use the title
parameter.
(DoBrowseRequest): If a title parameter was given, but the Cancel
button was used, don't call DoPost().
(DoEdit): Add a Cancel button.
Revision
1.727 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 30 00:42:30 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.726: +48 -72 lines
Diff to
previous 1.726
(PrintAllPages, GetPageOrEditLink, GetPageLink)
(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.
Revision
1.724 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 18 11:57:37 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.723: +7 -11 lines
Diff to
previous 1.723
(DoRollback): Check UserCanEdit before saving.
(UserCanEdit): Added test for sample undefined page.
(DoPost): Removed unnecessary tests, as these are caught by
UserCanEdit.
Revision
1.722 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 18 11:37:23 2006 UTC (5 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.721: +48 -54 lines
Diff to
previous 1.721
($Counter): New variable for Fast::CGI info.
(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.
Revision
1.721 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 17 14:05:32 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.720: +7 -6 lines
Diff to
previous 1.720
(PrintHtmlDiff): Translate diff fragments such as
added/changed/deleted.
(ImproveDiff): No longer translate diff fragments here.
Revision
1.717 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 17 10:08:53 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.716: +28 -28 lines
Diff to
previous 1.716
(DoRc): Allow rollback=1 to see rollbacks.
(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.
Revision
1.715 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Aug 15 09:05:36 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.714: +10 -10 lines
Diff to
previous 1.714
(DoRollback): If an id is provided, don't check
the time window: Just roll back as far as possible.
(GetTextAtTime): Return a timestamp if no perfect match is found.
Revision
1.707 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 14 23:29:27 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.706: +2 -2 lines
Diff to
previous 1.706
(DoRollback): Only admins can do mass rollback, but every user can
do single rollbacks. Link to pages in the listing.
Revision
1.701 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Aug 13 22:36:29 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.700: +8 -7 lines
Diff to
previous 1.700
(GetDownloadLink): Allow to retrieve download URL only.
(GetHeader): Renamed variable for alt text. Use pagename as
$LogoUrl if possible.
(DeletePage): Use ValidIdOrDie to check $id.
Revision
1.700 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Aug 13 00:38:45 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.699: +11 -5 lines
Diff to
previous 1.699
(DoHistory): Pass timestamp reference to GetHistoryLine.
(GetHistoryLine): Use timestamp reference to group entries by day.
Revision
1.696 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 12 23:15:05 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.695: +7 -7 lines
Diff to
previous 1.695
(PageDeletable, DoMaintain, DoEdit, ExpireKeepFiles, DoRollback)
(RollbackPossible): Replaced 24*60*60 with 86400 and 60*60 with
3600.
Revision
1.695 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 12 23:07:47 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.694: +4 -3 lines
Diff to
previous 1.694
(DoRc): Fix test for existing changes.
(GetHistoryLine): Report missing other revisions instead of
showing the fake "revision 0" entry. Add whitespace.
Revision
1.694 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 12 19:51:50 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.693: +57 -66 lines
Diff to
previous 1.693
(DoRc): Moved RC file reading into new function called GetRcLines.
(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.
Revision
1.693 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 12 02:35:05 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.692: +12 -3 lines
Diff to
previous 1.692
(GetSummary): Fixed summary post-processing.
(DoRc): Remove rc lines of rolled back changes.
(DoRollback): Leave marker for DoRc.
Revision
1.692 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 12 01:34:26 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.691: +5 -5 lines
Diff to
previous 1.691
(GetSummary): Fixed summary post-processing so that [URL
text] really does get replaced by text.
(GetRc): Fix clusters in recent changes.
Revision
1.690 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 10 10:31:04 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.689: +2 -2 lines
Diff to
previous 1.689
(PrintFooter): No longer protect the call to PrintMyContent.
Instead, test whether it is defined before calling it.
Revision
1.689 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 10 09:10:50 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.688: +3 -3 lines
Diff to
previous 1.688
(InitConfig): Don't test for existing config file if it
was already loaded.
(InitRequest): Only get a new CGI object if we don't have one
already. Does this break mod_perl?
Revision
1.688 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 9 15:16:17 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.687: +15 -19 lines
Diff to
previous 1.687
(DiffMarkWords, DiffHtmlMarkWords): Changed how
highlighting works. Should be much robuster now, and no longer
suffer from strange off-by-one errors.
Revision
1.685 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Aug 6 11:43:46 2006 UTC (5 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.684: +21 -19 lines
Diff to
previous 1.684
(GetUrl): Add URL protocol as class.
(GetPageLink): Add class parameter.
(DoAdminPage): Add class to all menu entries.
(GetFooterLinks): Add class to the links.
Revision
1.675 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 12 19:54:21 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.674: +20 -27 lines
Diff to
previous 1.674
(UrlEncode): Simplify using a hash instead of a list to
avoid grepping through the same list repeatedly.
(GetRc): Simplify use of rcfilteronly parameter and rcclusteronly
using a hash as above.
(GetRcRss): Simplify excluding of pages using a hash as above.
(DoDownload, DoPost): Simplify test for allowed MIME types using a
hash as above.
(SearchNearPages): Simplify using a hash as above.
Revision
1.673 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 10 22:31:46 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.672: +20 -20 lines
Diff to
previous 1.672
(DoClearCache): Touch index file after clearing the
cache.
(SearchTitleAndBody): Allow searching of page titles for uploaded
files.
(PrintSearchResult): If an uploaded file is part of the result,
print it. Do away with the ^#FILE speciality.
Revision
1.669 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 8 21:42:31 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.668: +2 -2 lines
Diff to
previous 1.668
(GetSearchLink): Add double-quotes around title so that titles
with spaces in them will be searched correctly.
Revision
1.668 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 8 21:16:06 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.667: +25 -47 lines
Diff to
previous 1.667
(DoClearCache): Add real HTML output instead of
plain/text.
(SearchString): Get rid of 'and' and 'or', instead use double
quotes to check for phrases.
(DoSearch, DoMaintain, DoShowVersion, DoSurgeProtection): Trim
some space.
Revision
1.667 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jun 7 23:09:57 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.666: +57 -51 lines
Diff to
previous 1.666
($Monolithic, DoPrintAllPages): Removed all action.
(ScriptLink): Got rid of $Monolithic.
(DoClearCache): Added clear action.
(DoAdminPage): Added clear action to menu.
(QuoteRegexp): New.
(GetSearchLink): Use it.
(DoSearch, DoEditLock, DoPageLock): Print error before printing
the header.
Revision
1.664 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 4 23:54:13 2006 UTC (5 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.663: +8 -14 lines
Diff to
previous 1.663
(GetOldPageLink, GetSearchLink, GetHistoryLink)
(GetRCLink): Removed test for $FreeLinks before translating space
to underline.
Revision
1.655 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 26 11:56:29 2006 UTC (6 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.654: +4 -4 lines
Diff to
previous 1.654
(ScriptLink): Don't URL-encode the name attribute.
(GetRcRss): Use $HttpCharset instead of UTF-8.
(GetHeader): URL-encode the homepage target.
Revision
1.653 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 22 22:12:04 2006 UTC (6 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.652: +12 -15 lines
Diff to
previous 1.652
(%Includes): New variable.
(ApplyRules): Use it to prevent loops when including local pages.
(DoEditLock, DoPageLock): Save some whitespace.
Revision
1.650 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 19 00:33:26 2006 UTC (6 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.649: +4 -3 lines
Diff to
previous 1.649
(GetDownloadLink): Convert underlines to spaces in the alt-text.
(PageIsUploadedFile): Make sure files are in fact skipped.
Revision
1.643 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Feb 20 23:32:05 2006 UTC (6 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.642: +15 -3 lines
Diff to
previous 1.642
Don't load whole page when the page contains an
uploaded file that should be skipped anyway. This opens ordinary
pages twice, but that's ok.
(PageIsUploadedFile): New, with specialized file open.
(SearchTitleAndBody): Use it to skip files unless requested.
Revision
1.641 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 3 16:28:05 2006 UTC (6 years, 4 months ago) by
lude
Branch:
MAIN
Changes since
1.640: +3 -3 lines
Diff to
previous 1.640
(InitModules): simplified pattern.
(DoEdit): Add default value to GetParam call. Result is now
defined and avoids a warning in the comparison.
Revision
1.636 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 18 19:11:39 2005 UTC (6 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.635: +20 -10 lines
Diff to
previous 1.635
(Init, InitModules, InitConfig): Moved some code from Init to the
new functions.
(InitRequest): Moved binmode call here.
(InitConfig): Hand coded GetPageContent, because this early $q is
not yet available.
Revision
1.635 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 18 14:28:59 2005 UTC (6 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.634: +5 -4 lines
Diff to
previous 1.634
(BannedContent, UserIsBanned): Changed parsing in order
to use http://www.usemod.com/cgi-bin/mb.pl?SharedAntiSpam.
(%PlainTextPages, InitVariables): New option.
(ApplyRules): Instead of hardcoding StyleSheetPage and ConfigPage,
use the new option to return the page as preformatted.
(UserIsBanned, BannedContent): Fix regular expressions.
(InitVariables): Make sure there's no empty string as a key for
%PlainTextPages. This happens if $ConfigPage is not set, for
example.
(ApplyRules): Safety check: Make sure $OpenPageName is set before
using %PlainTextPages.
Revision
1.631 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 7 13:00:44 2005 UTC (6 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.630: +30 -42 lines
Diff to
previous 1.630
(DoPageLock): No longer print a separate error if the id
parameter is missing. Rely on ValidIdOrDie instead.
(DoPost, ValidId): Refactor.
Revision
1.630 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 6 15:37:09 2005 UTC (6 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.629: +4 -2 lines
Diff to
previous 1.629
(InitVariables): Set $LastUpdate on every request and
reinitialize some variables in case the server runs several
mod_perl processes.
Revision
1.628 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 28 21:10:01 2005 UTC (6 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.627: +2 -2 lines
Diff to
previous 1.627
(PageDeletable): Empty pages should be deleted, but
usually they contain exactly one newline. All pages consisting of
whitespace only shall now be deletable.
Revision
1.621 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 22 12:25:19 2005 UTC (6 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.620: +2 -2 lines
Diff to
previous 1.620
(DoSearch): When replacing, quote metacharacters in the
replacement text before searching for the replacement.
Revision
1.620 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 22 00:43:35 2005 UTC (6 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.619: +2 -2 lines
Diff to
previous 1.619
(PrintHtmlDiff): Don't use $revNew-1 as the default for
the old revision if no new revision was specified, as suggested by
Markus Lude on the wiki.
Revision
1.618 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 14 23:58:13 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.617: +2 -2 lines
Diff to
previous 1.617
(GetFormStart): Use start_multipart_form instead of
start_form, because CGI.pm 3.04 does not default to the correct
encoding for forms.
Revision
1.611 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 9 17:11:04 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.610: +6 -6 lines
Diff to
previous 1.610
(ApplyRules): Test for $OpenPageName before comparing it
with $StyleSheetPage or $ConfigPage.
(Cookie): Just encode $FS since both keys and values are already
encoded in CookieData.
Revision
1.608 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 7 12:59:11 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.607: +11 -11 lines
Diff to
previous 1.607
($SummaryDefaultLength): New option as suggested by "ch"
on the wiki, default to 150 instead of hard-coding 100.
(GetSummary): Use it.
(GetFormStart): No longer support the first parameter, encoding.
Use the default provided by CGI.pm always. Providing an encoding
used to confuse newer versions of CGI.pm, resulting in invalid
XHTML.
(GetSearchForm, DoEdit): Fix call to GetFormStart.
Revision
1.604 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 5 20:38:12 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.603: +80 -115 lines
Diff to
previous 1.603
($InterSiteInit): Renamed to $InterInit.
($NearSiteInit): Renamed to NearInit.
(InitVariables): No longer initialize $InterSiteInit, %InterSite,
$NearSiteInit, %NearSite, %NearSearch, %NearSource, $IndexInit,
$RssInterwikiTranslateInit, %PagePermanentAnchors,
%RssInterwikiTranslate. Instead, call AllPagesList, NearInit,
PermanentAnchorsInit, and move CreateDir before the call to
AllPagesList.
(RSS): Don't test for $RssInterwikiTranslateInit before calling
RssInterwikiTranslateInit.
(RssInterwikiTranslateInit, NearInit): Return if already
initialized. Do the reset of global variables here.
(InterInit, PermanentAnchorsInit): Ditto.
(GetDownloadLink, ResolveId, OpenPage): Don't call AllPagesList.
(GetPageContent): Ditto.
(ResolveId, DoIndex, DeletePermanentAnchors): Don't call
ReadPermanentAnchors.
(ResolveId, GetSisterSites, DoIndex): Don't call NearInit.
(DoSearch, SearchNearPages, $RssInterwikiTranslateInit): Ditto.
(DoShowVersion): Ditto.
(Save): Reset $IndexInit, $NearInit, $InterInit, and
$RssInterwikiTranslateInit.
($StyleSheetPage): Default value 'css'.
(DoCss): New.
(%Action): Added css action.
(GetCss): Use the mime-type parameter and separate action if
StyleSheetPage exists instead of inlining.
(DoAdminPage): Add css action.
(GetHeader): Add logo class to link.
(ApplyRules): Don't call NearInit. Print $StyleSheetPage and
$ConfigPage in a pre tag.
Revision
1.602 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 28 19:14:05 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.601: +2 -2 lines
Diff to
previous 1.601
(BrowsePage): When the page consists of one clean block
only, $Page{flags} is '0', so testing for it yields false. This
caused pages consisting of a single clean block to not be cached.
At the same time, there should always be flags when $Page{blocks}
is arround, so the test was simply removed.
Revision
1.600 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 25 23:48:44 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.599: +6 -8 lines
Diff to
previous 1.599
(GetSummary): UnquoteHtml.
(GetHttpHeader): Introduced mime-type parameter.
(DoEdit): UnquoteHtml for the summary.
Revision
1.596 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 25 16:11:52 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.595: +22 -16 lines
Diff to
previous 1.595
(DoPost): Creating empty pages still results in a 400
Bad Request error, but saving no changes will result in a 200 Ok.
(%RulesOrder): Initialize correctly.
(ReportError): QuoteHmlt (maybe not necessary?)
(Init): Copy $lib in order to untaint.
(GetParam): HtmlQuote all parameters! <-- major change.
(QuoteHtml, UnquoteHtml): Return immediately if $html is empty.
(BrowseResolvedPage): Test for undefined $class before comparing.
(RcHeader): Initialize $action.
(GetRc): No revision for the lastet revision shown for all=1.
(GetRcHtml): Inizialize $html and $inlist. Also make sure other
variables are set to the empty string instead of being
uninitialized.
(GetRcRss): Remove extra my $username.
Revision
1.594 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 25 13:49:11 2005 UTC (6 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.593: +6 -4 lines
Diff to
previous 1.593
(DoPost): Creating empty pages still results in a 400
Bad Request error, but saving no changes will result in a 200 Ok.
Revision
1.585 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Aug 23 07:42:28 2005 UTC (6 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.584: +31 -25 lines
Diff to
previous 1.584
($RssStyleSheet, GetRcRss): New option, use it.
(GetHtmlHeader, GetCss): Moved CSS determining code out into
separate function.
(TextIsFile): Don't use /m for the match (an uploaded file MUST
start with #FILE and the MIME type).
Revision
1.584 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Aug 23 00:03:14 2005 UTC (6 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.583: +5 -4 lines
Diff to
previous 1.583
(DoHistory): Use GET instead of POST for history links.
(GetFormStart): Fix class for forms.
(GetKeptDiff): Handle identical revisions.
Revision
1.582 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 26 09:41:23 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.581: +11 -9 lines
Diff to
previous 1.581
(RcHeader, GetFilterForm, GetRc): Add page title filter
using the match parameter. Make the form GET instead of POST.
Revision
1.581 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 26 08:42:21 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.580: +7 -6 lines
Diff to
previous 1.580
(RSS, GetRcHtml): Replaced – with – for XML conformance.
(PageHtml): Accept size limit and error message; return error
message instead of HTML if the raw text of the page is too big.
(GetRcRss): Pass a limit and a message to PageHtml.
Revision
1.580 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 26 08:05:08 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.579: +39 -71 lines
Diff to
previous 1.579
(DoIndex): Changed pattern parameter to match, so that
it matches the parameter used in the calendar extension.
($Visitors, $VisitorTime): Removed.
(%Action): Removed visitors action.
(DoAdminPage): Removed recent visitors item.
(DoSurgeProtection, WriteRecentVisitors): Simplified: No longer
take $Visitors into account.
(DoShowVisitors): Removed.
Revision
1.578 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 26 07:16:49 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.577: +2 -2 lines
Diff to
previous 1.577
(DoIndex): Changed pattern parameter to match, so that
it matches the parameter used in the calendar extension.
Revision
1.575 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 22 16:18:17 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.574: +50 -48 lines
Diff to
previous 1.574
(PageFresh, FileFresh): New, use entity tags instead of
if-modified-since.
(PageEtag): New, produce entity tag based on LastUpdate and CookieData.
(DoDownload): Use FileFresh.
(BrowsePage): Cache using code moved to DoBrowseRequest.
(DoBrowseRequest): Use PageFresh and return cashed pages for all
actions if possible.
(GetHttpHeader): Generate entity tag (ETag) for caching instead of
last-modified header.
(CookieData): New, used by PageEtag.
(Cookie): Moved some code to CookieData.
(@MyMaintenance): New option.
(DoMaintain): Call each sub on @MyMaintenance.
Revision
1.573 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jul 21 09:56:05 2005 UTC (6 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.572: +18 -8 lines
Diff to
previous 1.572
(GetRcRss): A test for $limit eq 'all' got lost in the
transition to RSS 2.0 so I added it back.
($DefaultStyleSheet): Add div.search.
(ApplyRules): Add new rule for <search "pattern">
Revision
1.571 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jul 17 15:31:03 2005 UTC (6 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.570: +85 -83 lines
Diff to
previous 1.570
(RSS): Accept RSS 2.0 wiki module authorship.
(GetRcRss): Use RSS 2.0 with wiki module code.
(DoRss): Changed MIME type to application/xml because we're no
longer using RDF.
(TimeToRFC822): New sub using the POSIX module (which comes
bundled with Perl).
($RssContributor, $RssPublisher): Removed as they make little
sense on a wiki.
($RssImageUrl): Default to $LogoUrl.
Revision
1.567 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jul 13 22:44:10 2005 UTC (6 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.566: +2 -2 lines
Diff to
previous 1.566
(ScriptLink): Not only url-encoded "http:" starts a
valid URL; any combo of letters followed by a colon (protocol) or
any string starting with a slash (relative path) are treated as
URL. This assumes no colons and slashes in page names.
Revision
1.565 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jul 11 00:00:31 2005 UTC (6 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.564: +136 -126 lines
Diff to
previous 1.564
(GetTextArea): Add id to textarea.
($RssDir, $RssCacheHours): New options.
(RSS): Use GetRss.
(GetRss, GetRssFile): New.
(DoMaintain): Clean files in $RssDir.
Revision
1.563 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jul 4 15:45:11 2005 UTC (6 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.562: +2 -1 lines
Diff to
previous 1.562
(GetHtmlHeader): Don't allow double quotes in the css
parameter because it allows javascript injection as described by
Pierre Gaston -- he added "><script>...</script><meta" to a public
link and tricked users into clicking it.
Revision
1.561 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jun 21 22:09:20 2005 UTC (6 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.560: +6 -6 lines
Diff to
previous 1.560
(GetPageOrEditLink): No longer handle near links
specially.
(ScriptLink): Handle resolved URLs specially, eg. from near links.
(PrintSearchResultEntry): Just pass it on to ScriptLink. Don't
test $action for %2f -- I wonder what this was supposed to do?
Revision
1.554 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 7 23:40:48 2005 UTC (7 years ago) by
as
Branch:
MAIN
Changes since
1.553: +8 -7 lines
Diff to
previous 1.553
(ScriptLink): Add another parameter to generate
rel="nofollow" links.
(RcHeader): Use nofollow links because RecentChanges is FOLLOW by
default. This might help cut bandwidth.
Revision
1.551 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun May 1 13:32:56 2005 UTC (7 years ago) by
as
Branch:
MAIN
Changes since
1.550: +15 -5 lines
Diff to
previous 1.550
(GetCommentForm): Don't provide summary in the form.
(DoPost): Get summary from GetSummary.
(GetSummary): New function that takes a substring from aftertext
if available.
Revision
1.550 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun May 1 11:07:23 2005 UTC (7 years ago) by
as
Branch:
MAIN
Changes since
1.549: +8 -9 lines
Diff to
previous 1.549
(DoEdit): Use $KeepDays instead of 24h for "summary
expiration".
($SummaryLines): Remove option again and replace with hard-coded
two lines.
Revision
1.549 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 30 12:02:51 2005 UTC (7 years ago) by
as
Branch:
MAIN
Changes since
1.548: +11 -11 lines
Diff to
previous 1.548
($SummaryLines): New option.
(DoEdit): If the last edit was less than 24h ago, use its summary
as the default.
(GetTextArea): Optional parameter for the number of rows added.
Default is still 25.
Revision
1.547 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 23 19:44:51 2005 UTC (7 years ago) by
as
Branch:
MAIN
Changes since
1.546: +3 -3 lines
Diff to
previous 1.546
(PageDeletable): Delete empty pages, too.
(ApplyRules): Changed the way $bol is computed to a substring
comparison instead of a regular expression match.
Revision
1.545 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 12 22:27:42 2005 UTC (7 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.544: +20 -15 lines
Diff to
previous 1.544
(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.
Revision
1.544 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Apr 11 17:38:18 2005 UTC (7 years, 1 month ago) by
frodo72
Branch:
MAIN
Changes since
1.543: +14 -15 lines
Diff to
previous 1.543
Isolated test for uploaded file in FileIsText sub.
FileIsText can be used in list context to get the mime type!
Revision
1.543 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Apr 7 16:16:18 2005 UTC (7 years, 1 month ago) by
frodo72
Branch:
MAIN
Changes since
1.542: +2 -2 lines
Diff to
previous 1.542
Hopefully definitively fixed bug for previous version diffing.
Note that oldmajor could be still wrong in page database...
Revision
1.542 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 5 23:01:11 2005 UTC (7 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.541: +20 -20 lines
Diff to
previous 1.541
(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.
Revision
1.540 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 3 02:27:37 2005 UTC (7 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.539: +15 -29 lines
Diff to
previous 1.539
(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.
Revision
1.538 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 25 11:40:22 2005 UTC (7 years, 1 month ago) by
frodo72
Branch:
MAIN
Changes since
1.537: +32 -14 lines
Diff to
previous 1.537
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.
Revision
1.537 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 25 11:16:24 2005 UTC (7 years, 1 month ago) by
frodo72
Branch:
MAIN
Changes since
1.536: +24 -22 lines
Diff to
previous 1.536
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.
Revision
1.536 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 18 22:32:16 2005 UTC (7 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.535: +78 -70 lines
Diff to
previous 1.535
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.
Revision
1.530 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 1 23:58:23 2005 UTC (7 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.529: +2 -2 lines
Diff to
previous 1.529
(BrowsePage): No longer report 404 for non-existing pages even when
using raw=1, as oddwiki.taoriver.net kept reporting a 404.
Revision
1.519 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jan 7 00:41:57 2005 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.518: +26 -132 lines
Diff to
previous 1.518
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.
Revision
1.517 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 6 10:25:03 2005 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.516: +15 -10 lines
Diff to
previous 1.516
(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.
Revision
1.513 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 5 01:18:35 2005 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.512: +15 -14 lines
Diff to
previous 1.512
(@MyAdminCode): New option.
(@AdminBlocks): Removed option.
(DoAdminPage): Rewritten to take advantage of the new @MyAdminCode.
Revision
1.507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 4 06:27:00 2005 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.506: +84 -38 lines
Diff to
previous 1.506
(@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).
Revision
1.506 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jan 2 15:52:48 2005 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.505: +5 -5 lines
Diff to
previous 1.505
(InitLinkPatterns): Remove "" delimiter from
$FreeLinkPattern and $FreeInterLinkPattern.
(ApplyRules): Unquote URLs in include and rss rules.
Revision
1.505 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 26 23:34:05 2004 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.504: +14 -7 lines
Diff to
previous 1.504
(RSS): Add RFC 822 Parsing for RSS 2.0.
(DoDownload): Fix regexp for #FILE.
(DoShowVisitors, DoPrintAllReferers): Add content div.
Revision
1.501 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 19 15:51:39 2004 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.500: +9 -11 lines
Diff to
previous 1.500
(Save): Moved automatic lock creation back to after the
SavePage call in order to make sure the directory exists.
Revision
1.500 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 19 14:00:17 2004 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.499: +7 -3 lines
Diff to
previous 1.499
(InitVariables): Removed handling of $HtmlHeaders.
(GetHtmlHeader): Add site RSS and page RSS if $HtmlHeaders is not
set.
Revision
1.499 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 19 13:44:31 2004 UTC (7 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.498: +13 -6 lines
Diff to
previous 1.498
(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.
Revision
1.494 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 5 21:40:46 2004 UTC (7 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.493: +8 -5 lines
Diff to
previous 1.493
(InitVariables): Use the link to the RSS feed as the
default for $HtmlHeaders.
(GetHtmlHeader): Don't add RSS feed. It should be part of
$HtmlHeaders.
(Clean, Dirty, ApplyRules): Print clean blocks in Dirty() instead
of Clean(). Remove empty p elements.
(ApplyRules): Exchanged order of print and Dirty for one of the
rules.
Revision
1.493 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Dec 5 03:22:14 2004 UTC (7 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.492: +7 -6 lines
Diff to
previous 1.492
(ApplyRules): Add print AddHtmlEnvironment('p') in
various places where CloseHtmlEnvironments() is called -- after
includes, journals, rss feeds, and conflicts.
Revision
1.489 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 26 23:54:36 2004 UTC (7 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.488: +32 -50 lines
Diff to
previous 1.488
(GetTextAtTime): Check whether all changes from now to
then are minor or not. Use GetKeepRevisions.
(DoRollback): Save rollbacks as minor or major changes using this
info.
(DoPost): Take change in GetTextAtTime into account, but do
nothing with the new info.
(GetKeepRevisions): New.
(DoHistory, ExpireKeepFiles): Use GetKeepRevisions.
Revision
1.486 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 22 23:29:01 2004 UTC (7 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.485: +7 -8 lines
Diff to
previous 1.485
(GetFooterLinks): Move the "Back to %s" link to the
front of the bar. Put the entire text into the link. Change
"Comments on this page" to "Comments on %s".
Revision
1.484 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 15 01:20:20 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.483: +6 -9 lines
Diff to
previous 1.483
(BrowsePage): Remove extra end_div().
(DoIndex): Add extra end_div().
(GetReferers): Put hr() from RefererTrack inside the div().
(RefererTrack): Remove the hr() here and move it to GetReferers.
Revision
1.481 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 14 23:56:53 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.480: +49 -50 lines
Diff to
previous 1.480
(PrintJournal, BrowsePage, GetHeader, PrintFooter,
PrintAllPages): Use start_div() and end_div() instead of strings.
(DoHistory, DoRollback, DoEdit, DoPassword, DoIndex, DoSearch,
DoMaintain, DoShowVersion): Use div.
Revision
1.480 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 14 22:20:28 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.479: +54 -62 lines
Diff to
previous 1.479
(RcHeader): Removed vertical bars.
(PrintFooter): Classes are added in the respective subroutines.
(GetNearLinksUsed, GetFooterTimestamp): Don't join the result of a
map operation; instead pass it as a list to the CGI module.
(GetAdminBar): Removed vertical bars.
(GetFooterLinks, GetGotoBar, DoSearch): Removed vertical bars.
Revision
1.479 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 12 22:04:00 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.478: +17 -8 lines
Diff to
previous 1.478
(GetFormStart): Fix syntax error. (?)
(GetKeptDiff): Pass old revision to GetDiff.
(GetDiff): Handle situation where old or new revision is a file.
Revision
1.478 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 11 22:41:05 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.477: +21 -18 lines
Diff to
previous 1.477
(ReportError): Add a third parameter to request logging
of the error.
(SavePage): Request logging when trying to save bogus pages.
(PrintWikiToHTML): Only save the page if the cache actually
changes.
(GetFormStart, DoHistory, GetCommentForm, GetFilterForm)
(GetSearchForm, DoEdit, DoPassword): Add form class.
Revision
1.476 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 1 03:32:49 2004 UTC (7 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.475: +26 -13 lines
Diff to
previous 1.475
Use q{...} instead of here-documents in some places.
(%CookieParameters): Add homepage parameter.
(GetCommentForm): Add homepage input field.
(AddComment): Take homepage parameter into account.
(ApplyRules): Add rule for merge conflicts.
(DoPost): Don't put pre tags around merge conflicts.
Revision
1.474 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 31 18:42:52 2004 UTC (7 years, 6 months ago) by
groogel
Branch:
MAIN
Changes since
1.473: +7 -3 lines
Diff to
previous 1.473
Added div environment to non-text includes. The class attribute is set
to "include" plus the included page name. E.g. class="include FooBar".
Revision
1.466 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 15 13:26:17 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.465: +4 -2 lines
Diff to
previous 1.465
(InitVariables): Bugfix -- handle '_' at the endo of
$CommentsPrefix as well.
(RSS): Warning if feed contains no item (even if no parsing
error...).
Revision
1.465 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 13 19:55:19 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.464: +8 -9 lines
Diff to
previous 1.464
No provide $DefaultCSS for tables.
(InitVariables): Handle $CommentsPrefix.
(GetHeader): Simplified.
(AddComment): Added extra newlines.
Revision
1.461 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 5 23:15:34 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.460: +6 -2 lines
Diff to
previous 1.460
(RSS): Handle list start tag for feeds without dates.
(DoSurgeProtection): Verbose error message if the first visitor
lock cannot be created.
Revision
1.460 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 29 23:35:36 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.459: +12 -10 lines
Diff to
previous 1.459
(GetAdminBar): Moved GetGotoBar($id) out of this sub and
renamed $revisions to $html.
(PrintFooter): Moved GetGotoBar($id) here.
(ApplyRules): Accept @tags parameter to put the first paragraph in
a p element. Pass along p to ApplyRules calls.
(PrintWikiToHTML): Pass along p to ApplyRules calls.
(PrintAllPages): Put pages into a separate div.
Revision
1.459 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 29 22:36:50 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.458: +16 -16 lines
Diff to
previous 1.458
(GetAdminBar): Moved GetGotoBar($id) out of this sub and
renamed $revisions to $html.
(PrintFooter): Moved GetGotoBar($id) here.
Revision
1.458 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 19 22:01:09 2004 UTC (7 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.457: +6 -4 lines
Diff to
previous 1.457
(PrintPage): Print title instead of id.
(BannedContent): Return text matched in the original page.
(DoPost): Changed text printed when BannedContent returns text.
Revision
1.452 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 5 19:37:51 2004 UTC (7 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.451: +2 -2 lines
Diff to
previous 1.451
(ApplyRules): Disallow | in the alternate text of
the [[image:page|text]] rule. It
prevented [[image:page|text|page]] from reaching image.pl.
Revision
1.447 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 18 22:47:12 2004 UTC (7 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.446: +12 -10 lines
Diff to
previous 1.446
(GetRcText): Bugfix for action=rc;raw=1;all=1.
(GetRcRss): Use $ScriptName instead of $FullUrl. Take
$UsePathInfo into account. When the all parameter is not set,
don't add revision to the URL.
Revision
1.446 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Aug 15 18:08:06 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.445: +13 -5 lines
Diff to
previous 1.445
(PrintPageDiff): New.
(PageHtml): Call it.
(BrowsePage, PrintHtmlDiff): Remove $id from parameters to PrintHtmlDiff.
(GetRcRss): UrlEncode $RCName.
Revision
1.444 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 13 02:14:10 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.443: +13 -9 lines
Diff to
previous 1.443
(ApplyRules): Close all HTML environments before
include, rss and journal.
(AddHtmlEnvironment): Bugfix.
(GetFilterForm, ImproveDiff, DiffAddPrefix): XHTML conformance.
Revision
1.441 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 13 00:38:27 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.440: +61 -73 lines
Diff to
previous 1.440
(InElement): New.
(ApplyRules): Use it. Try to use environments for paragraphs,
too.
(CloseHtmlEnvironmentUntil): New.
(AddHtmlEnvironment, Ts, ValidId, FreeToNormal): Eliminate
warning.
(GetRcHtml, GetRcText, GetRcRss, DoEdit): Eliminate case in
variable name.
(GetAuthorLink): Simplify.
(GetFilterForm, DoHistory, GetHtmlHeader, GetCommentForm,
GetSearchForm, DoEdit, DoPassword): XHTML conformance.
Revision
1.440 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 12 23:42:04 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.439: +26 -5 lines
Diff to
previous 1.439
(InElement): New.
(ApplyRules): Use it. Try to use environments for paragraphs, too.
(CloseHtmlEnvironmentUntil): New.
Revision
1.439 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 12 16:35:37 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.438: +25 -16 lines
Diff to
previous 1.438
($RssExclude): New option.
(InitVariables): Apply FreeToNormal to \$RssExclude.
(GetRcRss): Take $RssExclude into account.
(PrintPageHtml): New.
(PageHtml, PrintAllPages): Moved code to PrintPageHtml.
Revision
1.438 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 11 13:05:29 2004 UTC (7 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.437: +21 -3 lines
Diff to
previous 1.437
(ApplyRules): Eliminate a warning.
(GetRcRss): Support full parameter for RSS feeds.
(DoRss): Use application/rss+xml instead of text/plain.
(PageHtml): New.
Revision
1.435 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jul 8 16:02:36 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.434: +4 -4 lines
Diff to
previous 1.434
(InitVariables): Set @LockOnCreation here, after
translating spaces to underscores, and after reading the config
file.
(ParseData): Accept a space as the first character as well.
Revision
1.433 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jun 29 00:37:07 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.432: +22 -131 lines
Diff to
previous 1.432
Moved many rules from ApplyRules in wiki.pl to modules/usemod.pl.
(RFC, ISBN, WikiHeading): Moved to modules/usemod.pl.
(PrintSearchResult): No longer strip common HTML tags (since those
are now defined in modules/usemod.pl).
(ApplyRules): Moved many rules to modules/usemod.pl.
(InitLinkPatterns): No longer set $RFCPattern and $ISBNPattern.
(InitVariables): No longer set @HtmlTags
($RFCPattern, $ISBNPattern, @HtmlTags, $HtmlTags, $HtmlLinks)
($RawHtml): Moved to modules/usemod.pl.
Revision
1.432 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 28 19:35:26 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.431: +8 -6 lines
Diff to
previous 1.431
(ApplyRules): Don't allow empty headers.
(DoDownload): Use unquoted type for messages.
(DoPost): Save unquoted type, use unquoted type for messages.
Revision
1.431 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 27 23:43:04 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.430: +3 -3 lines
Diff to
previous 1.430
($bol): New global variable.
(ApplyRules): Use local $bol instead of my $bol, so that
extensions can use it as well.
Revision
1.426 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 21 17:57:38 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.425: +15 -10 lines
Diff to
previous 1.425
(GetRc): Experimenting with revision clusters: By
starting the summary with a page link, you can cluster one
revision only.
Revision
1.424 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 20 21:37:16 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.423: +7 -89 lines
Diff to
previous 1.423
Removed link action.
(DoLinks, PrintLinkList, GetFullLinkList, GetLinkList): Gone.
(ApplyRules): Small cleanup: Moved #FILE rule up, made words
optimization less greedy by requiring a trailing space.
Revision
1.423 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 19 01:42:13 2004 UTC (7 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.422: +2 -2 lines
Diff to
previous 1.422
(ApplyRules): Another optimization -- this one will disable all
rules that start with lowercase ascii letters!
Revision
1.419 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 17 01:09:48 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.418: +22 -21 lines
Diff to
previous 1.418
(Clean, SmileyReplace, RunMyRules): Important change in
handling rules: Rules are expected to return undef when they did
not match, and the empty string if a dirty block was produced.
(QuoteHtml, UnquoteHtml): Cosmetic.
(ApplyRules): Several changes: 1. Use /o for more pattern matches.
2. Don't call MyRules() here, add in RunMyRules instead.
3. Removed some superfluous /i and /s options. 4. Fixed handling
of ''''' by splitting the '' rule into two separate blocks.
Revision
1.418 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 13 14:24:48 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.417: +49 -46 lines
Diff to
previous 1.417
(DoLinks): Pass parameters onto GetFullLinkList.
(GetFullLinkList): Accept parameters instead of using GetParam.
Move most of the code to GetLinkList.
(GetLinkList): New, extract links from one page only.
(ReadPermanentAnchors): Simplified, accept both $FS and space as
separator.
(WritePermanentAnchors): Use spaces instead of $FS to write the
file.
Revision
1.417 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 13 00:23:41 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.416: +12 -9 lines
Diff to
previous 1.416
(RSS): No longer print square brackets around links to feeds
without interwiki moniker. This can be added using CSS.
Revision
1.415 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 12 11:22:57 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.414: +11 -13 lines
Diff to
previous 1.414
(DoMaintain): Handle error reporting from DeletePage here.
(DeletePage): Simplified. Return error string or empty string on
success.
Revision
1.414 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 12 00:33:28 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.413: +14 -8 lines
Diff to
previous 1.413
(ApplyRules): Bugfix, lone *, #, and : in the middle of
lines caused the creation of list items.
(GetRcHtml): Show '(new)' instead of '(diff)' when revision == 1.
Revision
1.406 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 29 22:30:45 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.405: +4 -4 lines
Diff to
previous 1.405
(GetFullLinkList): Use alternate text for interlinks if
provided, use FreeToNormal only when printing raw links.
Revision
1.404 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 29 01:18:54 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.403: +39 -38 lines
Diff to
previous 1.403
Removed -w again because it is hell to 'make test'.
(GetParam): Simplified (tried to remove -w warning but failed).
(UrlEncode): Do not encode '#' as it is forbidden in page names
and allows us to return anchors from ResolveId.
(ResolveId): UrlEncode resolved for anchors ('alias'), and link to
near pages directly ('near').
(BrowseResolvedPage): Take changes in ResolveId into account.
(ReBrowsePage): No longer accept third argument.
(RcHeader): days parameter only added to the menu actions, not to
all actions.
(GetHttpHeader, GetRemoteHost): Reorganized to remove -w warning.
(GetPermanentAnchor): Handle different info from ResolveId.
Revision
1.402 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 26 00:53:21 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.401: +8 -10 lines
Diff to
previous 1.401
(PrintFooter): Pass $id and $rev to GetAdminBar.
(GetFooterLinks): Remove pagelock action from here.
(GetAdminBar): Put pagelock action here.
Revision
1.400 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon May 24 00:58:42 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.399: +8 -5 lines
Diff to
previous 1.399
(PrintFooter): More spans.
(DoSurgeProtection): Report $SurgeProtectionViews and
$SurgeProtectionTime when surge protection is triggered.
Revision
1.399 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri May 21 12:37:15 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.398: +21 -22 lines
Diff to
previous 1.398
Run with -w.
(GetPageOrEditLink): Reworked usage of ResolveId.
(BrowseResolvedPage): Reworked usage of ResolveId.
(DoEdit): Copy newText to oldText earlier when previewing so that
preview works even when the old version is a file.
(PrintPage): Reworked usage of ResolveId.
(PrintSearchResultEntry): Reworked usage of ResolveId.
Revision
1.398 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue May 18 20:43:47 2004 UTC (7 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.397: +15 -20 lines
Diff to
previous 1.397
(RcHeader): Make all, showedit, and days explicit, so that they
can be set and unset even if they are added to %CookieParameters.
Revision
1.393 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun May 9 23:10:14 2004 UTC (8 years ago) by
as
Branch:
MAIN
Changes since
1.392: +30 -7 lines
Diff to
previous 1.392
($BannedContent): New option.
Add it to @LockOnCreation, apply FreeToNormal.
(BannedContent): New sub.
(DoPost): Call it.
Revision
1.388 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 17 22:16:36 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.387: +22 -16 lines
Diff to
previous 1.387
($FullUrlPattern): New.
(InitLinkPatterns): Set it.
(ApplyRules): Use it.
(GetFullLinkList): Fix the links action.
Revision
1.385 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 17 13:24:52 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.384: +15 -22 lines
Diff to
previous 1.384
(GetRaw): Return nothing if LWP::UserAgent is not available.
(RSS): Handle missing LWP::UserAgent and parser errors gracefully.
Fix HTML output bug.
(SearchNearPages): Use GetRaw instead of duplicating LWP code.
(DoMaintain): Dito.
Revision
1.379 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Apr 12 01:41:08 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.378: +5 -2 lines
Diff to
previous 1.378
(GetTextAtTime): Fix bug for rollback action where only the pages
were rolled back that were changed at the exact moment!
Revision
1.375 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 10 12:11:51 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.374: +16 -7 lines
Diff to
previous 1.374
($FreeInterLinkPattern): New variable
(InitLinkPatterns): Set it.
(ApplyRules): Support new interlinks with spaces in the pagename.
(GetInterSiteUrl): Encode the page name.
Revision
1.372 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 6 18:26:15 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.371: +3 -3 lines
Diff to
previous 1.371
(Save): Specify 'time' instead of relying on 'undef', as
one user reported that was a problem with his Perl build.
Revision
1.371 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Apr 5 18:04:42 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.370: +12 -13 lines
Diff to
previous 1.370
(UpdateReferers): Replace $q->url() with $ScriptName,
since that's the default value.
(GetHtmlHeader): Replace $q->url() with $ScriptName in the default
body class (aka theme).
(DoBrowseRequest): New handling, so that modules/namespaces.pl
works.
Revision
1.366 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 31 00:50:25 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.365: +7 -8 lines
Diff to
previous 1.365
(ResolveId): Return as a third list item whether the page exists
even if a permanent anchor is found.
(GetPermanentAnchor): Use it.
Revision
1.365 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 31 00:36:07 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.364: +10 -5 lines
Diff to
previous 1.364
(ResolveId): Allow override using anchor parameter.
(GetPermanentAnchor): Show link when duplicating an existing page.
Revision
1.364 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 31 00:20:52 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.363: +3 -3 lines
Diff to
previous 1.363
(ResolveId): Permanent anchors now take precedence over
existing pages.
(GetPermanentAnchor): Show warning when duplicating an existing
permanent anchor.
Revision
1.362 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 21 01:56:20 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.361: +97 -78 lines
Diff to
previous 1.361
(RunMyRules, PrintCache): Start with 0 again.
(GetInterLink, GetUrl, GetPageOrEditLink): Due to RunMyRules changes...
(PrintFooter): Split into several new functions.
(GetSisterSites, GetNearLinksUsed, GetFooterTimestamp)
(GetAdminBar, GetFooterLinks, GetCommentForm): New functions.
Revision
1.361 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 19 15:40:28 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.360: +13 -13 lines
Diff to
previous 1.360
(GetPageParameters, GetPageOrEditLink): Add UrlEncode thanks to wctang.
(ScriptLink, GetAuthorLink, GetDownloadLink): Dito.
(GetAuthorLink, PrintFooter, PrintPage, PrintSearchResultEntry): Dito.
Revision
1.360 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 19 00:20:45 2004 UTC (8 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.359: +15 -8 lines
Diff to
previous 1.359
(PrintWikiToHTML, PrintCache): Start with
$FootnoteNumber = 1.
(BracketLink): New.
(GetInterLink, GetUrl): Use it, and add "outside" class if
necessary.
(GetPageOrEditLink): Use it.
(GetHtmlHeader): Default CSS for a.outside.
Revision
1.359 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 15 22:30:32 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.358: +23 -13 lines
Diff to
previous 1.358
(InitVariables): Add $RssInterwikiTranslate.
(PrintFooter): Added admin bar inspired from UseMod 1.0.
(ReBrowsePage): Third parameter is the anchor, UrlEncode all parameters.
(DoPost): No longer encode id.
(BrowseResolvedPage): Add third parameter to call to ReBrowsePage.
(RSS): Use three-digit numbers to number items without a
timestamp, so that the number is not recognized as a valid
date (year-only) when printing the lines.
Support for Chinese pages, thanks to Ray and wctang.
(GetDownloadLink, BrowseResolvedPage, DoEdit): UrlEncode the page
id in the action.
(GetSearchLink): UrlEncode the name.
(DoPost): UrlEncode the page when calling ReBrowsePage..
Revision
1.358 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 15 20:08:08 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.357: +9 -8 lines
Diff to
previous 1.357
Support for Chinese pages, thanks to Ray and wctang.
(GetDownloadLink, BrowseResolvedPage, DoEdit): UrlEncode the page
id in the action.
(GetSearchLink): UrlEncode the name.
(DoPost): UrlEncode the page when calling ReBrowsePage..
Revision
1.356 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 15 19:48:58 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.355: +2 -2 lines
Diff to
previous 1.355
(RSS): Use three-digit numbers to number items without a
timestamp, so that the number is not recognized as a valid
date (year-only) when printing the lines.
Revision
1.352 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 12 00:57:32 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.351: +11 -9 lines
Diff to
previous 1.351
(GetHtmlHeader): Some more default CSS tinkering; hide
form and div.refer when printing.
(DoEdit): Put preview at the top of the page.
Revision
1.346 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 8 23:20:45 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.345: +19 -19 lines
Diff to
previous 1.345
(GetInterLink, GetUrl, GetPageOrEditLink, GetEditLink)
(GetPageLink, GetRcHtml, GetOldPageLink, ScriptLinkDiff)
(GetHistoryLink, GetRCLink, PrintAllPages): Use more CSS classes.
Revision
1.343 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 8 19:57:22 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.342: +10 -7 lines
Diff to
previous 1.342
(Upload, GetDownloadLink, ApplyRules): Renamed from Upload to
GetDownloadLink. Add edit link if image doesn't exist.
Revision
1.340 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 8 01:11:22 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.339: +18 -4 lines
Diff to
previous 1.339
(%RssInterwikiTranslate, $RssInterwikiTranslateInit): New
(InitVariables): Initialize the two.
($RssInterwikiTranslate): New.
(@LockOnCreation): Lock it upon creation.
(RssInterwikiTranslateInit): New.
(RSS): Call RssInterwikiTranslateInit if required.
Revision
1.337 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 7 19:41:30 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.336: +20 -23 lines
Diff to
previous 1.336
(ApplyRules, GetPageOrEditLink): Take brackets correctly into account for free links.
(GetPageLink): Don't test for $FreeLinks before applying FreeToNormal.
(GetEditLink, BrowseResolvedPage, GetPageParameters): Ditto.
(DoPost, GetPermanentAnchor): Ditto.
(GetHttpHeader): Don't send last-modified header when $UseCache is less than 2.
(PrintFooter): Link to password action when a page is read-only.
Revision
1.335 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 7 12:58:17 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.334: +2 -2 lines
Diff to
previous 1.334
(RSS): Remove channel title from title attribute of the link; use
$RssInterwikiTranslate on the URL if no interwiki was specified instead.
Revision
1.334 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 7 12:10:28 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.333: +8 -5 lines
Diff to
previous 1.333
(GetInterLink): Add more spans to interlinks.
(RSS): Append channel title to title attribute of the link.
(GetFormStart): Second parameter to choose GET instead of POST.
(GetSearchForm): Choose GET instead of POST.
Revision
1.329 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 24 22:33:34 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.328: +42 -38 lines
Diff to
previous 1.328
(ReportError, BrowsePage, GetHeader, GetHttpHeader): Add error status.
(DoWikiRequest, InitVariables, DoBrowseRequest, ValidIdOrDie)
(BrowseResolvedPage, DoRollback, SavePage, ReadFileOrDie)
(WriteStringToFile, AppendStringToFile, RequestLockDir)
(DoEdit, DoDownload, UserIsAdminOrError, DoPost)
(DoSurgeProtection): Added specific HTTP status codes.
Revision
1.328 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Feb 23 23:53:31 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.327: +5 -2 lines
Diff to
previous 1.327
(GetReferers): Convert escapes back to bytes for the
title (at least if they use the same coding system it will look
good).
Revision
1.327 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Feb 23 22:57:18 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.326: +11 -8 lines
Diff to
previous 1.326
(BrowseResolvedPage): Special treatment for non-existing pages: 'new' status.
(BrowsePage, GetHeader): Pass 'new' status on.
(GetHttpHeader): Return 404 status code if 'new'.
Revision
1.326 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Feb 23 21:56:31 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.325: +123 -142 lines
Diff to
previous 1.325
(%Action): New option.
(DoBrowseRequest): Use it. Major change in how actions are handled!
Lots of whitespace (tabified)
Revision
1.323 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 20 20:22:16 2004 UTC (8 years, 2 months ago) by
as
Branch:
MAIN
Changes since
1.322: +3 -3 lines
Diff to
previous 1.322
(Init): Only load modules and config file if they
haven't been loaded already, so that sub redefinitions don't cause
havoc in a mod_perl environment.
Revision
1.320 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 8 15:09:30 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.319: +4 -2 lines
Diff to
previous 1.319
(Init): Use binmode raw for STDOUT.
(ApplyRules): Use binmode utf8 for STDOUT if $HttpCharset is
'UTF-8' (the default). Reset to raw immediately.
(RSS): Don't downgrade anymore.
Revision
1.318 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Feb 5 23:48:48 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.317: +2 -2 lines
Diff to
previous 1.317
(Cookie): The cookie is considered to have changed under the following
condition: If the value was already set, and the new value is not the
same as the old value, or if there was no old value, and the new value
is not the default.
Revision
1.317 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 3 18:21:25 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.316: +9 -6 lines
Diff to
previous 1.316
(Cookie): Eliminate uninitialized variable warning.
(ValidId): Added a specific error text if the id is empty.
(DoBrowseRequest): Handle wiki/download/page and wiki/raw/page.
Revision
1.314 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 31 02:08:17 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.313: +4 -2 lines
Diff to
previous 1.313
(DoEdit): Bugfix with conditional declaration: my
$header = ... if $foo; If not $foo, $header will not be
initialized and in a mod_perl environment this caused Oddmuse to
keep showing the old header.
(CloseHtmlEnvironment): Similar suspicious code.
(InitCookie): Get rid of uninitialized variable warnigs.
(ApplyRules): Rewrite handling to avoid using m//m when matching
lines, local HtmlStack to get rid of uninitialized variable
warnigs.
(BrowsePage, ScriptLinkDiff): Get rid of uninitialized variable warnigs.
(Cookie, GetTextRevision, GetCluster): Ditto.
(DeletePermanentAnchors): Ditto, by removing relying on $_.
($RunCGI): Can be set outside the script.
Revision
1.313 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 31 01:59:03 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.312: +43 -26 lines
Diff to
previous 1.312
(DoEdit): Bugfix with conditional declaration: my
$header = ... if $foo; If not $foo, $header will not be
initialized and in a mod_perl environment this caused Oddmuse to
keep showing the old header.
(CloseHtmlEnvironment): Similar suspicious code.
(InitCookie): Get rid of uninitialized variable warnigs.
(ApplyRules): Rewrite handling to avoid using m//m when matching
lines, local HtmlStack to get rid of uninitialized variable
warnigs.
(BrowsePage, ScriptLinkDiff): Get rid of uninitialized variable warnigs.
(Cookie, GetTextRevision, GetCluster): Ditto.
(DeletePermanentAnchors): Ditto, by removing relying on $_.
($RunCGI): Can be set outside the script.
Revision
1.311 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 31 00:42:45 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.310: +7 -3 lines
Diff to
previous 1.310
(DoEdit): Bugfix with conditional declaration: my
$header = ... if $foo; If not $foo, $header will not be
initialized and in a mod_perl environment this caused Oddmuse to
keep showing the old header.
Revision
1.306 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jan 23 01:52:22 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.305: +5 -47 lines
Diff to
previous 1.305
($NotifyTracker, %NotifyJournalPage): Removed.
(DoBrowseRequest): Removed ping action.
(DoPost): Don't call PingTracker anymore.
(PingTracker): Moved.
(DoPingTracker): Moved.
Revision
1.305 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jan 23 00:39:39 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.304: +12 -4 lines
Diff to
previous 1.304
($DataDir): Allow setting it via the environment
variable "WikiDataDir" (for mod_perl).
($ModuleDir): New variable.
(Init): Load modules in $ModuleDir.
Revision
1.304 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 19 01:23:19 2004 UTC (8 years, 3 months ago) by
as
Branch:
MAIN
Changes since
1.303: +33 -19 lines
Diff to
previous 1.303
(BrowsePage): Implement comment preview.
(PrintFooter): Implement comment preview.
(DoPost): Put comment munging into new sub AddComment, and call
either BrowsePage or Do Edit when previewing depending on whether
we are previewing a comment or an edit.
(AddComment): New.
Revision
1.301 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jan 11 16:56:41 2004 UTC (8 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.300: +2 -3 lines
Diff to
previous 1.300
* wiki.pl: No longer use bytes pragma, because after printing RSS
feeds Perl will be messed up and some texts such as Links and text
in the footer containing Umlauts will print as bytes instead of
UTF-8 strings. They are double-encoded.
(RSS): Use utf::downgrade to downgrade the data received from the
network. This is sad, since printing Latin-1 encoded RSS feeds in
a UTF-8 wiki no longer works, but protecting the rest of the page
from corruption when an UTF-8 feed is printed in a UTF-8 wiki is
more important.
Revision
1.300 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 8 19:42:17 2004 UTC (8 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.299: +4 -11 lines
Diff to
previous 1.299
(DiffMarkWords): Use WriteStringToFile.
(ApplyRules): Remove no longer used variable.
(InitRequest): Don't call binmode on STDOUT.
At the top: use bytes pragma added to disable all unicode features.
A byte is a byte and not potentially part of a multi-byte character.
Revision
1.298 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 6 02:56:11 2004 UTC (8 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.297: +1 -3 lines
Diff to
previous 1.297
(ApplyRules): Removed binmode call, since that led to weird errors
in perl 5.8.0 and 5.8.2 when printing large amounts of data (seen
when using action=all).
Revision
1.296 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 3 19:07:49 2004 UTC (8 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.295: +7 -18 lines
Diff to
previous 1.295
(PrintFooter): Text change.
(PrintAllPages): Refresh languages, too, when cache=0 is used.
(DoMaintain): No longer handle cache parameter.
Revision
1.289 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 3 14:23:43 2004 UTC (8 years, 4 months ago) by
as
Branch:
MAIN
Changes since
1.288: +40 -29 lines
Diff to
previous 1.288
($PermanentAnchorsInit): New variable.
(ResolveId): Use it to ReadPermanentAnchors() only once per
session.
(ReadPermanentAnchors): Set it.
(DeletePermanentAnchors): Use it.
(UserIsEditor): Change parameters; permanentanchors=2 no longer
works, instead there is links=0 to disable ordinary links; near=1
is new to include near links.
(GetFullLinkList): Change parameters; url=2 no longer works,
instead there is links=0 to disable ordinary links, and inter=1
for interlinks.
Revision
1.278 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 26 13:55:35 2003 UTC (8 years, 4 months ago) by
uid68242
Branch:
MAIN
Changes since
1.277: +84 -71 lines
Diff to
previous 1.277
(HighlightRegex): New.
(DoSearch, SearchNearPages, PrintSearchResultEntry): Use it.
(PrintSearchResult): Extract HighlightRegex, SearchHighlight and
SearchExtract.
(SearchHighlight, SearchExtract): New.
Revision
1.276 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 29 20:55:50 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.275: +9 -12 lines
Diff to
previous 1.275
(DoPost): Some refactoring, and making sure that no there is no
conflict warning when a comment is being appended.
Revision
1.274 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 29 15:07:39 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.273: +71 -70 lines
Diff to
previous 1.273
(DoIndex): Print how many pages there are in this sub,
then call PrintPage on every item in the list instead of passing
the list to PrintPageList.
(PrintPageList): Removed.
(PrintPage): New, replaces PrintPageList.
(DoSearch): Print how many pages there are at the end of the list,
then call PrintSearchResult or PrintPage on every item in the list
instead of passing the list to PrintSearchResults.
(PrintSearchResults): Removed.
(PrintSearchResult): New, replaces PrintSearchResults.
Revision
1.272 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 27 16:24:12 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.271: +13 -8 lines
Diff to
previous 1.271
(RcHeader, GetRc, SearchTitleAndBody): Rename $langFilter -> $lang;
(DoSearch, Replace): Replacement is language sensitive.
Revision
1.267 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 27 15:33:03 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.266: +32 -31 lines
Diff to
previous 1.266
(SearchTitleAndBody, GetRc): Tweaking handling of "none".
(DoSearch): Only replace when lang is not given.
(PrintPageList): Handle raw parameter.
(DoBrowseRequest): Call DoIndex without raw parameter.
(DoIndex): Print header only when no raw parameter; retrieve it here.
(GetSearchForm, GetFilterForm): Use lang parameter as default.
Revision
1.266 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 27 00:43:42 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.265: +18 -10 lines
Diff to
previous 1.265
(%CookieParameters): Added 'lang'.
(RcHeader, GetFilterForm, GetRc): Changed 'rclang' to 'lang'.
(GetSearchForm): Add language textfield.
(SearchTitleAndBody): Filter by languages.
Revision
1.265 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 27 00:14:32 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.264: +8 -6 lines
Diff to
previous 1.264
($UseCache): New variable.
(BrowsePage): Check it before allowing the use of the cache.
(PrintAllPages): Check it before allowing the use of the cache.
Revision
1.264 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 26 23:59:57 2003 UTC (8 years, 5 months ago) by
as
Branch:
MAIN
Changes since
1.263: +6 -6 lines
Diff to
previous 1.263
(GetRc): When a page has no languages, it will be
assigned the language 'none'.
(Save): Save languages as part of the page.
(GetLanguages): Return the languages in a string instead of a listref.
(WriteRcLog): Use the languages string directly.
Revision
1.262 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 16 21:38:32 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.261: +4 -3 lines
Diff to
previous 1.261
(SaveKeepFile): Set keep-ts when moving a page to the keep file.
(ExpireKeepFiles): Use keep-ts to decide whether to expire or not.
Revision
1.258 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 12 13:52:14 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.257: +42 -31 lines
Diff to
previous 1.257
(%RssInterwikiTranslate): New variable.
(RSS): Use 'diff' instead of '(diff)' for translating; change
order of attributes per line; separate by days if supported, print
time if supported; use %RssInterwikiTranslate.
(GetRcHtml): Use 'diff' instead of '(diff)' for translating;
change order of attributes per line.
(GetHistoryLine): Change order of attributes per line.
(CalcTime): Use leading zero for hours.
Revision
1.256 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 11 17:19:14 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.255: +10 -7 lines
Diff to
previous 1.255
(DoIndex): Add new parameter permanentanchors.
(DoIndex): Sort pages.
(PrintPageList): Use ResolveId to get link class correct.
(AllPagesList): Don't sort list.
(DoMaintain): Sort pages.
Revision
1.246 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 8 12:14:34 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.245: +29 -20 lines
Diff to
previous 1.245
(GetRcRss): Provide diff link only if the wiki can handle it.
(GetFilterForm): Use a table.
(RSS): Handle diff and history links.
Revision
1.245 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 6 18:17:29 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.244: +26 -13 lines
Diff to
previous 1.244
(DoRc): Append filter form.
(RcHeader): Fix stickiness of showedit attribute, make days sticky.
(GetFilterForm): New.
Revision
1.239 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 3 22:03:52 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.238: +5 -5 lines
Diff to
previous 1.238
(ReportError): Don't cache errors.
(GetHeader): Use $Now if no caching specified.
(DoShowVisitors): Don't cache.
Revision
1.238 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 3 18:39:41 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.237: +4 -11 lines
Diff to
previous 1.237
(GetPermanentAnchor): Don't always write permanent anchors, and
don't double-encode page ids.
(DoRc): Remove timestamp.
(RcHeader): Remove computation of lastTs, and simplify the link to
"list later changes".
Revision
1.236 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 3 13:52:29 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.235: +41 -42 lines
Diff to
previous 1.235
(InitRequest): Use binmode on STDOUT for UTF-8 printing of RSS.
(RSS): No more encoding and decoding stuff. Rely on Perl 5.8 to
do this.
(DoShowVersion): Add more debugging information by using the
dependencies parameter.
(GetRedirectPage): Only use / when not using query syntax but
keyword syntax.
(ApplyRules): Use binmode to tell Perl that the RSS output can be
printed as UTF-8. Everywhere else we are just using raw bytes
ourselves.
(ReadFileOrDie): Use ReportError instead of die.
(WriteStringToFile): Dito.
Revision
1.234 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 3 01:09:37 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.233: +8 -6 lines
Diff to
previous 1.233
(InitVariables): Set $FullUrl unless set by user.
(GetRcRss): No need to set $FullUrl anymore.
(GetFormStart): Use $FullUrl instead of $ScriptName. Suggested by
Björn Lindström to get URL rewriting to work.
(GetRedirectPage): No need to set $FullUrl anymore. Take
$UsePathInfo into account. Suggested by Björn Lindström.
Revision
1.232 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 3 00:49:01 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.231: +19 -21 lines
Diff to
previous 1.231
(PrintHtmlDiff): Call GetKeptDiff without lock parameter.
(GetKeptDiff): No longer accept lock parameter.
(GetDiff): No longer accept lock parameter. Just use the diff
lock always.
(UpdateDiffs): No longer use lock parameter.
(Save): Make sure the old text is not encoded when it sent to the diff.
Revision
1.231 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 2 17:32:30 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.230: +7 -3 lines
Diff to
previous 1.230
(ApplyRules): Permanent anchors are printed using a special span
element when $withanchors is not used (eg. when showing older
revisions of a page).
Revision
1.230 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 2 16:58:47 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.229: +3 -3 lines
Diff to
previous 1.229
(DoHistory): Extract revision numbers from the keep file
names.
(GetRefererFile): Changed name of referer files.
Revision
1.229 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 2 01:07:51 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.228: +368 -640 lines
Diff to
previous 1.228
Major Rewrite! This version uses a completely new file format,
and it stores kept revisions in separate files instead of one big
keep file. Before upgrading to this revision or later, you MUST
run the upgrade-files.pl script.
Revision
1.227 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 28 19:22:28 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.226: +6 -6 lines
Diff to
previous 1.226
(ApplyRules, Clean): More bugfixing with this eating zero bug. Now
there was the case of extra zeros popping up either after every dirty
block, or after every block.
Revision
1.226 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 28 18:32:51 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.225: +31 -28 lines
Diff to
previous 1.225
(Clean): Fix "eating of zero" bug.
(Dirty): Ditto.
(ApplyRules): Optimize regexp matches by working around /m, and
fix "eating of zero" bug.
(GetRcRss): Replace & with ; in URLs.
(ScriptLinkDiff): Ditto.
(DoPost): Optimize regexp matches by working around $'.
Revision
1.225 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 27 17:25:18 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.224: +10 -8 lines
Diff to
previous 1.224
($PageCluster): New variable.
(GetRc): Only cluster when $PageCluster is set.
(GetRcHtml): Only cluster when $PageCluster is set.
(GetCluster): Only cluster when $PageCluster is set. Main page
has to stand on its own on the first line.
Revision
1.224 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 25 16:58:59 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.223: +69 -127 lines
Diff to
previous 1.223
(GenerateAllPagesList): Don't sort intermediary list.
(ApplyRules): Use /o flag for many regular expressions that didn't
use it.
(GetPageLinks): Deleted.
(DoLinks): Allow raw output.
(PrintLinkList): exists=1 only works for raw output now, names
parameter removed, editlink param removed.
(GetFullLinkList): unique, inter, and sort param removed, these
settings are default, now. page and search param removed. exists
param handled in PrintLinkList for raw output only. empty param
removed, empty pages are not listed anymore.
Revision
1.216 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 24 00:01:15 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.215: +140 -203 lines
Diff to
previous 1.215
Major rewrite of rules -- if you use DirtyBlock in your config file,
then you will have to rewrite your code.
($Fragment, @Blocks, @Flags): New globals used by ApplyRules.
(Clean): New.
(Dirty): New.
(ApplyRules): Major rewrite, use Clean and Dirty.
(DirtyBlock): Deleted. Any MyRules in config files must be rewritten.
Revision
1.214 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 20 00:06:26 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.213: +13 -25 lines
Diff to
previous 1.213
(InitVariables): Set $LastUpdate here, if it is not set already.
(BrowsePage): Move the remaining code from NotModified here. No
longer use Time::ParseDate.
(NotModified): Deleted.
(GetHttpHeader): Send $LastUpdate as Last-modified header. No
longer send an Expires header (no support for HTTP/1.0 caching).
Revision
1.212 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 19 14:08:56 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.211: +37 -13 lines
Diff to
previous 1.211
(InitVariables): Do not reset $IndexInit anymore.
(Upload): Don't test for $IndexInit before calling AllPagesList.
(BrowsePage): Return if NotModified().
(NotModified): New.
($LastUpdate): New.
(Save): Touch $IndexFile in any case, and set $LastUpdate.
(DoMaintain): Unset $IndexFile when cleaning the cache.
(DoMaintain): Redirect stdout only when required.
Revision
1.210 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 18 22:30:54 2003 UTC (8 years, 6 months ago) by
as
Branch:
MAIN
Changes since
1.209: +12 -11 lines
Diff to
previous 1.209
(GetPageOrEditLink): ResolveId returns more data.
(ResolveId): Return more data.
(BrowseResolvedPage): Use it.
(GetHtmlHeader): Add CSS for a.alias.
Revision
1.209 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 18 11:26:54 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.208: +21 -19 lines
Diff to
previous 1.208
(GetHtmlHeader): Added RSS autodiscovery.
(DoBrowseRequest): Renamed &MyAction to &MyActions.
(GetRcRss): Simplification.
(@MyMacros): New.
(DoPost): Apply macros.
Revision
1.202 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 16 12:04:07 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.201: +5 -4 lines
Diff to
previous 1.201
(DoBrowseRequest): Simplify call to DoPost.
(DoPost): Call FreeToNormal on the pagenamee, and check for validity here.
Revision
1.200 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 15 21:29:59 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.199: +9 -6 lines
Diff to
previous 1.199
(ScriptLink): Add title parameter.
(GetSearchLink): Add title parameter.
(GetHeader): Add title to header.
(GetPermanentAnchor): Add title to permanent anchor definition.
Revision
1.196 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 14 22:09:19 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.195: +49 -65 lines
Diff to
previous 1.195
(DoRc): Extract header printing into RcHeader.
(RcHeader): New.
(GetRc): Implement rcfilteronly parameter (ie. filtered recent
changes).
Revision
1.195 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 12 22:24:33 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.194: +38 -40 lines
Diff to
previous 1.194
(DoRc): Rewrite in a more compact call to map.
(GetRc): Rewrite in a more compact call to map.
(DoMaintain): Prune referrers.
(DeletePage): Rewrite in a more compact loop.
(ReadReferers): Call ExpireReferers.
(ExpireReferers): New function extracted from UpdateReferers.
(UpdateReferers): Don't expire referrers, since that happens upon
reading.
Revision
1.192 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 12 02:37:52 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.191: +99 -136 lines
Diff to
previous 1.191
($SurgeProtectionTime, $SurgeProtectionViews): Doubled
defaults.
(InitVariables): $NotFoundPg also passed through FreeToNormal.
(ApplyRules): Removed rule for pointing to permanent
anchors [##like this].
(GetPageOrEditLink): Call ResolveId.
(DoBrowseRequest): Call BrowseResolvedPage.
(DoBrowseRequest): If MyAction is defined, it is called instead of
doing the default error reporting.
(BrowseResolvedPage): New.
(ResolveId): New.
(BrowsePage): Simplified #REDIRECT handling.
(GetRedirectPage): Removed third parameter since it was unused.
(ReBrowsePage): Removed third parameter since it was unused.
(DoPost): Removed third parameter since it was unused.
(DoRandom): Removed extra parameters from call to ReBrowsePage.
(GetSearchLink): Take class and name parameters.
(GetHtmlHeader): Removed CSS rules for a.link from the default CSS.
(GetPermanentAnchor): Simplified.
(GetPermanentAnchor): Removed; use GetSearchLink for rendering.
Revision
1.188 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 10 12:59:39 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.187: +63 -41 lines
Diff to
previous 1.187
(T): Simplified.
(BrowsePage): Print list of recent changes if parameter
rcclusteronly is set.
(DoRc): Print header if rcclusteronly is set.
(GetRc): Implement page clustering logic.
(GetRcHtml, GetRcText, GetRcRss): New parameter cluster.
(GetRcRss): Fix bug with less than 15 items in the history.
(GetOldPageParameters): Renamed to GetPageParameters.
(GetPageParameters, GetOldPageLink): New parameter cluster.
(Save): Determine page cluster when saving.
(GetCluster): New sub.
(WriteRcLog): New parameter cluster.
(DoSurgeProtection): Fix bug allowing unlock action if unable to
get visitor lock.
Revision
1.186 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 9 22:16:49 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.185: +9 -7 lines
Diff to
previous 1.185
(ExpireKeepFile, WriteStringToFile, AppendStringToFile):
Spelling: cant->cannot.
(DoPost): Use diff3 for conflict merging, and use a pre block for
the conflict itself.
(GetPermanentAnchor): New text.
Revision
1.182 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 4 17:38:22 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.181: +33 -5 lines
Diff to
previous 1.181
(DoUnlock): Added merge back.
(DoEdit): Added oldtime back.
(DoPost): If new author and oldtime is given, attempt a merge.
Use a message if the merge fails. Use a message if conflict
markers are detected.
(MergeRevisions): Added back.
Revision
1.181 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 4 16:59:57 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.180: +21 -20 lines
Diff to
previous 1.180
(CalcTimeSince): New, moved from DoShowVisitors.
(DoShowVisitors): Call CalcTimeSince.
(DoPost): Increase timespan to 10 minutes and call CalcTimeSince.
Revision
1.180 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 4 13:02:29 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.179: +38 -116 lines
Diff to
previous 1.179
(%CookieParameters): Added 'msg'.
(BrowsePage): Display the content of the 'msg' parameter, and
remove it from the cookie.
(Cookie): Changes to the 'msg' parameter only will not cause the
cookie to be shown.
(Init): Fixed typo in the error message for config pages.
(DoEdit): Less parameters.
(DoBrowseRequest): Call DoEdit with less parameters.
(DoBrowseRequest): Get rid of the oldtime parameter and use Save
instead (the name of the save button). Get rid of raw=2.
(PrintFooter): Get rid of oldtime and oldconflict parameters.
(DoUnlock): No longer consider the merge lock.
(DoEdit): Get rid of conflict handling.
(DoPost): Don't handle raw=2. Get rid of conflict handling. Just
use add the 'msg' parameter to the cookie if somebody else changed
the page in the last two minutes.
Revision
1.176 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 3 17:53:28 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.175: +15 -6 lines
Diff to
previous 1.175
(RSS): Remove extra quotes around URIs. 'title' is no longer
guaranteed. Use 'guid' if available. But it back in a list.
Revision
1.172 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 2 21:10:01 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.171: +41 -39 lines
Diff to
previous 1.171
(ApplyRules): Allow uptional maxitems argument for RSS
feeds, and allow multiple RSS feeds to be merged.
(RSS): Implement it.
Revision
1.171 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 30 08:09:01 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.170: +16 -22 lines
Diff to
previous 1.170
(RequestLockOrError): Renamed from RequestLock.
(PrintWikiToHTML): Renamed RequestLock.
(DoRollback): Renamed RequestLock, don't return.
(UserIsAdminOrError): Use ReportError.
(Replace): Renamed RequestLock, don't return.
(DoPost): Renamed RequestLock, don't return.
(DoPost): Don't call ReleaseLock before ReportError.
(DoMaintain): Renamed RequestLock, don't return.
(DoConvert): Renamed RequestLock, don't return. Don't return upon
failed UserIsAdminOrError.
(GetPermanentAnchor): Don't specify separate wait values.
(DeletePermanentAnchors): Don't specify separate wait values.
Revision
1.170 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 30 07:45:53 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.169: +31 -60 lines
Diff to
previous 1.169
Moved use CGI and use CGI::Carp to the top.
(%Lock): New variable.
(InitVariables): Set it.
(ReportError): Exit upon an error. Clean up locks behind us.
(RequestLockDir): Don't return after ReportError. Add current
lock to %Locks.
(ReleaseLockDir): Remove lock from %Locks.
(DoBannedReading): Deleted.
(DoWikiRequest): Don't use DoBannedReading, don't return after
ReportError.
(DoRollback): Don't return after ReportError.
(DiffHtmlMarkWords): No highlighting if more than 50 words. There
was a case where highlighting from 1 to 1739 caused a crash that
was not caught by fatalsToBrowser.
(UpdatePageVersion): Deleted.
(OpenPage): Don't use UpdatePageVersion, don't return after
ReportError.
(DoPost): Check for $UploadAllowed before accepting uploads.
(ExpireKeepFile, ValidIdOrDie): Don't return after ReportError.
(DoEdit, DoDownload, DoPost): Don't return after ReportError.
(DoPost): Catch empty string returned by MergeRevisions, eg. if
/usr/bin/merge is missing.
(WriteRcLog): Don't die; use ReportError instead.
(DoPageLock): Don't return after ValidIdOrDie.
(DoSurgeProtection): Don't exit after ReportError.
Revision
1.167 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 27 15:46:45 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.166: +32 -25 lines
Diff to
previous 1.166
(SearchTitleAndBody): Skip uploaded files.
(PrintSearchResults): Show files with MIME-type if search string
starts with ^#FILE.
Revision
1.163 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 27 14:56:26 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.162: +45 -42 lines
Diff to
previous 1.162
($PrintedHeader): New variable.
(InitVariables): Set it.
(GetHttpHeader): Set it.
(ReportError): Use GetHttpHeader to print header.
(DoRollback): No error message required.
(ExpireKeepFile): Rewrote some conditions.
(ExpireKeepFile): Use ReportError instead of die.
(RequestLockDir): Use ReportError instead of die.
(PrintPageList): Rewrote lock handling.
(DoPost): Rewrote lock handling.
(DoMaintain): Rewrote lock handling.
(DoConvert): Rewrote lock handling.
(DoSurgeProtection): Rewrote lock handling.
(WriteReferers): Rewrote lock handling.
(GetPermanentAnchor): Rewrote lock handling.
(DeletePermanentAnchors): Rewrote lock handling.
Revision
1.158 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 25 17:41:40 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.157: +6 -6 lines
Diff to
previous 1.157
(GetHttpHeader): Use Cache-Control header.
(DoDownload): If the revision requested is the same as the current
revision there is no need to open the keep file.
(DoPost): Do encoding in a separate eval block.
Revision
1.157 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 23 23:15:09 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.156: +11 -15 lines
Diff to
previous 1.156
(BrowsePage): Don't pass modification date to GetHeader.
(GetHeader): Don't accept modification date anymore.
(GetHttpHeader): Simplified handling of modification date.
(DoDownload): Only pass modification date to GetHttpHeader if no
revision.
Revision
1.155 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 23 21:46:30 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.154: +4 -8 lines
Diff to
previous 1.154
(BrowsePage): Removed 304 response, because the status of the
page also depends on the status of *other* pages.
(DoBrowseRequest): Removed parameters to BrowsePage.
Revision
1.154 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 23 21:26:37 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.153: +24 -53 lines
Diff to
previous 1.153
(ReportError): Simplified some.
(Init): New setup, make sure $MaxPost takes effect.
(DoIndex): Simplified some.
(PrintSearchResults): Remove subpage specific code.
(GetFullLinkList): Simplified some.
Revision
1.153 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 23 20:52:41 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.152: +107 -81 lines
Diff to
previous 1.152
(ApplyRules): Accept two more parameters, with anchors,
and revision, use Upload for the picture rule, extend include rule
to accept a with-anchors instead of text parameter, two new rules
to handle uploaded files, take the new parameters into account.
(AddHtmlEnvironment): Simplified slightly.
(CloseHtmlEnvironments): Simplified slightly.
(PrintWikiToHTML): New parameter cacheok.
(Upload): New function.
(PrintCache): Use new parameters for ApplyRules.
(DoBrowseRequest): Pass new parameters to BrowsePage when
appropriate.
(BrowsePage): New parameter $cacheok, return 304 NOT MODIFIED if
appropriate, pass new parameter to GetHeader.
(GetHeader): New parameter timestamp, pass it on to GetHttpHeader.
(GetHttpHeader): New parameters modified and cacheok.
(GetHtmlHeader): New CSS to downloadable files.
(DoEdit): Reset edit box if it used to be a file, only provide
upload link if you are allowed to use it, no longer pass 'preview'
as a revision to PrintWikiToHTML.
(DoDownload): Return 304 NOT MODIFIED if appropriate, pass new
parametesr to GetHttpHeader.
(PrintAllPages): New parameter comments, to print link to comments
page if required.
(DoMaintain): New parameters for PrintWikiToHTML.
Revision
1.152 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Sep 22 01:43:08 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.151: +142 -102 lines
Diff to
previous 1.151
($UploadAllowed, @UploadTypes): New variables.
(InitRequest): Uploads are allowed, now.
(ApplyRules): New rule to render uploaded files as links or
images.
(DoBrowseRequest): New download action.
(GetHttpHeader): New parameter to offer 24h caching instead of the
default 10s.
(GetFormStart): New parameter for multipart/form-data required for
file uploads.
(OpenNewText): Removed newauthor field from the database.
(DoEdit, DoPost): Handle uploading of files -- large change!
(GetUpload, DoDownload): New functions.
(DoRollback, DoSearch): UserIsAdminOrError requires HTTP Headers
printed.
(Save): Replaced newAuthor parameter with upload parameter. No
diff and no language info is generated for uploads.
(DoMaintain): Removed forgotten provision for subpages.
(DeletePage): Deleting pages no longer edits the rclog.
(EditRecentChanges): Removed.
(EditRecentChangesFile): Removed.
Revision
1.151 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 21 12:03:04 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.150: +56 -13 lines
Diff to
previous 1.150
(DoBrowseRequest): New action 'rollback'.
(GetRcHtml): Show rollback link for administrators.
(RollbackPossible): New.
(DoRollback): New.
Revision
1.150 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 21 00:31:56 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.149: +15 -11 lines
Diff to
previous 1.149
(OpenHtmlEnvironment): Fix closing of all tags when the
list type changes.
(GetPageOrEditLink): Change & to ; to separate parameters.
(GetEditLink, DoRc, GetRcRss): Ditto.
(GetHistoryLink, GetRCLink, GetPermanentAnchor): Ditto.
Revision
1.149 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 20 11:55:11 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.148: +43 -54 lines
Diff to
previous 1.148
(ApplyRules, OpenHtmlEnvironment): Rewrote list
handling.
(GetPageOrEditLink): & -> &
(GetEditLink): Ditto.
(DoRc): Ditto.
(GetPermanentAnchor): Ditto.
Revision
1.147 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 19 18:49:59 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.146: +19 -14 lines
Diff to
previous 1.146
(PrintWikiToHTML): Don't do locking if the calling context has
already locked the wiki.
(DoMaintain): When cache=1, refresh the cache, too.
Revision
1.146 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 19 00:03:58 2003 UTC (8 years, 7 months ago) by
as
Branch:
MAIN
Changes since
1.145: +6 -5 lines
Diff to
previous 1.145
(SavePage): Added error for missing pagenames.
(DoSearch): Indicate the replacement text, too.
(Replace): Do replacement in an eval so that backreferences work.
Revision
1.142 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 12 14:37:34 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.141: +15 -13 lines
Diff to
previous 1.141
Replaced many occurences of || with or.
(GetHtmlHeader): The index of all pages gets robot INDEX
tagged so that you can submit it to a search engine to spider your
entire site, together with your recent changes page.
Revision
1.140 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 7 23:21:58 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.139: +124 -136 lines
Diff to
previous 1.139
Many little CGI changes, changes of local
declarations (coding style), stripped some extra newlines.
($WikiDescription): Can no longer be set in the config file.
(Init): Restructured. Call InitRequest at the beginning and
InitVariables at the end.
(InitRequest): Split into two, InitRequest and InitVariables.
(InitVariables): Set $WikiDescription here.
(DoLinks): No longer use pre tags.
(PrintLinkList): Add colon after page name if page names are
listed.
Revision
1.138 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 6 12:45:05 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.137: +8 -11 lines
Diff to
previous 1.137
(GetHtmlHeader): Simplified default CSS since the validator seems
to be less picky about foreground and background colors.
Revision
1.136 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 4 19:50:17 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.135: +91 -165 lines
Diff to
previous 1.135
(InitLinkPatterns): Small refactoring.
(BrowsePage): Small refactoring.
(GetRc): Small refactoring.
(SaveKeepSection): Small refactoring.
(SearchTitleAndBody): Small refactoring.
(PrintSearchResults): Small refactoring.
(ScriptLinkDiff): Allow new parameter for the old revision to use.
(GetRcHtml): Removed rcchangehist parameter which had no effect.
If parameter all=1 is given, the diff link uses the new
ScriptLinkDiff parameter.
(PrintHtmlDiff): Simplified substantially. Removed author diffs.
Removed links to alternate diffs.
(GetCacheDiff): Removed author diffs.
(ExpireKeepFile): Removed author diffs.
(UpdateDiffs): Simplified substantially. Removed author diffs.
(GetSearchLink): Do not url-escape the plus sign used to replace
spaces.
Revision
1.129 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 29 15:49:40 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.128: +17 -5 lines
Diff to
previous 1.128
(GetRcHtml): Link to older revisions when using the all
parameter.
(GetRCLink): New function.
(PrintFooter): Add new item, using it.
Revision
1.128 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 21 15:48:12 2003 UTC (8 years, 8 months ago) by
as
Branch:
MAIN
Changes since
1.127: +7 -4 lines
Diff to
previous 1.127
(ApplyRules): Extend journal rule to allow reverse parameter.
(PrintJournal): New parameter to reverse journals.
Revision
1.121 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 16 01:00:39 2003 UTC (8 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.120: +15 -21 lines
Diff to
previous 1.120
(InitLinkPatterns): Simplify $UrlPattern and take more of
RFC 2396 into account.
(ApplyRules): ISBN rule now produces a dirty block. Cleaned up
many other rules to remove extra setting of $oldmatch.
Revision
1.120 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 15 10:06:49 2003 UTC (8 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.119: +2 -2 lines
Diff to
previous 1.119
(DoBrowseRequest): Remove all the stuff up to and
including a slash, fixing the problems reported by Roland Gruen.
Revision
1.117 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 1 22:22:22 2003 UTC (8 years, 9 months ago) by
as
Branch:
MAIN
Changes since
1.116: +3 -3 lines
Diff to
previous 1.116
(ApplyRules): Pass $block, @blocks, and @flags to
MyRules so that dynamic rules can be written.
(DoShowVisitors): Fix typo.
Revision
1.115 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 21 22:30:41 2003 UTC (8 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.114: +17 -46 lines
Diff to
previous 1.114
(DoHistory): Removed $canEdit.
(GetHistoryLine): Ditto.
(DoPassword): Removed some newlines.
(UserCanEdit): Rewrote more compactly. Thanks, Pierre, for suggesting it.
Revision
1.114 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 21 17:42:32 2003 UTC (8 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.113: +3 -5 lines
Diff to
previous 1.113
(DoBrowseRequest): Join using '_' instead of the space character.
(DoEdit): No longer limit the length of the summary.
Revision
1.113 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 21 10:11:51 2003 UTC (8 years, 10 months ago) by
as
Branch:
MAIN
Changes since
1.112: +3 -3 lines
Diff to
previous 1.112
(UrlEncode): Added more safe characters according to RFC 2396.
(DoBrowseRequest): Use join(' ', $q->keywords) to deal with link
that include encoded spaces (%20) instead of underlines.
Revision
1.108 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jun 18 19:50:48 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.107: +22 -21 lines
Diff to
previous 1.107
(GetPageOrEditLink): UrlEncode all page ids.
(GetPageLink, GetEditLink, DoRc, GetOldPageParameters): Ditto.
(GetSearchLink, ScriptLinkDiff, GetHistoryLink): Ditto.
(PrintFooter, PrintAllReferers): Ditto.
(GetPermanentAnchorLink, GetPermanentAnchor): Ditto.
Revision
1.107 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 16 23:27:58 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.106: +13 -13 lines
Diff to
previous 1.106
(DoPost): Rebrowse after pinging.
(PingWeblogs): Use & instead of ; to separate parameters.
(DoPingWeblogs): Pass the value of the id parameter or RCName to
DoPingWeblogs.
($NotifyWeblogs): Renamed to $NotifyTracker.
(DoPingWeblogs): Renamed to DoPingTracker.
(PingWeblogs): Renamed to PingTracker.
Revision
1.106 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 16 22:21:39 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.105: +8 -6 lines
Diff to
previous 1.105
(InitRequest): ScriptName defaults to $q->url().
(ScriptLink): Prefer syntax using path_info().
(GetHtmlHeader): Removed ref. to path_info.
(PingWeblogs): Switched to blogrolling.com.
Revision
1.103 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 15 20:20:42 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.102: +22 -16 lines
Diff to
previous 1.102
(PrintFooter): Add link to original if appropriate.
(DoPost): Use undefined default $comment to distinguish '' $comment from no $comment.
Revision
1.101 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 15 19:53:25 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.100: +24 -23 lines
Diff to
previous 1.100
($NewComment): New.
(PrintFooter): Use it.
(OpenNewText): Check whether $CommentsPrefix is set before matching.
(DoPost): Reorder and rewrite the comment handling code.
Revision
1.97 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 15 00:00:19 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.96: +45 -12 lines
Diff to
previous 1.96
Including easy submission patch by Pierre Gaston <pgas@intracom.gr>.
(GetRandomLink): Removed.
(ApplyRules): Include local pages using GetPageContent, if possible.
(GetRaw): Simplified.
(DoPost): Append comment it necessary.
($CommentsPrefix): New.
(PrintFooter): Added easy submission code.
(OpenNewText): Only add if not commenting.
(DoPost): Extract comments from aftertext parameter.
Revision
1.95 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 13 18:25:01 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.94: +7 -25 lines
Diff to
previous 1.94
(%CookieParameters): Get rid of linkrandom.
(ScriptLinkTitle): Deleted.
(GetAuthorLink): Include code from ScriptLinkTitle and add
span.author.
(GetTextArea): Parameter editwide has no effect anymore.
Revision
1.93 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 13 01:27:42 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.92: +49 -23 lines
Diff to
previous 1.92
($CollectingJournal): New variable.
(DoWikiRequest): Move all the init calls into Init.
(Init): Moved all the init calls from DoWikiRequest here.
(ApplyRules): Added journal rule.
(PrintJournal): New.
(GetGotoBar): Use GetPageLink.
(DoPrintAllPages): Use 0 parameter when calling PrintAllPages.
(PrintAllPages): Take extra parameter to say whether to link to
the pages or not.
(PingWeblogs): Use the edited page instead of the recent
changes page for pinging weblogs.com.
Revision
1.89 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jun 10 22:15:50 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.88: +10 -7 lines
Diff to
previous 1.88
(InitRequest): Convert spaces to underscores for
$HomePage, $RCName, $BannedHosts, $InterMap, $RefererFilter,
$StyleSheetPage, and $ConfigPage.
Revision
1.87 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jun 10 21:05:06 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.86: +16 -22 lines
Diff to
previous 1.86
(@UserGotoBarPages): Set to $HomePage and $RcName.
(GetGotoBar): Just use @UserGotoBarPages as-is.
(DoEdit): Get rid of $editCols, $editRows, and the editcols and
editrows parameters. Call GetTextArea without 'em.
(GetTextArea): Hardcode the rows and columns. Don't use the style
attribute.
(BrowsePage): The hr before referers is not added here.
(RefererTrack): Add the hr here.
Revision
1.86 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jun 9 21:55:16 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.85: +18 -80 lines
Diff to
previous 1.85
($UseSubpage): Removed.
($MainPage): Removed; was used for subpages.
($FreeUpper): Removed.
(InitRequest): Removed $MainPage.
(InitLinkPatterns): Removed $UseSubpage.
(GetPageOrEditLink): Removed $MainPage.
(GetPageLink): Removed $MainPage.
(GetEditLink): Removed $MainPage.
(BrowsePage): Removed $MainPage.
(GetSearchLink): Removed $MainPage.
(GetGotoBar): Removed MainPage handling.
(ValidId): Removed $UseSubpage.
(GenerateAllPagesList): No longer do subpages.
(FreeToNormal): Removed $UseSubpage and $FreeUpper.
(DoEdit): Removed $MainPage.
Revision
1.85 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 8 00:14:27 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.84: +4 -4 lines
Diff to
previous 1.84
(DoWikiRequest): Cannot use $q->p($@) because of some
bad interaction of $@ with CGI. The resulting "<p>$ConfigFile:
$@</p>" seems *very* brittle, so change with care. It was also
impossible to concat the result with the result of a call to
ScriptLink.
Revision
1.84 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 5 16:25:45 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.83: +16 -31 lines
Diff to
previous 1.83
(InitRequest): Only set when undefined.
(GetRc): Removed pagecount.
(GetRcHtml): Removed pagecount and link changed name from (n
changed) to (history).
(GetRcText): Removed pagecount.
Revision
1.81 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jun 4 23:42:46 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.80: +90 -92 lines
Diff to
previous 1.80
(DoWikiRequest): $UseConfig does not control
$ConfigPage.
(InitLinkPatterns): Moved FS settings into new sub.
(Init): New.
(InitRequest): Moved it around in the file.
(GetParam): Ditto.
(InitCookie): Ditto. No longer called from InitRequest but from
DoWikiRequest directly.
(GetHtmlHeader): Changed permanent_def to definition and
permanent_link to link.
(GetPermanentAnchor): Changed permanent_def to definition.
(GetPermanentAnchorLink): Changed permanent_link to link.
Revision
1.80 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jun 4 01:02:03 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.79: +12 -8 lines
Diff to
previous 1.79
($ConfigPage): New.
(@LockOnCreation): Added it.
(DoWikiRequest): Use it, set $Message here for potential error.
(InitRequest): Don't set $Message here.
Revision
1.76 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 1 21:41:29 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.75: +10 -4 lines
Diff to
previous 1.75
($StyleSheetPage): New.
(@LockOnCreation): Added it.
(%CookieParameters): Added 'theme'.
(GetHtmlHeader): Use $StyleSheetPage if no $StyleSheet is given.
(GetHtmlHeader): Use the 'theme' parameter, if given.
Revision
1.73 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 31 02:57:23 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.72: +68 -78 lines
Diff to
previous 1.72
(%CookieParameters): New.
(Cookie): Use it to handle the previously inherited attributes.
(ScriptLink): No more inheriting of parameters.
(InheritParameter): Removed.
(InitCookie): Password parameter handling removed.
Revision
1.72 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri May 30 18:04:49 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.71: +97 -5 lines
Diff to
previous 1.71
Global anchors patch by Pierre Gaston <pgas@intracom.gr>.
($PermanentAnchorsFile, $PermanentAnchors)
(%PermanentAnchors, %PagePermanentAnchors): New.
(ApplyRules): New rules for global anchors.
(GetEditLink): Allow passing of class and name to the link.
(DoBrowseRequest): New anchor action.
(DoPost): Delete permanent anchors.
(DeletePage): Ditto.
(ReadPermanentAnchors): New.
(WritePermanentAnchors): New.
(GetPermanentAnchor): New.
(GetPermanentAnchorLink): New.
(DeletePermanentAnchors): New.
Revision
1.70 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 28 00:20:42 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.69: +47 -39 lines
Diff to
previous 1.69
(GetPageContent): New.
(GetSiteUrl, UserCanEdit): Use it.
(@LockOnCreation): New, defaults to ($BannedHosts, $InterMap).
(DoPost, Save): Use it.
Revision
1.65 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon May 26 18:40:36 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.64: +24 -62 lines
Diff to
previous 1.64
($BanListFile): No more banned file.
($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.
Revision
1.64 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 24 10:48:57 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.63: +676 -744 lines
Diff to
previous 1.63
(PrintAllReferers): New function.
(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.
Revision
1.63 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu May 22 22:45:54 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.62: +79 -52 lines
Diff to
previous 1.62
($ReplaceForm): New global variable.
(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.
Revision
1.62 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 21 22:46:05 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.61: +41 -28 lines
Diff to
previous 1.61
($NotifyWeblogs): Add new variable, defaulting to 0.
(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.
Revision
1.61 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 21 01:16:25 2003 UTC (8 years, 11 months ago) by
as
Branch:
MAIN
Changes since
1.60: +10 -8 lines
Diff to
previous 1.60
(InitCookie): Get hash from cookie by splitting the
string on $FS1.
(Cookie): Use $FS1 to encode the value.
(PrintFooter): Call PrintMyContent with $id as the parameter.
Revision
1.60 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun May 18 14:05:23 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.59: +2 -2 lines
Diff to
previous 1.59
(GetHtmlHeader): Add a class to the body; the value of
the class is the URL of the script -- this way it can be
distinguished from all other sites in a user style sheet.
Revision
1.58 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 17 15:07:12 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.57: +23 -59 lines
Diff to
previous 1.57
($SimpleLinks, $NonEnglish): Removed.
(InitLinkPatterns): Simplified the regexp generating code such
that the regexps used are clearer now,
Revision
1.56 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 17 10:07:09 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.55: +10 -8 lines
Diff to
previous 1.55
(BrowsePage): Use a flag for PrintWikiToHTML in order to prevent
the creation of new pages due to cache creation for the default
text.
Revision
1.55 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 17 01:50:35 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.54: +48 -47 lines
Diff to
previous 1.54
($NewText): Default value in the init section instead of
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.
Revision
1.52 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri May 2 06:20:12 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.51: +113 -126 lines
Diff to
previous 1.51
($Debug, $Message): Renamed $Debug to $Message.
(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.
Revision
1.51 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 27 21:22:52 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.50: +58 -56 lines
Diff to
previous 1.50
($TopLinkBar): New option.
(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.
Revision
1.49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 27 14:35:29 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.48: +5 -5 lines
Diff to
previous 1.48
(BrowsePage): Do not attempt to open keep file when the requested
revision is the current revision. Use div class="message" for
the little message about the revision being displayed.
Revision
1.44 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 26 17:21:42 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.43: +63 -39 lines
Diff to
previous 1.43
($FS0used): Deleted.
(DoBrowseRequest): Added convert action.
(GetKeepFile): Convenience function added.
(KeepFileName): Use it.
(ReadFile): Removed on-the-fly separator conversion.
(DoMaintain): Removed separator conversion of pages, no conversion
of rc entries, no conversion of $RcOldFile.
(DoConvert): New function.
(ConvertFile): New functtion.
(ReadRecentVisitors): Replaced newline and colon with field separators.
(WriteRecentVisitors): Ditto.
(GetReferers): Ditto.
This undoes all the on-the-fly conversion code, since that was
hard to maintain, and had a bug: Keep files of pages that had no
expiry pending did not get converted.
Revision
1.42 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Apr 24 17:43:27 2003 UTC (9 years ago) by
as
Branch:
MAIN
Changes since
1.41: +6 -6 lines
Diff to
previous 1.41
(GetRcRss): No longer treat '*' special.
(GetRcText): No longer treat '*' special.
(GetHistoryLine): No longer treat '*' special.
(Cookie): No longer treat '*' special.
Revision
1.31 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 15 22:39:16 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.30: +32 -60 lines
Diff to
previous 1.30
(GetPageLinks): No longer call StripUrlPunct.
(StripUrlPunct): Removed.
(SplitUrlPunct): Removed.
(GetUrl): No longer call SplitUrlPunct, no longer return a list.
(PrintLinkList): GetUrl no longer returns a list.
(GetInterLink): No longer call SplitUrlPunct.
(ApplyRules): GetUrl no longer returns a list.
(InitLinkPatterns): Changed $UrlPattern.
(InitRequest): Reset $Debug on every invocation (for mod_perl!).
(InitCookie): Move password into the cookie, too, so that you can
set the password even when you are banned and banned cannot read.
(GetHeader): Add message at the top of the file when $Debug is set.
(DoPassword): Get rid of the default '*' password.
(RSS): Charsets are case-insensitive.
Revision
1.29 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 13 22:18:16 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.28: +10 -10 lines
Diff to
previous 1.28
(ApplyRules): If something looked like an Interlink but
was not, and the text contained more than one colon, backtracking
got confused. This bus is fixed.
(GetInterLink): Do not reuse $id, removed bogus if condition that
was always true.
(GetUrl): Do not reuse $url.
Revision
1.28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 12 12:40:13 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.27: +5 -5 lines
Diff to
previous 1.27
($HttpCharset): Default is 'ISO-8859-1' instead of empty.
(ApplyRules): Include and rss pseudo tags don't eat all following whitespace.
(RSS): Error message is on a paragraph of its own.
Revision
1.21 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Apr 1 12:24:03 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.20: +137 -39 lines
Diff to
previous 1.20
($RefererDir, $RefererTracking, $RefererTimeLimit)
($RefererLimit, %Referers): New variables.
(ApplyRules): Use GetRaw instead of IncludeRaw
(GetRaw): Renamed from IncludeRaw and without HTML quoting.
(BrowsePage): Use more methods from the CGI module, call
RefererTrack if appropriate.
(DoRc): Use more methods from the CGI module.
(GetHtmlHeader): Added new div.
(ForceReleaseLock): Do globbing.
(RequestRefererLock): New function, creates locks per-page.
(ReleaseRefererLock): New function.
(DoUnlock): Requires globbing for refer locks.
(GetRefererFile): New.
(ReadReferers): New.
(GetReferers): New.
(UpdateReferers): New.
(RefererTrack): New.
Revision
1.19 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 28 20:33:37 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.18: +8 -6 lines
Diff to
previous 1.18
(InitLinkPatterns): Only set $FS and $FS0 if $FS is not set already.
(ReadFile): Check wether $FS0 is set before doing anything.
(DoMaintain): Ditto.
Revision
1.17 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 28 19:50:04 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.16: +55 -28 lines
Diff to
previous 1.16
Tricky update! Changing the field separator from superscript 3 to
an ASCII control character!
(FS0, FS0used): New field separator for the old one, and
a new variable to tell us if the old separator has been used.
(InitLinkPatterns): The old separator, FS0, is set to \xb3 (the
well-known superscript 3), and the new separator, FS, is set to
\x1e, the ASCII control character RS, aka. RECORD SEPARATOR.
(ReadFile): Convert data read from files from FS0 to FS if
necessary when loading.
(DoMaintain): More translating, some HTML changes. Using the new
field separator will not work for keep files, since new changes
are just appended to the file. The keep files must be updated,
therefore. This happens during maintenance, so make sure
maintenance really gets run! This also updates the recent changes
log files (both old and current).
(GetValidatorLink): Use $q->self_url for the validator link.
Revision
1.13 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Mar 25 09:11:09 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.12: +20 -17 lines
Diff to
previous 1.12
(GetHtmlHeader): New classes.
(PrintSearchResults): Removed output variable, print as we search
instead of only when searching is done, use CGI functions for HTML
tags, translation.
(PrintPageList): Use CGI functions for HTML tags.
Revision
1.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 24 22:43:09 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.11: +70 -79 lines
Diff to
previous 1.11
(GetCommonFooter): Use CGI functions for HTML tags.
(DoEdit): Ditto.
(DoEdit): Ditto, plus moved preview out of the form for CSS.
(DoPageLock): Ditto.
(DoPageLock): Ditto.
(DoEditBanned): Ditto, and added translations.
(DoUpdateBanned): Ditto, and added translations.
(DoShowVersion): Translation.
(DoShow): Translation.
Revision
1.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Mar 22 14:57:01 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.8: +10 -2 lines
Diff to
previous 1.8
(BrowsePage): Pass $id along to OpenDefaultText.
(OpenDefaultText): If $id is the homepage, and the revision is 0,
attempt to display the README file instead.
Revision
1.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Mar 22 02:12:09 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.7: +8 -4 lines
Diff to
previous 1.7
(GetHtmlHeader): Added CSS foreground color to div tags where only
a background was defined, and added body and a links.
(UseSubpage): Default to 0 because GNU/Linux would always be a link.
Revision
1.3 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 21 20:42:26 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.2: +22 -10 lines
Diff to
previous 1.2
(DataDir): Default value is the temp directory, unless
already set.
(ConfigFile): Don't set it, if it already has a value.
(GetValidatorLink): New subroutine.
(GetFooterText): Use it.
(ValidatorLink): New option.
(InitRequest): Use $q->script_name() instead of "$ENV{SCRIPT_NAME}".
Revision
1.2 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 21 15:34:14 2003 UTC (9 years, 1 month ago) by
as
Branch:
MAIN
Changes since
1.1: +27 -14 lines
Diff to
previous 1.1
(ScriptLink): Inherit embed and toplinkbar parameters to
local links.
(ISBNLink): Make URLs to shops translatable.
(GetGotoBar): Add search button.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.