Alex Schroeder
37210f49d2
(NamespacesInitVariables): URL encode the
...
current namespace for $ScriptName, $FullUrl and $StaticUrl.
2011-06-23 00:31:59 +00:00
Alex Schroeder
4f538ac690
(DoNamespacesList): Fix the links to
...
namespaces.
2010-05-07 15:18:57 +00:00
Alex Schroeder
ee4e5ed463
(NewNamespaceGetRcLines): Fix bug that
...
prevented the oldrc.log file from being read if rc.log was missing
or empty.
2009-07-03 13:49:47 +00:00
Alex Schroeder
c275cd929a
(DoNamespacesList): Add trailing newline to raw output.
2009-06-07 18:11:17 +00:00
Alex Schroeder
94c69fefc1
(NamespacesInitVariables): Don't list Main and Self.
...
(DoNamespacesList): Provide a raw alternative.
2009-06-07 18:05:46 +00:00
Alex Schroeder
fb95c6adf9
Added documentation explaining why full=1 is not supported for the
...
main RSS feed.
2009-06-07 17:59:07 +00:00
Alex Schroeder
4f984eba5c
(%Namespaces): New option to differentiate
...
between intersites and namespaces.
(NamespacesInitVariables): Set it instead of a local variable.
(DoNamespacesList): Use it.
(NamespacesMenu): Add it to a menu.
2009-06-07 17:03:06 +00:00
Alex Schroeder
80e2f203d2
(@NamespaceParameters): New.
...
(NamespacesInitVariables): Use new option.
(NamespacesInitVariables): Use new function.
2009-04-06 00:26:46 +00:00
Alex Schroeder
b5dd3e7c9c
(NamespacesInitVariables): Match the code
...
changes in GetId.
2009-04-05 23:36:20 +00:00
Alex Schroeder
c3a84e9266
(NewNamespaceGetRcLines): Strip rollbacks
...
for every namespace separately.
2009-03-08 23:44:54 +00:00
Alex Schroeder
7634327ab4
(NewNamespaceScriptUrl): Try and handle
...
the case of namespaces containing non-ASCII characters. This
should be legal, but lead to problems when generating links to
pages in such namespaces. The URL encoding of the non-ASCII
characters prevented the $InterSitePattern from matching. Instead
of using this regular expression, we now try and guess at the
string using URL constraints ([^/?&;=]+), URL decoding it, and
then checking the $InterSitePattern.
2008-12-02 23:45:41 +00:00
Alex Schroeder
fc478a5b7c
(NewNamespaceGetAuthorLink): New hook into
...
GetAuthorLink to make sure the author link is never considered
invalid using NewNamespaceValidId.
(NamespaceValidId): Deleted.
(NewNamespaceValidId): Fully featured replacement only used by
GetAuthorLink. $NamespaceSlashing remains unused.
2008-09-22 01:31:38 +00:00
Alex Schroeder
cc37d33cfb
(NewNamespaceDoRc): No longer needed.
...
(NewNamespaceGetRcLines): New.
(NamespaceRcLines): No longer needed.
2008-09-19 23:55:19 +00:00
Alex Schroeder
562124270d
(NewNamespaceScriptUrl): Replaces
...
NewNamespaceScriptLink. This change depends on the related change
to ScriptLink in wiki.pl and fixes the RSS links.
2008-03-07 09:43:26 +00:00
Alex Schroeder
1963543f94
(NamespacesInitVariables): Always set
...
$NamespaceRoot because it will be used below when redirecting. Not
setting it will cause redirection to the Main namespace to produce
a wrong edit link to the source page.
2007-11-17 23:59:58 +00:00
Alex Schroeder
7ff7db331d
(NamespaceRcLines): Use StripRollbacks.
2007-11-13 20:28:16 +00:00
Alex Schroeder
d103e4d013
(NewNamespaceBrowsePage): Fix test from
...
$WikiLinks to $FreeLinks.
2007-11-07 17:02:07 +00:00
Alex Schroeder
f8494ce94d
Added some POD documentation.
...
(NewNamespaceScriptLink): Added edit backlink for interlink
redirection.
(NewNamespaceBrowsePage): Replaces BrowsePage; adds redirection
for interlinks.
2007-09-25 15:32:30 +00:00
Alex Schroeder
765129a490
Added some POD documentation.
...
(NewNamespaceScriptLink): Added edit backlink for interlink
redirection.
(NewNamespaceBrowsePage): Replaces BrowsePage; adds redirection
for interlinks.
2007-09-24 08:29:31 +00:00
Alex Schroeder
8aa29524d0
Update copyright year.
2007-06-02 19:19:24 +00:00
Alex Schroeder
a337b59f6b
(NewNamespaceScriptLink): Make the rule
...
that hacks the namespace prefix more generic, and adapt it to
NewNamespaceUrlEncode which already removes %2f from the URL.
2007-05-30 08:05:09 +00:00
Alex Schroeder
7c5ed5eb8a
($NamespaceSlashing): New variable.
...
(NewNamespaceDoRc): Set it.
(NewNamespaceUrlEncode): Wrapper around UrlEncode() that uses it.
2007-04-02 17:05:39 +00:00
Alex Schroeder
a8c7dd0a97
Get rid of $NamespacesInit.
...
(NamespacesInitVariables): Get rid of various Init() calls because
they are all handled in ReInit(). Reset @IndexList so that
AllPagesList will actually do something.
2006-12-22 15:27:17 +00:00
Alex Schroeder
f425952150
(NamespaceRcLines): Bugfixing.
2006-08-24 18:32:53 +00:00
Alex Schroeder
42bc257c6a
(NamespaceRcLines): Implement rollback
...
skipping, too.
2006-08-24 18:23:36 +00:00
Alex Schroeder
3c9b82250e
(NamespacesInitVariables): Set $StaticUrl.
2006-04-20 19:59:27 +00:00
Alex Schroeder
1d9bba2271
(NamespacesInitVariables): Set $StaticDir,
...
too.
2006-04-20 19:22:50 +00:00
Alex Schroeder
62b3ed47d5
(NamespacesInitVariables): Check namespace
...
parameter for validity and complain if it is not valid. We can't
do that with path_info, but this is good enough, because it allows
us to verify namespaces typed into forms (eg. from
Oddwiki:Startup).
2006-03-30 22:38:30 +00:00
Alex Schroeder
676b8e431e
(NewNamespaceScriptLink): Do not mangle
...
actions matching $FullUrlPattern, as that breaks localnames.pl.
Since $action is already URL-encoded, however, we do the same test
as in ScriptLink: $UrlProtocols followed by the URL-encoded colon:
%3a.
2005-11-07 00:46:15 +00:00
Alex Schroeder
409a9c8018
(NewNamespaceScriptLink): Do not mangle
...
actions matching $FullUrlPattern, as that breaks localnames.pl.
2005-10-28 14:46:30 +00:00
Alex Schroeder
9a642496cf
Call NamespacesInitVariables as early as possible.
2005-10-28 08:06:11 +00:00
Alex Schroeder
cc0fb405cd
(NamespacesInitVariables): Rewrite after
...
the changes to the main script regarding initialization. Always
force a reinit (in a mod_perl context we cannot reuse the info).
2005-10-27 21:58:49 +00:00
Alex Schroeder
f2aef3617a
(NamespaceRcLines): Fix handling of
...
cluster and other attributes.
2005-06-29 15:58:40 +00:00
Alex Schroeder
633aa41db0
(NamespaceRcLines): Remove trailing
...
newline when reading rc.log file. This removes an incompatibility
between the module and page clusters (otherwise all pages end up
in the "\n" cluster).
2005-06-02 07:43:02 +00:00
Alex Schroeder
d978f2eaaa
(NewNamespaceDoRc): Add parameter local to restrict main RC to the
...
local namespace only. Fixed bug in condition that led to the
printing of an HTML fragment when requesting RSS.
2005-04-26 07:44:30 +00:00
Alex Schroeder
07804daeaf
(NewNamespaceDoRc): Added header back.
...
Correcly sort lines.
(NamespaceRcLines): Split into all fields and add namespace to
username, too.
(NamespaceValidId): New dummy to disable the test.
2005-04-25 23:02:08 +00:00
Alex Schroeder
530e40406e
Removed warnings.
2005-04-25 22:21:27 +00:00
Alex Schroeder
504991b1b7
(NewNamespaceDoRc): Expanded a lot, now
...
parsing all the log files recursively instead of doing the RSS
thing.
(NamespaceBrowseRc, NamespaceInternalRc): Deleted.
(NamespaceRcLines): New. Splices namespace into the rc lines.
(NewNamespaceScriptLink): New. Splices namespace out of the link
into the script name.
2005-04-25 21:14:52 +00:00
Alex Schroeder
eb29d055c7
(NamespacesInitVariables): Set
...
$InterWikiMoniker.
2005-03-24 22:49:30 +00:00
Alex Schroeder
3c968bd27e
Updated copyright years.
2005-01-06 11:35:04 +00:00
Alex Schroeder
8f0f74972c
Use @MyInitVariables.
2005-01-04 09:40:01 +00:00
Alex Schroeder
11ffdcc36f
(NewNamespacesInitVariables): Make "Self" forbidden, too.
2004-12-21 16:32:33 +00:00
Alex Schroeder
236eede08a
($NamespacesSelf): New variable.
...
(NewNamespacesInitVariables): Set it.
2004-12-21 16:19:59 +00:00
Alex Schroeder
e17332f17a
(NamespaceInternalRc): "No items found in foo" removed.
2004-12-20 12:43:28 +00:00
Alex Schroeder
d82a53afa3
(NamespaceInternalRc): "foo returned no data" removed.
2004-12-20 12:40:48 +00:00
Alex Schroeder
3ad8f6c6c1
(NewNamespacesInitVariables): Set
...
$NamespaceCurrent; don't change $Action{rc}.
(NewNamespacesInitVariables): Don't print header and footer.
(NewNamespaceDoRc): New replacement for DoRc.
2004-12-20 05:43:37 +00:00
Alex Schroeder
da51f07e2d
(NamespaceBrowseRc, NamespaceInternalRc, NewNamespacesInitVariables):
...
Support for recent changes for all namespaces.
2004-12-20 04:35:06 +00:00
Alex Schroeder
a7ce0b6a1d
(NewNamespacesInitVariables): Add entries
...
to %InterSite even if we are not in a subwiki right now.
2004-04-06 22:18:41 +00:00
Alex Schroeder
19ecbf6376
Clean up handling of "Main" so that you cannot create such a
...
namespace.
2004-04-05 18:02:00 +00:00
Alex Schroeder
851e105de7
First working implementation.
2004-04-05 17:54:30 +00:00