lhc/web/wiklou.git
19 years agoexperimental code: userlevels
Antoine Musso [Sun, 24 Oct 2004 22:32:14 +0000 (22:32 +0000)]
experimental code: userlevels

19 years agoUpgrade fixes
Brion Vibber [Sun, 24 Oct 2004 22:28:21 +0000 (22:28 +0000)]
Upgrade fixes

19 years agoInstall fixes for group table
Brion Vibber [Sun, 24 Oct 2004 22:20:52 +0000 (22:20 +0000)]
Install fixes for group table

19 years agoLet Database do the quoting of the 'group' table, so that prefixed tables will work.
Brion Vibber [Sun, 24 Oct 2004 22:02:02 +0000 (22:02 +0000)]
Let Database do the quoting of the 'group' table, so that prefixed tables will work.

19 years agoUse correct names of fields
Brion Vibber [Sun, 24 Oct 2004 21:58:19 +0000 (21:58 +0000)]
Use correct names of fields

19 years agoforgotten rename
Jens Frank [Sun, 24 Oct 2004 21:19:54 +0000 (21:19 +0000)]
forgotten rename

19 years agoAn important file for user management
Antoine Musso [Sun, 24 Oct 2004 21:16:05 +0000 (21:16 +0000)]
An important file for user management

19 years agoXHTML fixes
Antoine Musso [Sun, 24 Oct 2004 20:01:23 +0000 (20:01 +0000)]
XHTML fixes

19 years agoImplementing user levels management. This is only a very basic interface and several...
Antoine Musso [Sun, 24 Oct 2004 19:14:48 +0000 (19:14 +0000)]
Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at bugzilla.wikipedia.org/show_bug.cgi?id=767

19 years agoGlobal array for user levels
Antoine Musso [Sun, 24 Oct 2004 16:58:01 +0000 (16:58 +0000)]
Global array for user levels

19 years agoexperimental IE-compatible RC patrol, still doesn't work for enhanced RC
Tim Starling [Sun, 24 Oct 2004 15:13:28 +0000 (15:13 +0000)]
experimental IE-compatible RC patrol, still doesn't work for enhanced RC

19 years ago1.3 -> 1.4 changes
Tim Starling [Sun, 24 Oct 2004 12:24:31 +0000 (12:24 +0000)]
1.3 -> 1.4 changes

19 years agofixed index name
Tim Starling [Sun, 24 Oct 2004 12:23:12 +0000 (12:23 +0000)]
fixed index name

19 years agoMoved some defines to Defines.php, removed unnecessary line from Language::getUserTog...
Tim Starling [Sun, 24 Oct 2004 12:03:29 +0000 (12:03 +0000)]
Moved some defines to Defines.php, removed unnecessary line from Language::getUserToggle()

19 years agoDon't try to output bogus Last-Modified timestamp if there are no recentchanges table...
Brion Vibber [Sun, 24 Oct 2004 10:23:36 +0000 (10:23 +0000)]
Don't try to output bogus Last-Modified timestamp if there are no recentchanges table entries

19 years agoRenaming columns:
Jens Frank [Sun, 24 Oct 2004 09:51:13 +0000 (09:51 +0000)]
Renaming columns:
ug_gid => ug_group
ug_uid => ug_user
ur_uid => ur_user
as proposed by Mr Vibber.

19 years agoRename fields of user_rights and user_groups table to tablename_columnname schema
Jens Frank [Sun, 24 Oct 2004 09:21:53 +0000 (09:21 +0000)]
Rename fields of user_rights and user_groups table to tablename_columnname schema

19 years agofixed typo
Jens Frank [Sun, 24 Oct 2004 08:31:22 +0000 (08:31 +0000)]
fixed typo

19 years agoAdd $IP to list of globals, since it is undefined otherwise
Jens Frank [Sun, 24 Oct 2004 08:29:34 +0000 (08:29 +0000)]
Add $IP to list of globals, since it is undefined otherwise

