lhc/web/wiklou.git
19 years agooops, register_globals security flaw
Domas Mituzas [Mon, 6 Sep 2004 06:58:53 +0000 (06:58 +0000)]
oops, register_globals security flaw

19 years agoallow empty server
Domas Mituzas [Mon, 6 Sep 2004 06:57:32 +0000 (06:57 +0000)]
allow empty server

19 years agomove weekdays and month names to $wgAllmessagesZh_tw array
Arne Heizmann [Mon, 6 Sep 2004 06:00:28 +0000 (06:00 +0000)]
move weekdays and month names to $wgAllmessagesZh_tw array

19 years agoCopy updated version from stable branch.
Brion Vibber [Mon, 6 Sep 2004 05:48:41 +0000 (05:48 +0000)]
Copy updated version from stable branch.

19 years agoQuick fix for canonical redirects when the URL is case-converted.
Brion Vibber [Mon, 6 Sep 2004 03:17:21 +0000 (03:17 +0000)]
Quick fix for canonical redirects when the URL is case-converted.
Since this is now done in WebRequest, $title is already converted so
check $_GET directly.

The canonical redirect still does not handle the case of an
index.php?title=Foo URL where $wgArticlePath is set for pretty
URLs.

19 years agoMove the check for legacy/UTF character conversion on incoming URLs from
Brion Vibber [Mon, 6 Sep 2004 03:01:33 +0000 (03:01 +0000)]
Move the check for legacy/UTF character conversion on incoming URLs from
Title::newFromURL into WebRequest itself. Should now work on all get params,
so essentially the full URL will be converted.

(The check is not done if the referer matches the canonical server, as before.)

Fixes problem with latin-1 typed URLs introduced by the stricter UTF-8
validation checks running before the conversion check.

One minor glitch; the canonical URL redirection no longer picks up on a
charset conversion. However it's broken anyway and doesn't pick up eg
non-canonical URLs using ?title= instead of / or other such things. Needs
to be improved...

19 years agos/ :/:/
Arne Heizmann [Mon, 6 Sep 2004 02:40:43 +0000 (02:40 +0000)]
s/ :/:/

19 years agoUndo total breakage from incorrect string quoting conversion.
Brion Vibber [Sun, 5 Sep 2004 07:56:05 +0000 (07:56 +0000)]
Undo total breakage from incorrect string quoting conversion.

19 years agoStub language file for zh-tw, changing Setup.php and Language.php to allow for langua...
Tim Starling [Sun, 5 Sep 2004 06:17:37 +0000 (06:17 +0000)]
Stub language file for zh-tw, changing Setup.php and Language.php to allow for languages with hyphens in their code

19 years ago*** empty log message ***
Antoine Musso [Sun, 5 Sep 2004 03:43:34 +0000 (03:43 +0000)]
*** empty log message ***

19 years agosome more files I forgot from /stylesheets/
Antoine Musso [Sun, 5 Sep 2004 03:37:30 +0000 (03:37 +0000)]
some more files I forgot from /stylesheets/

19 years agofiles moved from /stylesheets/ (wich is now obsolete)
Antoine Musso [Sun, 5 Sep 2004 03:33:26 +0000 (03:33 +0000)]
files moved from /stylesheets/ (wich is now obsolete)

19 years agoUse the new skin tree hierarchy
Antoine Musso [Sun, 5 Sep 2004 03:25:58 +0000 (03:25 +0000)]
Use the new skin tree hierarchy

19 years agoNew stylepath : ./skins/ instead of ./style/ or ./stylesheet/
Antoine Musso [Sun, 5 Sep 2004 02:21:52 +0000 (02:21 +0000)]
New stylepath : ./skins/  instead of  ./style/ or ./stylesheet/
Committing before I forget about it. Installer probably need it's default choice to be updated as well.

19 years agoforgot to remove this
Arne Heizmann [Sat, 4 Sep 2004 14:25:47 +0000 (14:25 +0000)]
forgot to remove this

19 years agoexpand comment for isNewbie(), and spelling corrections
Arne Heizmann [Sat, 4 Sep 2004 14:21:45 +0000 (14:21 +0000)]
expand comment for isNewbie(), and spelling corrections

