Commit graph

198 commits

Author SHA1 Message Date
Erik Moeller
dcb181d10a taking out $wgSharedUploadBaseUrl , which is not needed 2004-10-27 10:51:57 +00:00
Antoine Musso
28ea816fba Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at http://bugzilla.wikipedia.org/show_bug.cgi?id=767 2004-10-24 19:14:48 +00:00
Jens Frank
bbfc760c1f Rename fields of user_rights and user_groups table to tablename_columnname schema 2004-10-24 09:21:53 +00:00
Tim Starling
fd2f171082 turck only works as an apache module 2004-10-23 10:37:18 +00:00
Tim Starling
d00451fa19 Fixed bug with Turck MMCache wrapper, and made it the default where Turck is installed (except if memcached is specified) 2004-10-23 10:21:23 +00:00
Erik Moeller
0d02b52702 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.
2004-10-21 05:04:14 +00:00
Brion Vibber
8ffff3e2e0 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
2004-10-20 09:56:34 +00:00
Zheng Zhu
b6093aad4e Added option wgDisableLangConversion to disable langauge variant conversion, mainly for debugging and testing purpose. 2004-10-19 18:02:44 +00:00
Emmanuel Engelhart
8e69badb1c + "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" to the browser black list
array
2004-10-15 22:15:11 +00:00
Evan Prodromou
9cd036d350 Briefly document the $wgLocaltimezone variable. 2004-10-11 22:59:29 +00:00
Brion Vibber
c84210f06d $wgBrowserBlackList must be an array, not a string. Also, the previous value would have matched virtually all browsers other than Mozilla. 2004-10-11 21:23:39 +00:00
Emmanuel Engelhart
e0b2f96cb2 $wgBrowserBlackList = "/Mozilla\/4./"; 2004-10-11 18:36:01 +00:00
Emmanuel Engelhart
b8e9cb9f46 + comment about the browser blacklist array 2004-10-11 16:13:53 +00:00
Emmanuel Engelhart
9cc5a3d431 + $wgBrowserBlackList 2004-10-10 21:25:42 +00:00
Brion Vibber
03e42a53d6 old_text conversion on load, for future UTF-8 conversion of en.wikipedia.org and remaining holdouts.
* When not $wgUseLatin1, saved revisions are now marked with 'utf-8' in old_flags
* When $wgLegacyEncoding is set, an old row without 'utf-8' in old_flags is converted from $wgLegacyCharset to $wgInputEncoding at load time (after gzip decompression if applicable). Thus the old_text fields will not need to be modified when the wiki is converted; this will mainly be useful after the SCHEMA_WORK changes are made so that the other fields in the old table are discarded (they will need to be separately converted anyway)
2004-10-08 08:46:25 +00:00
Brion Vibber
061ab79546 Add support for some alternate SVG rasterizers:
* ImageMagick - scaling is done after rasterization, and curves don't look good
* Batik - looks good; requires Java
* Sodipodi & Inkscape - haven't got them actually working yet; they crash on my mac when called from the web server though they work on the command line
2004-10-06 10:33:22 +00:00
Domas Mituzas
c5b7002917 initial support for partial message cache, the way to have separated message
cache objects by scope and/or severity, though by leaving rarely used messages
standalone on db and/or cached daemons...
2004-10-04 20:36:11 +00:00
Jens Frank
aee58e0985 On Category: pages, show images as thumbnail gallery, and not
as articles. Can be disabled by setting $wgCategoryMagicGallery to false
2004-09-30 21:36:12 +00:00
Domas Mituzas
255fd3d629 allow turning off image path hashing. there was a feature request for that somewhere. 2004-09-28 19:54:51 +00:00
Brion Vibber
5e6faed41f Shut up PHP notification warnings about $_SERVER['SERVER_NAME']
being unaccessible from the command line. Fall back to $_SERVER['HOSTNAME']
or 'localhost' if not available.
2004-09-27 04:43:29 +00:00
Jens Frank
734caee098 BUG#419 Added global variable that defines the elements of the navigation sidebar.
Made MonoBook use the global sidebar definition
2004-09-26 09:45:35 +00:00
Brion Vibber
b16286fd56 Turning validation back off by default. I'm assuming this was checked in by mistake. 2004-09-25 10:50:01 +00:00
Brion Vibber
5537c5b85e Avoid gratuitously breaking configurations: continue to use
$wgLanguageCode in LocalSettings.php, and pass that value on
to $wgContLanguageCode internally.
2004-09-25 10:38:34 +00:00
Erik Moeller
4a89163754 removing Windows line endings
fixing MySQL code so it works under 4.0/Linux
2004-09-24 17:31:02 +00:00
Magnus Manske
c97f3bbdeb Wiki database system 2004-09-24 14:49:22 +00:00
Zheng Zhu
aab62bee2a Set default value for instead of 2004-09-24 03:19:04 +00:00
Domas Mituzas
6dd05bcd14 allow specifying alternative image upload base url (like external servers) 2004-09-23 12:15:42 +00:00
Wil Mahan
b446574011 Bug 506: use $_SERVER[] instead of getenv() because the latter doesn't work
on IIS in ISAPI mode.
2004-09-20 21:53:21 +00:00
Domas Mituzas
9ee14e9268 Add schema (logical namespace) support, table prefixes are not needed for PG... 2004-09-17 13:47:28 +00:00
Brion Vibber
63d80f72c1 Prudency measure: only enable $wgRawHtml usage if $wgWhitelistEdit is on. 2004-09-14 05:49:15 +00:00
Jens Frank
7be4991983 New user option. Provides a setting to limit the image size on image description pages. 2004-09-10 00:53:31 +00:00
Brion Vibber
6810e5a92e Fix register_globals vulnerability checked in last week. 2004-09-09 06:12:04 +00:00
Brion Vibber
7c8905fa12 Add $wgUserLanguages array to specify which languages users are allowed
to select for the user interface. If this is left at the default empty
array the selection is disabled.