19 years agoFixing behaviour with a table prefix
Tim Starling [Sun, 24 Oct 2004 08:04:18 +0000 (08:04 +0000)]
Fixing behaviour with a table prefix

19 years agoReplacing obsolete Database member functions.
Tim Starling [Sun, 24 Oct 2004 07:30:03 +0000 (07:30 +0000)]
Replacing obsolete Database member functions.

19 years agoCorrecting bugs due to double-prefixing table names. Removing obsolete Database membe...
Tim Starling [Sun, 24 Oct 2004 07:10:33 +0000 (07:10 +0000)]
Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php

19 years agoNamespace cleanup: use constants, use $wgMetaNamespace instead of hardcoding 'Wikiped...
Brion Vibber [Sun, 24 Oct 2004 06:40:07 +0000 (06:40 +0000)]
Namespace cleanup: use constants, use $wgMetaNamespace instead of hardcoding 'Wikipedia', add Category

19 years agoStub file for Gujarati, includes numeral conversion table
Brion Vibber [Sun, 24 Oct 2004 06:17:12 +0000 (06:17 +0000)]
Stub file for Gujarati, includes numeral conversion table

19 years agoLanguage-specific number formatting in category page headers (for Hindi etc)
Brion Vibber [Sun, 24 Oct 2004 05:49:54 +0000 (05:49 +0000)]
Language-specific number formatting in category page headers (for Hindi etc)

19 years agospelling
Brion Vibber [Sun, 24 Oct 2004 05:48:54 +0000 (05:48 +0000)]
spelling

19 years agoFixing multiple-inclusion problems
Tim Starling [Sun, 24 Oct 2004 02:13:00 +0000 (02:13 +0000)]
Fixing multiple-inclusion problems

19 years agoChanged inclusion style, require_once('includes/SpecialPage.php') was allowing duplic...
Tim Starling [Sun, 24 Oct 2004 01:56:23 +0000 (01:56 +0000)]
Changed inclusion style, require_once('includes/SpecialPage.php') was allowing duplicate inclusion in command-line utilities

19 years agonote on safe_mode
Erik Moeller [Sat, 23 Oct 2004 23:32:08 +0000 (23:32 +0000)]
note on safe_mode

19 years agoPatch by Grin
Antoine Musso [Sat, 23 Oct 2004 18:09:29 +0000 (18:09 +0000)]
Patch by Grin

19 years agoApplied changes from BUG#748, attachment http://bugzilla.wikipedia.org/attachment...
Jens Frank [Sat, 23 Oct 2004 18:02:40 +0000 (18:02 +0000)]
Applied changes from BUG#748, attachment bugzilla.wikipedia.org/attachment.cgi?id=108

19 years agoupdate namespaces
Antoine Musso [Sat, 23 Oct 2004 17:45:37 +0000 (17:45 +0000)]
update namespaces

19 years agoupdate namespaces
Antoine Musso [Sat, 23 Oct 2004 17:34:25 +0000 (17:34 +0000)]
update namespaces

19 years agoforgot to move the comment
Zheng Zhu [Sat, 23 Oct 2004 13:00:33 +0000 (13:00 +0000)]
forgot to move the comment

19 years agoturck only works as an apache module
Tim Starling [Sat, 23 Oct 2004 10:37:18 +0000 (10:37 +0000)]
turck only works as an apache module

19 years agoUsing wfSuppressWarnings() instead of the error suppression operator, to avoid the...
Tim Starling [Sat, 23 Oct 2004 10:24:13 +0000 (10:24 +0000)]
Using wfSuppressWarnings() instead of the error suppression operator, to avoid the blank page syndrome

19 years agoFixed bug due to non-global scope when included from Setup.php
Tim Starling [Sat, 23 Oct 2004 10:23:05 +0000 (10:23 +0000)]
Fixed bug due to non-global scope when included from Setup.php

