Commit Graph

161 Commits

Author SHA1 Message Date
Alex Schroeder
4aed18ebf6 added a test to verify that the intermap can only be created by administrators 2003-05-28 00:22:43 +00:00
Alex Schroeder
2441a333fa (GetPageContent): New.
(GetSiteUrl, UserCanEdit): Use it.
(@LockOnCreation): New, defaults to ($BannedHosts, $InterMap).
(DoPost, Save): Use it.
2003-05-28 00:20:42 +00:00
Alex Schroeder
23ac2c4893 *** empty log message *** 2003-05-28 00:20:01 +00:00
Alex Schroeder
dd401a64c7 intermap must be created as an admin 2003-05-28 00:17:17 +00:00
Alex Schroeder
9c64b89fd8 (GetSiteUrl): Typo. 2003-05-27 23:29:31 +00:00
Alex Schroeder
f0e72b4f40 Updated 2003-05-27 23:28:36 +00:00
Alex Schroeder
4b034148b7 *** empty log message *** 2003-05-27 23:23:54 +00:00
Alex Schroeder
8d2efc273a ($InterFile): Deleted.
($InterMap): New.
(GetSiteUrl): Use it.
(UserIsBanned): Fixed regexp.
2003-05-27 23:09:45 +00:00
Alex Schroeder
6e1d028671 *** empty log message *** 2003-05-27 22:39:01 +00:00
Alex Schroeder
72152dc36a ($HttpCharset): Default to UTF-8. 2003-05-26 22:12:50 +00:00
Alex Schroeder
001e07897c *** empty log message *** 2003-05-26 22:12:24 +00:00
Alex Schroeder
8513016e8e ($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.
2003-05-26 18:40:36 +00:00
Alex Schroeder
2836ffe5b0 *** empty log message *** 2003-05-26 18:39:52 +00:00
Alex Schroeder
2eda1075ef (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.
2003-05-24 10:48:57 +00:00
Alex Schroeder
db03098410 *** empty log message *** 2003-05-24 10:48:24 +00:00
Alex Schroeder
f1f273e588 ($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.
2003-05-22 22:45:54 +00:00
Alex Schroeder
02f5f4befd *** empty log message *** 2003-05-22 22:45:13 +00:00
Alex Schroeder
8bd469e858 ($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.
2003-05-21 22:46:05 +00:00
Alex Schroeder
2e1e94c937 *** empty log message *** 2003-05-21 22:45:27 +00:00
Alex Schroeder
e417f221b7 (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.
2003-05-21 01:16:25 +00:00
Alex Schroeder
aeb61f7630 *** empty log message *** 2003-05-21 01:15:57 +00:00
Alex Schroeder
f6a8998963 (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.
2003-05-18 14:05:23 +00:00
Alex Schroeder
2a51a33bb4 *** empty log message *** 2003-05-18 14:04:48 +00:00
Alex Schroeder
251ddd3e98 (DoUnlock): Added extra level of parenthesis, thanks to Jason
Diamond <jason@injektilo.org>
2003-05-17 15:18:09 +00:00
Alex Schroeder
04905b7fbf *** empty log message *** 2003-05-17 15:17:39 +00:00
Alex Schroeder
3359eb2bda ($SimpleLinks, $NonEnglish): Removed.
(InitLinkPatterns): Simplified the regexp generating code such
that the regexps used are clearer now,
2003-05-17 15:07:12 +00:00
Alex Schroeder
95e58c78bd *** empty log message *** 2003-05-17 15:06:20 +00:00
Alex Schroeder
72de3a00de (Cookie): Only set attributes if necessary. Report setting of
cookie via $Message.
2003-05-17 14:40:07 +00:00
Alex Schroeder
d34c83b219 *** empty log message *** 2003-05-17 14:39:41 +00:00
Alex Schroeder
bbc7df7bc2 (BrowsePage): Use a flag for PrintWikiToHTML in order to prevent
the creation of new pages due to cache creation for the default
text.
2003-05-17 10:07:09 +00:00
Alex Schroeder
09995965de *** empty log message *** 2003-05-17 10:06:02 +00:00
Alex Schroeder
b8aa4d620b ($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.
2003-05-17 01:50:35 +00:00
Alex Schroeder
dbd99271a3 *** empty log message *** 2003-05-17 01:48:45 +00:00
Alex Schroeder
c200c4e2e9 *** empty log message *** 2003-05-08 20:46:46 +00:00
Alex Schroeder
a3b8cbf729 (BrowsePage): Remove duplicate div class="refer". 2003-05-08 20:46:21 +00:00
Alex Schroeder
067019599d (BrowsePage): Print div class=refer only when there are any. 2003-05-02 08:10:32 +00:00
Alex Schroeder
142d527324 *** empty log message *** 2003-05-02 07:51:03 +00:00
Alex Schroeder
1e8791b313 ($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.
2003-05-02 06:17:09 +00:00
Alex Schroeder
23b23278c0 ($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.
2003-04-27 21:22:52 +00:00
Alex Schroeder
e1ba852109 *** empty log message *** 2003-04-27 21:20:57 +00:00
Alex Schroeder
fd7cfa7aae *** empty log message *** 2003-04-27 14:52:06 +00:00
Alex Schroeder
6a9cc48f20 (InheritParameter): New function.
(GetEditLink): Use it.
($TopLinkBar): New option.
(GetHeader): Use it.
2003-04-27 14:51:48 +00:00
Alex Schroeder
1731555661 (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.
2003-04-27 14:35:29 +00:00
Alex Schroeder
6c4aedd1da *** empty log message *** 2003-04-27 14:33:33 +00:00
Alex Schroeder
f2bb7227ee *** empty log message *** 2003-04-27 13:13:09 +00:00
Alex Schroeder
06837c40ad (RSS): Removed unnecessary CSS class for link within RSS divs. 2003-04-27 13:12:51 +00:00
Alex Schroeder
8f156115fc *** empty log message *** 2003-04-27 12:08:20 +00:00
Alex Schroeder
9304315174 (BrowsePage): Added a div class="content" around the
main part.
2003-04-27 12:07:55 +00:00
Alex Schroeder
c372ec8b98 *** empty log message *** 2003-04-26 17:30:06 +00:00
Alex Schroeder
efeb779f98 (DoConvert): Moved br printing.
(ConvertFile): Moved it here.
2003-04-26 17:29:53 +00:00