19 years agoPhpdoc comments
Antoine Musso [Sat, 4 Sep 2004 13:06:25 +0000 (13:06 +0000)]
Phpdoc comments

19 years agoUse default skin
Tim Starling [Sat, 4 Sep 2004 09:48:12 +0000 (09:48 +0000)]
Use default skin

19 years agoSome more phpdoc bits
Brion Vibber [Sat, 4 Sep 2004 09:35:01 +0000 (09:35 +0000)]
Some more phpdoc bits

19 years agotypo
Brion Vibber [Sat, 4 Sep 2004 09:09:17 +0000 (09:09 +0000)]
typo

19 years agophpdoc comments
Brion Vibber [Sat, 4 Sep 2004 09:08:22 +0000 (09:08 +0000)]
phpdoc comments

19 years agoMore command-line options so I can just hit 'up, enter' instead of the tedious prompt. :)
Brion Vibber [Sat, 4 Sep 2004 08:54:59 +0000 (08:54 +0000)]
More command-line options so I can just hit 'up, enter' instead of the tedious prompt. :)

19 years agophpdoc tweaking
Brion Vibber [Sat, 4 Sep 2004 08:34:51 +0000 (08:34 +0000)]
phpdoc tweaking

19 years agoLink the FAQ
Brion Vibber [Sat, 4 Sep 2004 06:25:23 +0000 (06:25 +0000)]
Link the FAQ

19 years agodummy FAQ
Antoine Musso [Sat, 4 Sep 2004 04:27:53 +0000 (04:27 +0000)]
dummy FAQ

19 years agoMediaWiki :-)
Arne Heizmann [Sat, 4 Sep 2004 02:20:34 +0000 (02:20 +0000)]
MediaWiki :-)

19 years agoRemove hard-coded paths from documentation generation script, and don't allow running...
Brion Vibber [Sat, 4 Sep 2004 01:58:17 +0000 (01:58 +0000)]
Remove hard-coded paths from documentation generation script, and don't allow running except from CLI.
Added --all option to skip the prompt so this can be run as part of an automated release build process.
Place the generated files into docs/html.

19 years agoAdd some documentation comments
Brion Vibber [Sat, 4 Sep 2004 00:12:08 +0000 (00:12 +0000)]
Add some documentation comments

19 years agochange all occurrences of "Mediawiki" to "MediaWiki".
Arne Heizmann [Sat, 4 Sep 2004 00:05:30 +0000 (00:05 +0000)]
change all occurrences of "Mediawiki" to "MediaWiki".

19 years agosome comments.
Antoine Musso [Sat, 4 Sep 2004 00:02:45 +0000 (00:02 +0000)]
some comments.

19 years agosome comments
Antoine Musso [Fri, 3 Sep 2004 23:53:56 +0000 (23:53 +0000)]
some comments

19 years agosimple script to generate phpdocumentor documentation and troubleshoot its generation
Antoine Musso [Fri, 3 Sep 2004 23:07:58 +0000 (23:07 +0000)]
simple script to generate phpdocumentor documentation and troubleshoot its generation

19 years agoSplit files and classes in different packages for phpdocumentor. I probably changed...
Antoine Musso [Fri, 3 Sep 2004 23:00:01 +0000 (23:00 +0000)]
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema

19 years agoChange the way comment are generated so they are compatible with phpdocumentor. Chang...
Antoine Musso [Fri, 3 Sep 2004 22:52:28 +0000 (22:52 +0000)]
Change the way comment are generated so they are compatible with phpdocumentor. Changes already existing files as well.

19 years agoPhpdocumentor comments format.
Antoine Musso [Fri, 3 Sep 2004 22:33:01 +0000 (22:33 +0000)]
Phpdocumentor comments format.
Devs: please update your AdminSettings.php

19 years agochange all occurrences of "fromwikipedia" to "tagline".
Arne Heizmann [Fri, 3 Sep 2004 21:29:06 +0000 (21:29 +0000)]
change all occurrences of "fromwikipedia" to "tagline".
change all occurrences of "aboutwikipedia" to "aboutsite".