19 years agoDebug info
Tim Starling [Sat, 23 Oct 2004 10:22:38 +0000 (10:22 +0000)]
Debug info

19 years agoFixed bug with Turck MMCache wrapper, and made it the default where Turck is installe...
Tim Starling [Sat, 23 Oct 2004 10:21:23 +0000 (10:21 +0000)]
Fixed bug with Turck MMCache wrapper, and made it the default where Turck is installed (except if memcached is specified)

19 years agofixed profiling error
Tim Starling [Sat, 23 Oct 2004 10:20:38 +0000 (10:20 +0000)]
fixed profiling error

19 years agoAdd initial tests for Article::getRevisionText and Article::compressRevision
Brion Vibber [Sat, 23 Oct 2004 09:19:00 +0000 (09:19 +0000)]
Add initial tests for Article::getRevisionText and Article::compressRevision

19 years agoMoved user_newtalk fetch to later in execution, i.e. on demand. This should reduce...
Tim Starling [Sat, 23 Oct 2004 08:26:48 +0000 (08:26 +0000)]
Moved user_newtalk fetch to later in execution, i.e. on demand. This should reduce total query count, and also allows connection errors to work again.

19 years agorm obsolete global
Tim Starling [Sat, 23 Oct 2004 08:24:24 +0000 (08:24 +0000)]
rm obsolete global

19 years agocorrecting for what was probably an odd one-off error
Tim Starling [Sat, 23 Oct 2004 08:23:13 +0000 (08:23 +0000)]
correcting for what was probably an odd one-off error

19 years agomoving wfProfileIn() to the start of the function, adding warning suppression like...
Tim Starling [Sat, 23 Oct 2004 08:21:39 +0000 (08:21 +0000)]
moving wfProfileIn() to the start of the function, adding warning suppression like I did in MessageCache.php

19 years agoKludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards...
Brion Vibber [Sat, 23 Oct 2004 07:37:48 +0000 (07:37 +0000)]
Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards-compatible with PHPTAL 0.7.0's version

19 years agoRemove $wgCurParser kludge
Brion Vibber [Sat, 23 Oct 2004 07:10:37 +0000 (07:10 +0000)]
Remove $wgCurParser kludge

19 years agoalsatian, inheriting from de
Tim Starling [Sat, 23 Oct 2004 01:07:38 +0000 (01:07 +0000)]
alsatian, inheriting from de

19 years agorenaming
Tim Starling [Sat, 23 Oct 2004 00:43:39 +0000 (00:43 +0000)]
renaming

19 years agostub inheriting from de
Tim Starling [Sat, 23 Oct 2004 00:00:57 +0000 (00:00 +0000)]
stub inheriting from de

19 years agoPreliminary support for shared upload directory. This is primarily intended
Erik Moeller [Thu, 21 Oct 2004 05:04:14 +0000 (05:04 +0000)]
Preliminary support for shared upload directory. This is primarily intended
for the Wikimedia Commons. If $wgUseSharedUploads is set, MediaWiki will try
to locate an image file in the shared upload directory if it is not found
locally. Thumbnails for shared images will also be generated in the
shared directory.

Note: I changed
                $text = $this->replaceInternalLinks ( $text );
                $text = $this->replaceExternalLinks( $text );
to
                $text = $this->replaceExternalLinks( $text );
                $text = $this->replaceInternalLinks ( $text );

in Parser.php. Otherwise [[Media:Bla.jpg]] to an absolute URL would be
incorrectly parsed as external links. The header of
replaceExternalLinks says:

        Note: we have to do external links before the internal ones

So the old order was not consistent with the documentation. I did some
tests and nothing seems to be broken, but I have some problems executing
parserTests.php so I couldn't test it systematically.

19 years agoAdd variant conversion to the output of these special pages
Zheng Zhu [Thu, 21 Oct 2004 03:36:19 +0000 (03:36 +0000)]
Add variant conversion to the output of these special pages