Currently the language selection is broken and will fail for many
cases, using bogus namespaces and probably corrupting your database
with bogus links, search index updates, and more.
2004-09-08 07:35:00 +00:00
Jens Frank
31445a1104 more verbose description 2004-09-06 21:01:18 +00:00
Antoine Musso
29d0875800 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.
2004-09-05 02:21:52 +00:00
Antoine Musso
d3bc7dbf0d some comments. 2004-09-04 00:02:45 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
b532cc3575 Some documentation. Let's talk about it in wikitech-l. 2004-09-03 01:05:32 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Jens Frank
96e7ca0b0d Add SOAP read only API. API still unstable, might add limitations on number
of queries per day or similar.
2004-09-01 22:56:03 +00:00
Erik Moeller
f11ab4263b 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.
2004-08-31 10:23:55 +00:00
Erik Moeller
76ea9e6220 rename $wgUserTablePrefix to $wgSharedDB as discussed on #mediawiki 2004-08-28 13:32:14 +00:00
Jens Frank
85bfd4f375 ENH#169: Provide plugin interface for skins. See also module "sampleskin" in extensions. 2004-08-27 05:23:52 +00:00
Jens Frank
22525a2771 New global setting: wgUserTablePrefix
set wgUserTablePrefix to the name of the DB where your users
table is for single login. Disabled by default.
If set, the users table will be fetched from another MySQL schema (called
database by MySQL). Can not be on a different MySQL server, though.
2004-08-23 18:49:05 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Tim Starling
bcb4f2c046 New feature: Turck MMCache shared memory as a lightweight, windows-compatible replacement for memcached 2004-08-21 13:59:48 +00:00
Jens Frank
5f4b3ec064 On image pages, limit image width to $wgMaxImageWidth.
If $wgUseImageResize is set, the image will be resized to fit this limit.
The resized image links to the big image.
Default for $wgMaxImageWidth is 800 pixels. Set to really big values (like 9999999) to disable.
2004-08-17 21:07:14 +00:00
Antoine Musso
fd2a41c6ff some more comments and moved parameters in their sections 2004-08-15 23:25:52 +00:00
Brion Vibber
1ce0aa1886 Disable $wgUseGzip by default since it's wildly incompatible with
default output buffering. May further streamline this later.
2004-08-14 22:51:28 +00:00
Tim Starling
5698c6bcc7 Allowed post-parse link cache to be used for update as well as page view. This involves changes to Article::showArticle() and maintenance/refreshLinks.inc. Fixed various bugs that I noticed along the way. Added an option to recover the old 1.3.x behaviour, for profiling and debugging. 2004-08-14 13:34:57 +00:00