19 years agoremove trailing white space
Arne Heizmann [Fri, 3 Sep 2004 21:22:20 +0000 (21:22 +0000)]
remove trailing white space

19 years agoSuppress unset array index notice with quoted search terms
Brion Vibber [Fri, 3 Sep 2004 21:21:19 +0000 (21:21 +0000)]
Suppress unset array index notice with quoted search terms

19 years agoSkins classes under their own phpdocumentor subpackage: "Skins"
Antoine Musso [Fri, 3 Sep 2004 21:02:18 +0000 (21:02 +0000)]
Skins classes under their own phpdocumentor subpackage: "Skins"

19 years agogrammar fix
Arne Heizmann [Fri, 3 Sep 2004 20:54:26 +0000 (20:54 +0000)]
grammar fix

19 years agoPhpdoc comments and place holder. Part of the subpackage "maintenance", archives...
Antoine Musso [Fri, 3 Sep 2004 20:33:01 +0000 (20:33 +0000)]
Phpdoc comments and place holder. Part of the subpackage "maintenance", archives in subpackage "maintenanceArchive"

19 years agoadd Ashar to credits
Erik Moeller [Fri, 3 Sep 2004 19:48:38 +0000 (19:48 +0000)]
add Ashar to credits

19 years agoComments. No more alpha version
Antoine Musso [Fri, 3 Sep 2004 18:52:58 +0000 (18:52 +0000)]
Comments. No more alpha version

19 years agoRemoving obsolete files, already removed from 1.3 branch.
Brion Vibber [Fri, 3 Sep 2004 17:36:21 +0000 (17:36 +0000)]
Removing obsolete files, already removed from 1.3 branch.

19 years agocomment that it's deprecated
Antoine Musso [Fri, 3 Sep 2004 17:22:43 +0000 (17:22 +0000)]
comment that it's deprecated

19 years agoMore comments !
Antoine Musso [Fri, 3 Sep 2004 17:13:55 +0000 (17:13 +0000)]
More comments !

19 years agophpdocumentor comments placeholders
Antoine Musso [Fri, 3 Sep 2004 16:51:45 +0000 (16:51 +0000)]
phpdocumentor comments placeholders

19 years agoComments for phpdocumentor + comments placeholder.
Antoine Musso [Fri, 3 Sep 2004 16:36:46 +0000 (16:36 +0000)]
Comments for phpdocumentor + comments placeholder.

19 years agocomments and comments placeholders
Antoine Musso [Fri, 3 Sep 2004 15:48:02 +0000 (15:48 +0000)]
comments and comments placeholders

19 years agoSome comments
Antoine Musso [Fri, 3 Sep 2004 15:23:37 +0000 (15:23 +0000)]
Some comments

19 years agoFix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=270
Antoine Musso [Fri, 3 Sep 2004 15:10:05 +0000 (15:10 +0000)]
Fix bug bugzilla.wikipedia.org/show_bug.cgi?id=270
PHPTal skins would not let an user watch a non existent page.

19 years agoFix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=365
Antoine Musso [Fri, 3 Sep 2004 14:47:27 +0000 (14:47 +0000)]
Fix bug bugzilla.wikipedia.org/show_bug.cgi?id=365
Typo

19 years agochange double->single quotes for string literal in sql query
Domas Mituzas [Fri, 3 Sep 2004 12:13:53 +0000 (12:13 +0000)]
change double->single quotes for string literal in sql query

19 years agoworking schema for working pg layer. hooray! :)
Domas Mituzas [Fri, 3 Sep 2004 11:53:46 +0000 (11:53 +0000)]
working schema for working pg layer. hooray! :)
$wgPutIPinRC=true; must be set

19 years agowfTimestampNow()->Database::timestamp()
Domas Mituzas [Fri, 3 Sep 2004 11:28:35 +0000 (11:28 +0000)]
wfTimestampNow()->Database::timestamp()

19 years agoNormalize Unicode in uploaded filenames. In particular this is a fix for a problem...
Brion Vibber [Fri, 3 Sep 2004 07:12:46 +0000 (07:12 +0000)]
Normalize Unicode in uploaded filenames. In particular this is a fix for a problem with non-ascii filenames uploaded with Safari, which encodes the file with HTML character references *with combining characters decomposed*.
* Fix for http://bugzilla.wikipedia.org/show_bug.cgi?id=215