19 years agoMoving code that checks for valid link in another variant from Parser.php to Language.php
Zheng Zhu [Thu, 21 Oct 2004 02:47:51 +0000 (02:47 +0000)]
Moving code that checks for valid link in another variant from Parser.php to Language.php

19 years agoals: Elsaessisch -> Alemannisch
Jens Frank [Wed, 20 Oct 2004 20:29:40 +0000 (20:29 +0000)]
als: Elsaessisch -> Alemannisch

19 years agohttp://bugzilla.wikipedia.org/show_bug.cgi?id=748
Jens Frank [Wed, 20 Oct 2004 20:18:26 +0000 (20:18 +0000)]
http://bugzilla.wikipedia.org/show_bug.cgi?id=748
Nynorsk language file

19 years agoReorganization of SearchEngine for legibility
Brion Vibber [Wed, 20 Oct 2004 09:56:34 +0000 (09:56 +0000)]
Reorganization of SearchEngine for legibility
* Removed 'fuzzy title search', it's not been maintained and generally produces unexpected and unwanted results
* Separated search guts (in SearchEngine) from display/control (in SpecialSearch)
* Extracted MySQL3 and MySQL4 variants to subclasses
* Added PHPUnit tests for MySQL3 and MySQL4 search engines, which try to use temporary tables to fiddle in (if configured)
* comments n stuff

19 years agoForgot to changed these...
Zheng Zhu [Wed, 20 Oct 2004 02:18:42 +0000 (02:18 +0000)]
Forgot to changed these...

19 years agospecial conversion for displaying title
Zheng Zhu [Tue, 19 Oct 2004 18:03:58 +0000 (18:03 +0000)]
special conversion for displaying title

19 years agoAdded option wgDisableLangConversion to disable langauge variant conversion, mainly...
Zheng Zhu [Tue, 19 Oct 2004 18:02:44 +0000 (18:02 +0000)]
Added option wgDisableLangConversion to disable langauge variant conversion, mainly for debugging and testing purpose.

19 years agofix NS_PROJECT*, and formatting
Zheng Zhu [Tue, 19 Oct 2004 17:52:23 +0000 (17:52 +0000)]
fix NS_PROJECT*, and formatting

19 years agoremoved double conversion of linked text.
Zheng Zhu [Tue, 19 Oct 2004 17:44:00 +0000 (17:44 +0000)]
removed double conversion of linked text.

19 years agoAdded code to generate a wordlist from the various sources.
Zheng Zhu [Tue, 19 Oct 2004 16:54:07 +0000 (16:54 +0000)]
Added code to generate a wordlist from the various sources.

19 years agoAdd more globals tests
Brion Vibber [Tue, 19 Oct 2004 08:38:08 +0000 (08:38 +0000)]
Add more globals tests

19 years ago(bug 737) only use the post-parse link placeholders within replaceInternalLinks().
Brion Vibber [Tue, 19 Oct 2004 07:30:56 +0000 (07:30 +0000)]
(bug 737) only use the post-parse link placeholders within replaceInternalLinks().
The recent move of the replacement step from OutputPage into Parser completely
broke a crapload of special pages; this makes the links show again.

19 years ago* Drop a couple instances of wfTimestamp2Unix & reverse for wfTimestamp()
Brion Vibber [Tue, 19 Oct 2004 07:12:15 +0000 (07:12 +0000)]
* Drop a couple instances of wfTimestamp2Unix & reverse for wfTimestamp()
* Make wfTimestampNow() a wrapper on wfTimestamp()
* Add some tests and docstrings

19 years agoDon't forget to urlencode the data in wfArrayToCGI()
Brion Vibber [Tue, 19 Oct 2004 05:46:14 +0000 (05:46 +0000)]
Don't forget to urlencode the data in wfArrayToCGI()

19 years agofixes Bug 718: Bad charset in cached pages.
Zheng Zhu [Mon, 18 Oct 2004 18:13:39 +0000 (18:13 +0000)]
fixes Bug 718: Bad charset in cached pages.

19 years ago* Start on some unit tests for GlobalFunctions
Brion Vibber [Mon, 18 Oct 2004 09:53:47 +0000 (09:53 +0000)]
* Start on some unit tests for GlobalFunctions
* Add makefile & readme for the lazy

19 years ago* add a require dependency
Brion Vibber [Mon, 18 Oct 2004 09:49:03 +0000 (09:49 +0000)]
* add a require dependency
* allow do_html_entity_decode() to be called with different charsets during the script lifetime

19 years agoClean up options code a bit to make use of commandLine.inc's parsing
Brion Vibber [Mon, 18 Oct 2004 08:11:06 +0000 (08:11 +0000)]
Clean up options code a bit to make use of commandLine.inc's parsing

19 years agoSupport setting values for long options like --color=yes
Brion Vibber [Mon, 18 Oct 2004 08:10:22 +0000 (08:10 +0000)]
Support setting values for long options like --color=yes

19 years ago* Add support for prepared statements. This should be safer than dumping variables...
Brion Vibber [Mon, 18 Oct 2004 07:25:56 +0000 (07:25 +0000)]
* Add support for prepared statements. This should be safer than dumping variables into raw SQL and more flexible than the array-based wrapper functions
* Add some quick PHPUnit tests for Database::fillPrepared()

19 years agotoc should be translated using content language
Zheng Zhu [Mon, 18 Oct 2004 00:54:53 +0000 (00:54 +0000)]
toc should be translated using content language

19 years agosecurity_fix
River Tarnell [Mon, 18 Oct 2004 00:15:30 +0000 (00:15 +0000)]
security_fix

19 years ago1.2 to 1.3 updater script from wikipedia. Not exactly useful still. :D
Brion Vibber [Sun, 17 Oct 2004 21:59:36 +0000 (21:59 +0000)]
1.2 to 1.3 updater script from wikipedia. Not exactly useful still. :D

19 years agoInteractive scripts are a pain in the butt, and have bad interactions
Brion Vibber [Sun, 17 Oct 2004 21:38:47 +0000 (21:38 +0000)]
Interactive scripts are a pain in the butt, and have bad interactions
with output buffering. If no option is given on the command line, just
print a help message instead of the ill-fated prompt.

Also now accepts --update and --rebuild in standard GNU long option style.

19 years agoBug 732: Typo in config/index.php
Brion Vibber [Sun, 17 Oct 2004 08:32:27 +0000 (08:32 +0000)]
Bug 732: Typo in config/index.php