19 years agoNormalize output for Special:Export.
Brion Vibber [Fri, 3 Sep 2004 06:49:17 +0000 (06:49 +0000)]
Normalize output for Special:Export.

19 years agoCorrection to the \r stripping
Brion Vibber [Fri, 3 Sep 2004 06:44:57 +0000 (06:44 +0000)]
Correction to the \r stripping

19 years agoParameters in wrong order, used wrong where conditions
Brion Vibber [Fri, 3 Sep 2004 06:28:59 +0000 (06:28 +0000)]
Parameters in wrong order, used wrong where conditions

19 years agotypo
Brion Vibber [Fri, 3 Sep 2004 06:19:16 +0000 (06:19 +0000)]
typo

19 years agoStart cracking down on illegal titles: in UTF-8 mode reject titles which have had...
Brion Vibber [Fri, 3 Sep 2004 06:12:57 +0000 (06:12 +0000)]
Start cracking down on illegal titles: in UTF-8 mode reject titles which have had the 'replacement character' inserted, representing illegal UTF-8 sequences or non-legal Unicode characters.
Moved the PATH_INFO check from index.php into WebRequest; it now just shoves the param into $_REQUEST['title'].

19 years agoAdd UtfNormal::cleanUp() function: strips XML-unsafe characters and illegal UTF-8...
Brion Vibber [Fri, 3 Sep 2004 05:39:30 +0000 (05:39 +0000)]
Add UtfNormal::cleanUp() function: strips XML-unsafe characters and illegal UTF-8 sequences, then normalizes to form C.

19 years agoSome documentation. Let's talk about it in wikitech-l.
Antoine Musso [Fri, 3 Sep 2004 01:05:32 +0000 (01:05 +0000)]
Some documentation. Let's talk about it in wikitech-l.

19 years agosome documentation
Antoine Musso [Fri, 3 Sep 2004 00:20:26 +0000 (00:20 +0000)]
some documentation

19 years agoDon't bother writing out the MediaWiki:All_messages page. It takes a billion years...
Brion Vibber [Thu, 2 Sep 2004 23:35:13 +0000 (23:35 +0000)]
Don't bother writing out the MediaWiki:All_messages page. It takes a billion years to render and is superceded by the dynamic Special:Allmessages.

19 years agoChanging comments layout preparing for generated documentation with Phpdocumentor
Antoine Musso [Thu, 2 Sep 2004 23:28:24 +0000 (23:28 +0000)]
Changing comments layout preparing for generated documentation with Phpdocumentor

19 years agoOne more unicode normalization fix: don't die horribly on arrays, and get the PATH_IN...
Brion Vibber [Thu, 2 Sep 2004 08:01:13 +0000 (08:01 +0000)]
One more unicode normalization fix: don't die horribly on arrays, and get the PATH_INFO title too.

19 years agoNormalize Unicode input to normalization form C. Most of the time input
Brion Vibber [Thu, 2 Sep 2004 07:50:04 +0000 (07:50 +0000)]
Normalize Unicode input to normalization form C. Most of the time input
is already in this form and it shouldn't take very long to verify it.
There is still optimization to be done though.

Partial fix for http://bugzilla.wikipedia.org/show_bug.cgi?id=240

Will also need to verify correct UTF-8 sequences and strip characters
that are illegal in XML.

Some input may not be going through this verification yet (eg the uploaded filenames)

19 years agoSplit the data arrays for form KC, KD to a separate include file and load it on demand.
Brion Vibber [Thu, 2 Sep 2004 07:39:06 +0000 (07:39 +0000)]
Split the data arrays for form KC, KD to a separate include file and load it on demand.
These are less likely to be used, so save the memory and parse time...

19 years agoBUG#26 Set setSquidMaxage to 0 if the user has new messages. Don't cache page.
Jens Frank [Thu, 2 Sep 2004 05:59:33 +0000 (05:59 +0000)]
BUG#26 Set setSquidMaxage to 0 if the user has new messages. Don't cache page.

19 years agoSecurity fix: do not use $IP on include (thanks brion)
Antoine Musso [Thu, 2 Sep 2004 03:48:26 +0000 (03:48 +0000)]
Security fix: do not use $IP on include (thanks brion)

19 years agotemp fix for wikimediawiki skins stylesheets. It iss just a copy of monobook directory
Antoine Musso [Thu, 2 Sep 2004 03:41:11 +0000 (03:41 +0000)]
temp fix for wikimediawiki skins stylesheets. It iss just a copy of monobook directory

19 years ago* Refactor to separate the database bits from the UI bits
Brion Vibber [Thu, 2 Sep 2004 03:32:57 +0000 (03:32 +0000)]
* Refactor to separate the database bits from the UI bits
* Make output valid XHTML
* Use the standard comment formatter and provide user links

19 years agotypo? That was giving xml parse error.
Antoine Musso [Thu, 2 Sep 2004 03:31:32 +0000 (03:31 +0000)]
typo? That was giving xml  parse error.

19 years agoNew system to generate $wgValidSkinNames by listing available dirs. Skins using PHPTa...
Antoine Musso [Thu, 2 Sep 2004 03:24:01 +0000 (03:24 +0000)]
New system to generate $wgValidSkinNames by listing available dirs. Skins using PHPTal will not load and the software fallback to the standard skin. Added 2 samples for skin designers and updated doc

19 years agoUse the result wrapper object.
Brion Vibber [Thu, 2 Sep 2004 03:13:09 +0000 (03:13 +0000)]
Use the result wrapper object.

19 years agoResultWrapper object, so you can pass a result back as a return value without passing...
Brion Vibber [Thu, 2 Sep 2004 02:43:13 +0000 (02:43 +0000)]
ResultWrapper object, so you can pass a result back as a return value without passing along the database object you used too.

19 years agoAdd FauxRequest class for arbitrary parameters.
Brion Vibber [Thu, 2 Sep 2004 02:23:49 +0000 (02:23 +0000)]
Add FauxRequest class for arbitrary parameters.

19 years agoFix for starting point entered as lowercase.
Brion Vibber [Thu, 2 Sep 2004 02:22:42 +0000 (02:22 +0000)]
Fix for starting point entered as lowercase.

19 years agomoving templates from /templates/ to /skins/ . xhtml_slim.pt is now MonoBook.pt,...
Antoine Musso [Thu, 2 Sep 2004 02:15:54 +0000 (02:15 +0000)]
moving templates from /templates/ to /skins/ . xhtml_slim.pt is now MonoBook.pt, xhtml_minimal.pt is now Chick.pt, xhtml_slim_wikimediawiki.pt is now WikimediaWiki.pt

19 years agoremoving obsolete files. See ./skins/ for new location
Antoine Musso [Thu, 2 Sep 2004 01:33:43 +0000 (01:33 +0000)]
removing obsolete files. See ./skins/ for new location

19 years agoBig change to the skin system. Php files are now in ./skins/ . Templates and styleshe...
Antoine Musso [Thu, 2 Sep 2004 01:29:18 +0000 (01:29 +0000)]
Big change to the skin system. Php files are now in ./skins/ . Templates and stylesheets will be migrated there as well later. The main idea is to let users add new skins easily without hacking mediawiki