19 years agoAdd test for links with double-escaped hex codes (raw hex codes in titles are now...
Brion Vibber [Sun, 17 Oct 2004 07:33:03 +0000 (07:33 +0000)]
Add test for links with double-escaped hex codes (raw hex codes in titles are now illegal as they don't survive round-trip conversion and thus are inaccessible)

19 years agoang
Tim Starling [Sun, 17 Oct 2004 01:46:18 +0000 (01:46 +0000)]
ang

19 years agoGothic
Tim Starling [Sun, 17 Oct 2004 01:41:12 +0000 (01:41 +0000)]
Gothic

19 years agoReject titles with %XX hex codes (since these have special meaning in URL links and...
Brion Vibber [Sat, 16 Oct 2004 07:15:18 +0000 (07:15 +0000)]
Reject titles with %XX hex codes (since these have special meaning in URL links and are interpreted for this purpose, breaking things if they're used literally)

19 years agoWork around weird vanishing form data problem (http://bugs.php.net/bug.php?id=22427 )
Brion Vibber [Sat, 16 Oct 2004 02:36:51 +0000 (02:36 +0000)]
Work around weird vanishing form data problem (bugs.php.net/bug.php?id=22427 )

19 years ago+ "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" to the browser black list
Emmanuel Engelhart [Fri, 15 Oct 2004 22:15:11 +0000 (22:15 +0000)]
+ "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" to the browser black list
array

19 years agoAdd tests for links inside section headings and
Wil Mahan [Fri, 15 Oct 2004 17:50:08 +0000 (17:50 +0000)]
Add tests for links inside section headings and
<nowiki> inside links, and explicitly set the title
for some tests now that Skin.php used by the parser
has been corrected to longer use the $wgTitle global.

19 years agoNow it is no longer necessary to create an OutputPage
Wil Mahan [Fri, 15 Oct 2004 17:46:42 +0000 (17:46 +0000)]
Now it is no longer necessary to create an OutputPage
object, because Parser replaces link placeholders.
This also means that tidy happens automatically
on the parser output if $wgUseTidy = true.

19 years agoMove replaceLinkHolders() from OutputPage to Parser, because
Wil Mahan [Fri, 15 Oct 2004 17:39:10 +0000 (17:39 +0000)]
Move replaceLinkHolders() from OutputPage to Parser, because
it needs to happen before unstripNoWiki() and before tidy.
This also makes the parser more self-contained, so there is
no need to create an OutputPage object for the parser
tester.

Call unstripNoWiki() before creating a Title object
for an internal link; this fixes <nowiki> inside of
a link target. Need to make sure this does not degrade
performance.

19 years agoChange editSectionLink() and editSectionScript() to take a
Wil Mahan [Fri, 15 Oct 2004 17:33:51 +0000 (17:33 +0000)]
Change editSectionLink() and editSectionScript() to take a
title object instead of using a global; we want to keep
$wgTitle and $wgUser out of the parser

19 years agodisable client cache for 'you have new messages'
Domas Mituzas [Fri, 15 Oct 2004 09:57:23 +0000 (09:57 +0000)]
disable client cache for 'you have new messages'

19 years agodon't double escape
River Tarnell [Thu, 14 Oct 2004 09:26:51 +0000 (09:26 +0000)]
don't double escape

19 years agorestore accidentally broken functionality
River Tarnell [Thu, 14 Oct 2004 09:18:36 +0000 (09:18 +0000)]
restore accidentally broken functionality

19 years agofix xss attack
River Tarnell [Thu, 14 Oct 2004 08:58:47 +0000 (08:58 +0000)]
fix xss attack

19 years agoValidate input
Brion Vibber [Thu, 14 Oct 2004 08:38:06 +0000 (08:38 +0000)]
Validate input

19 years agourl-encode the url
Brion Vibber [Thu, 14 Oct 2004 07:49:22 +0000 (07:49 +0000)]
url-encode the url

19 years agoxhtml fix
Brion Vibber [Thu, 14 Oct 2004 07:33:22 +0000 (07:33 +0000)]
xhtml fix

19 years agoXHTML fix
Brion Vibber [Thu, 14 Oct 2004 07:32:20 +0000 (07:32 +0000)]
XHTML fix

19 years agofix xss attack if wgRawHtml is enabled
River Tarnell [Thu, 14 Oct 2004 07:29:38 +0000 (07:29 +0000)]
fix xss attack if wgRawHtml is enabled

19 years agoXHTML fix, handle bad target more gracefully
Brion Vibber [Thu, 14 Oct 2004 07:29:12 +0000 (07:29 +0000)]
XHTML fix, handle bad target more gracefully

19 years agoescape html output
Brion Vibber [Thu, 14 Oct 2004 06:52:42 +0000 (06:52 +0000)]
escape html output

19 years agoNever used; just a TODO note
Brion Vibber [Thu, 14 Oct 2004 06:38:12 +0000 (06:38 +0000)]
Never used; just a TODO note

19 years agoEscape HTMl output
Brion Vibber [Thu, 14 Oct 2004 06:21:33 +0000 (06:21 +0000)]
Escape HTMl output