19 years ago* some comments
Antoine Musso [Thu, 2 Sep 2004 00:25:56 +0000 (00:25 +0000)]
* some comments
* double to single quotes
* function foobar () {  shema
* indentation fix in function getEditToolbar()

19 years agodo not indent code inside the "if( defined( 'MEDIAWIKI' ) ) { }" block
Antoine Musso [Thu, 2 Sep 2004 00:01:19 +0000 (00:01 +0000)]
do not indent code inside the "if( defined( 'MEDIAWIKI' ) ) { }" block

19 years agokilling some double quotes
Antoine Musso [Wed, 1 Sep 2004 23:34:28 +0000 (23:34 +0000)]
killing some double quotes

19 years agoAdd SOAP read only API. API still unstable, might add limitations on number
Jens Frank [Wed, 1 Sep 2004 22:56:03 +0000 (22:56 +0000)]
Add SOAP read only API. API still unstable, might add limitations on number
of queries per day or similar.

19 years agocomments from DefaultSettings.php
Antoine Musso [Wed, 1 Sep 2004 22:29:25 +0000 (22:29 +0000)]
comments from DefaultSettings.php
Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=257

19 years agoWe should try not to use the same message for different things :/
Arne Heizmann [Wed, 1 Sep 2004 21:53:50 +0000 (21:53 +0000)]
We should try not to use the same message for different things :/

19 years agoSet $wgDBadminuser and $wgDBadminpassword to root when using the root
Brion Vibber [Wed, 1 Sep 2004 18:16:32 +0000 (18:16 +0000)]
Set $wgDBadminuser and $wgDBadminpassword to root when using the root
login so that certain db upgrade steps (eg convertLinks.inc) will not
try to use the unprivileges database account to do restructuring.

This fixes the problem with upgrading wikis created by the old
command-line installer dying at the link table conversion.

19 years agotime(), date(), timeanddate() now use wfTimestamp(TS_MW) for timestamp input
Domas Mituzas [Wed, 1 Sep 2004 14:10:42 +0000 (14:10 +0000)]
time(), date(), timeanddate() now use wfTimestamp(TS_MW) for timestamp input
* should be merged into other language files, defining these functions as well

19 years agoinclude all fields in group-by, required by nonmysql databases, doesn't break anythin...
Domas Mituzas [Wed, 1 Sep 2004 12:49:19 +0000 (12:49 +0000)]
include all fields in group-by, required by nonmysql databases, doesn't break anything on mysql

19 years agostrip profile name in case it exceeds db storage size (at 255 mark)
Domas Mituzas [Wed, 1 Sep 2004 12:48:09 +0000 (12:48 +0000)]
strip profile name in case it exceeds db storage size (at 255 mark)

19 years agoget rid of all INSERT IGNORE in includes/, change into Database::insertArray
Domas Mituzas [Wed, 1 Sep 2004 12:29:07 +0000 (12:29 +0000)]
get rid of all INSERT IGNORE in includes/, change into Database::insertArray

19 years agotreat every array as an array, not only with option IGNORE,
Domas Mituzas [Wed, 1 Sep 2004 12:27:57 +0000 (12:27 +0000)]
treat every array as an array, not only with option IGNORE,
IGNORE single-row inserts as well, if specified.

19 years agoprobably a typo
Arne Heizmann [Wed, 1 Sep 2004 03:08:44 +0000 (03:08 +0000)]
probably a typo

19 years agodisplay "view current revision" link on old revisions. (This means that the
Arne Heizmann [Wed, 1 Sep 2004 03:01:37 +0000 (03:01 +0000)]
display "view current revision" link on old revisions.  (This means that the
Classic skin will have it twice in different places, but I hope people won't mind.)

19 years agoremove trailing white space (sorry)
Arne Heizmann [Wed, 1 Sep 2004 02:57:26 +0000 (02:57 +0000)]
remove trailing white space (sorry)

19 years agoCustom namespaces:
Erik Moeller [Tue, 31 Aug 2004 10:23:55 +0000 (10:23 +0000)]
Custom namespaces:
To add a new namespace, just set $wgExtraNamespaces in LocalSettings.php.
Custom namespaces must begin at 100.
This is primarily intended to let us add a bunch of international versions
of the "Help:" namespace on Meta, so we can finally have a single place for
all documentation and easily dump/import it to other wikis.

19 years agoAvoid numeric and boolean interpretation of "0" in self-link check and Go searching.
Brion Vibber [Tue, 31 Aug 2004 02:26:55 +0000 (02:26 +0000)]
Avoid numeric and boolean interpretation of "0" in self-link check and Go searching.
Fix for bug 174: 0 as an article name behaves strangely (numerical comparison in article-ids).
http://bugzilla.wikipedia.org/show_bug.cgi?id=174

19 years agodocument $wgLocalTZoffset
Arne Heizmann [Tue, 31 Aug 2004 01:43:31 +0000 (01:43 +0000)]
document $wgLocalTZoffset