Brion Vibber [Wed, 10 Mar 2004 16:08:16 +0000 (16:08 +0000)]
Add incomplete Special:Import to repository; will complete it when have a chance
Tim Starling [Wed, 10 Mar 2004 14:37:06 +0000 (14:37 +0000)]
proxy check
Tim Starling [Wed, 10 Mar 2004 14:24:40 +0000 (14:24 +0000)]
proxy check
Brion Vibber [Wed, 10 Mar 2004 05:21:58 +0000 (05:21 +0000)]
Save password cookie fixes
Mr. E23 [Wed, 10 Mar 2004 01:37:16 +0000 (01:37 +0000)]
Fixed 'call on non-object' error on Special:Contributions
Brion Vibber [Wed, 10 Mar 2004 00:56:23 +0000 (00:56 +0000)]
Set up Smarty skins to be usable if $wgUseSmarty is set
Gabriel Wicke [Tue, 9 Mar 2004 14:00:37 +0000 (14:00 +0000)]
purge first url only once
Gabriel Wicke [Tue, 9 Mar 2004 12:55:54 +0000 (12:55 +0000)]
history purging
Gabriel Wicke [Tue, 9 Mar 2004 12:07:35 +0000 (12:07 +0000)]
bug fixes and indentation in purge function
Gabriel Wicke [Mon, 8 Mar 2004 18:44:20 +0000 (18:44 +0000)]
support for second-tier squids in the ip parsing function
Brion Vibber [Mon, 8 Mar 2004 10:17:24 +0000 (10:17 +0000)]
Make login work again; some var init fixes
Brion Vibber [Mon, 8 Mar 2004 09:51:11 +0000 (09:51 +0000)]
Consolidate with Title::getInternalURL() a bit
Tim Starling [Mon, 8 Mar 2004 09:43:36 +0000 (09:43 +0000)]
code formatting
Tim Starling [Mon, 8 Mar 2004 09:42:00 +0000 (09:42 +0000)]
fixed a couple of minor bugs
Tim Starling [Mon, 8 Mar 2004 09:39:01 +0000 (09:39 +0000)]
use the one central list of talk namespaces, don't make your own every time you need one
Tim Starling [Mon, 8 Mar 2004 09:37:53 +0000 (09:37 +0000)]
freeing a result object
Tim Starling [Mon, 8 Mar 2004 09:33:23 +0000 (09:33 +0000)]
ability to dump messages to a file, not quite sure what to use it for yet
Tim Starling [Mon, 8 Mar 2004 09:30:24 +0000 (09:30 +0000)]
overwriting of old default messages; ability to dump messages to a file
Tim Starling [Mon, 8 Mar 2004 09:29:14 +0000 (09:29 +0000)]
disabling database messages during install
Tim Starling [Mon, 8 Mar 2004 09:26:23 +0000 (09:26 +0000)]
bug fix, mContainsOldMagic goes in mOutput now
Brion Vibber [Mon, 8 Mar 2004 09:09:35 +0000 (09:09 +0000)]
More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)
object to encapsulate the handling of get/post variables:
The following grab something out of $_REQUEST. The first parameter is the
variable name and is required. The second is an optional default value:
$wgRequest->getVal() - any type, returns NULL if no default given
$wgRequest->getInt() - forced integer, 0 default
$wgRequest->getText() - runs through $wgLang->recodeInput()
$wgRequest->getBool() - return true/false
$wgRequest->getCheck() - returns true if the var is set, even if to ""
$wgRequest strips slashes at initialization if necessary.
Also in this fine object:
$wgRequest->wasPosted() - returns false if this wasn't a real form post,
so we can protect against faked submissions in get urls.
There's still plenty of work to do, not everything uses the new functions
yet. To test the strict mode, do define('DEBUG_GLOBALS', 1);
Brion Vibber [Mon, 8 Mar 2004 02:50:04 +0000 (02:50 +0000)]
More unitialized variable cleanup && 'pure' register_globals cleanup...
Added wfDebugDieBacktrace() function to help in pinpointing problems by
showing a function call backtrace along with a friendly die message.
Brion Vibber [Mon, 8 Mar 2004 02:46:27 +0000 (02:46 +0000)]
Fixed what seems to be an off-by-one error (it tried to access one past the end of the array quite consistently). Someone who understands this code, please check.
Brion Vibber [Mon, 8 Mar 2004 01:51:32 +0000 (01:51 +0000)]
Imported the register_globals hack from REL1_2. Also starting work on
elimination of the use of import_request_variables (which gives us all
the insecurity of register_globals). Uncomment the define of DEBUG_GLOBALS
in index.php to turn on extra error reporting and trace down use of
uninitialized variables and nassssty globals.
Also rearranged the magic_quotes fixing, may not yet cover everything...
Jens Frank [Sun, 7 Mar 2004 19:40:58 +0000 (19:40 +0000)]
Create an error warning for thumbnails of non-existing images
Mr. E23 [Sun, 7 Mar 2004 17:27:00 +0000 (17:27 +0000)]
Fixed parse error
Brion Vibber [Sun, 7 Mar 2004 07:26:56 +0000 (07:26 +0000)]
Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
Title::getFullUrl() - ditto with $wgServer on the front
Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
Title::escapeLocalUrl() - local URL escaped for HTML output
Title::escapeFullUrl() - full URL escaped for HTML output
All take an optional query parameter.
Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
Brion Vibber [Sun, 7 Mar 2004 01:31:08 +0000 (01:31 +0000)]
Avoid failing on pre-4.3.2 due to lack of 'x' create-only option on fopen
Brion Vibber [Sun, 7 Mar 2004 01:07:08 +0000 (01:07 +0000)]
Try blank root password if user fails... fix (unused) math paths, use the libgd check to disable/enable thumbnails (but upload is still off)
Brion Vibber [Sun, 7 Mar 2004 00:43:42 +0000 (00:43 +0000)]
Copy the arrow files on install/update
Brion Vibber [Sun, 7 Mar 2004 00:35:48 +0000 (00:35 +0000)]
GIMP source image for the arrows
Brion Vibber [Sun, 7 Mar 2004 00:33:43 +0000 (00:33 +0000)]
Add long-missing arrow images for enhanced recentchanges. These Arr_r.png and Arr_d.png are by Brion Vibber, made quickly in the gimp.
Brion Vibber [Sat, 6 Mar 2004 23:01:53 +0000 (23:01 +0000)]
Put site name first in feed title
Jens Frank [Sat, 6 Mar 2004 21:51:58 +0000 (21:51 +0000)]
ISBN links disabled insides of [[link]]s, too, upon brions request
Jens Frank [Sat, 6 Mar 2004 21:45:05 +0000 (21:45 +0000)]
disable RFC autolinking inside of [[links]]
Brion Vibber [Sat, 6 Mar 2004 21:35:07 +0000 (21:35 +0000)]
Use PATH_INFO for prettier default URLs: index.php/Foo instead of index.php?title=Foo
Jens Frank [Sat, 6 Mar 2004 21:30:42 +0000 (21:30 +0000)]
Added RFC link magic, similar to ISBN magic
Jens Frank [Sat, 6 Mar 2004 20:04:25 +0000 (20:04 +0000)]
Moved ISBN magic to new parser
Brion Vibber [Sat, 6 Mar 2004 09:34:05 +0000 (09:34 +0000)]
Fix timestamp error in redirects (fails in particularly ugly fashion on Windows server)
Brion Vibber [Sat, 6 Mar 2004 09:04:25 +0000 (09:04 +0000)]
Moved database update functions into maintenance/updater.inc, to be used
by both update.php and config/index.php. Check path separator to get the
include path right in Windows for the in-place LocalSettings.php.
Brion Vibber [Sat, 6 Mar 2004 03:17:43 +0000 (03:17 +0000)]
In case of mysterious write failure, spit out the config file for manual paste. Haven't yet determined the exact failure condition, but a user is reporting this. (The is_writable() should catch it up above.)
Brion Vibber [Sat, 6 Mar 2004 03:03:14 +0000 (03:03 +0000)]
Add digit transformation function Language::formatNum() for Arabic and other
languages which need to use localized (decimal) digits. Sample implementation
for Arabic.
Tim Starling [Sat, 6 Mar 2004 02:13:59 +0000 (02:13 +0000)]
Oops, left debug output in
Tim Starling [Sat, 6 Mar 2004 01:55:08 +0000 (01:55 +0000)]
* using new Title::getURL()
Tim Starling [Sat, 6 Mar 2004 01:49:16 +0000 (01:49 +0000)]
* Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
Mr. E23 [Fri, 5 Mar 2004 21:44:38 +0000 (21:44 +0000)]
Added language string 'talkpagetext' before talk page edit box
Mr. E23 [Fri, 5 Mar 2004 21:24:14 +0000 (21:24 +0000)]
Fixed bug causing early execution errors to occasionally be masked
Nicholas Pisarro, Jr [Fri, 5 Mar 2004 13:19:19 +0000 (13:19 +0000)]
Implemented '$wgWhitelistRead'.
$wgWhitelistRead is now defined to be an optional array
of namespace:pages a user may see unless they login.
For example:
$wgWhitelistRead = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help" );
will restrict an anonymous user to only those pages. They are
alerted that they must login, if the try to go to another page.
If 'false', the default, the anonymous user may see all pages,
except Sysop pages, of course.
Brion Vibber [Fri, 5 Mar 2004 11:33:03 +0000 (11:33 +0000)]
recent.phtml is obsoleted by Feed.php/QueryPage.php
Brion Vibber [Fri, 5 Mar 2004 11:21:43 +0000 (11:21 +0000)]
Tweaking RSS; add dates, etc.
Brion Vibber [Fri, 5 Mar 2004 10:16:46 +0000 (10:16 +0000)]
New RSS feed should be easier to integrate with any QueryPage. Sample for Newpages.
Brion Vibber [Fri, 5 Mar 2004 03:34:35 +0000 (03:34 +0000)]
Update LocalSettings.php and LanguageUtf8.php on command-line update
Brion Vibber [Fri, 5 Mar 2004 03:18:31 +0000 (03:18 +0000)]
Add $wgDebugRedirects to assist in debugging some problems hidden by
automated http redirects.
Brion Vibber [Fri, 5 Mar 2004 02:40:40 +0000 (02:40 +0000)]
Install magnify-clip.png.
Brion Vibber [Thu, 4 Mar 2004 08:26:17 +0000 (08:26 +0000)]
Fix for #883774 inverse_timestamp not updated when overwriting an old redirect on move.
Brion Vibber [Wed, 3 Mar 2004 08:45:40 +0000 (08:45 +0000)]
Mark some old scripts as obsolete; this keeps them from being accidentally run via web, among other things
Brion Vibber [Wed, 3 Mar 2004 07:46:21 +0000 (07:46 +0000)]
Initialize log pages; bow out quick if dir not writable.
Installation now seems to be pretty much functional!
Brion Vibber [Wed, 3 Mar 2004 07:20:34 +0000 (07:20 +0000)]
Initialize messages.
Brion Vibber [Wed, 3 Mar 2004 06:54:03 +0000 (06:54 +0000)]
Create sysop account on new wiki creation.
Jens Frank [Tue, 2 Mar 2004 20:23:56 +0000 (20:23 +0000)]
Added hook to tokenizer and to parser for language specific
processing.
Using this hook, added a conversion of spaces to non-breaking
spaces for the French wikipedia.
Switched ----- -> <hr> processing to tokenizer.
Nicholas Pisarro, Jr [Tue, 2 Mar 2004 11:01:10 +0000 (11:01 +0000)]
Added a message needed by revised "SpecialEmailuser.php".
Brion Vibber [Tue, 2 Mar 2004 09:26:57 +0000 (09:26 +0000)]
Add database creation to in-place installer, plus a couple fixlets.
Installer is now able to connect to the db, check its version (and
enable some MySQL 4 features if available), create the database
if need be, create the empty tables, and grant user privs if given
the root pass. This creates a usable empty wiki.
TODO:
* Populate main page and stub log pages
* Create sysop account
* Populate MediaWiki namespace for selected language
* Better error checking
* Option for InnoDB tables?
* Other useful options like uploads and TeX (shudder)
* Support scripts still need to be checked for security.
Also fixed a minor bug in Database::tableExists which ran into infinite
loops if no tables were present, and made Database::selectDB modify
the right member variable.
To get around some problems induced by the new parser stuff, User
won't loadFromDatabase() if we're in CommandLineMode, since it ends
up trying to do so before we've set up the database and fails.
Brion Vibber [Tue, 2 Mar 2004 02:22:44 +0000 (02:22 +0000)]
Force the wiki out of frameset thieves
Gabriel Wicke [Mon, 1 Mar 2004 22:28:33 +0000 (22:28 +0000)]
typo and minor tweak to permanent redirect
Gabriel Wicke [Mon, 1 Mar 2004 22:16:39 +0000 (22:16 +0000)]
allow caching for permanent redirects
Nicholas Pisarro, Jr [Mon, 1 Mar 2004 20:02:50 +0000 (20:02 +0000)]
Made the reference to the MediaWiki namespace symbolic in "SpecialAllmessages.php".
Fixed up messages that form the title and opening text of Special:Allmessages page.
Mr. E23 [Mon, 1 Mar 2004 16:22:35 +0000 (16:22 +0000)]
Reverted bugfix for centering thumbs in Opera: breaks float=right divs in IE. See example at sv.wikipedia.org/w/wiki.phtml?title=Wikipedia:Sandl%E5dan&oldid=101565
Magnus Manske [Mon, 1 Mar 2004 15:47:55 +0000 (15:47 +0000)]
fixing category feature, again
Nicholas Pisarro, Jr [Mon, 1 Mar 2004 13:40:58 +0000 (13:40 +0000)]
Created a new page, "SpecialAllmessages.php", which builds
the equivalent of "MediaWiki:All_message" at run time
instead of install time.
This page is currently shown on "Special:Specialpages" by
those with SysOp access.
The table has a background color. Entries where the current
text is different than the default text are show with a
different background color.
It might be possible to better optimize this table's
construction.
Brion Vibber [Mon, 1 Mar 2004 12:59:45 +0000 (12:59 +0000)]
Experimental in-place installer.
Doesn't yet do any database setup, but does produce a LocalSettings.php
that can successfully operate the wiki in the distribution directory
structure. Note that the maintenance scripts may not all be fully armored
against web access, and aren't set up to be run from the web by an actual
administrator either.
Brion Vibber [Mon, 1 Mar 2004 08:14:12 +0000 (08:14 +0000)]
Seems we forgot to copy the GPL text itself into the phase3 tree. Rectifying.
Brion Vibber [Mon, 1 Mar 2004 06:53:22 +0000 (06:53 +0000)]
Fix float left for Mac Mozilla/Netscape and Safari
Brion Vibber [Mon, 1 Mar 2004 05:51:55 +0000 (05:51 +0000)]
Clear message cache on rebuild
Brion Vibber [Mon, 1 Mar 2004 01:32:11 +0000 (01:32 +0000)]
Add escaping necessary to deal with tips and example text that contain apostrophes and such (needed for French etc)
Tim Starling [Mon, 1 Mar 2004 00:31:08 +0000 (00:31 +0000)]
Limited developer version of Special:Makesysop to a given list of databases
Brion Vibber [Mon, 1 Mar 2004 00:25:57 +0000 (00:25 +0000)]
Compatibility fixes for edit toolbar:
* Use infobox mode for Gecko. Inline direct editing is neat, but because of
a Mozilla bug that induces weird scrolling it's confusing and unusable.
When Mozilla fixes the bug and we can detect it, we'll enable it for
fixed versions only.
* Use 'new RegExp()' instead of '//' to avoid ugly JS parse errors when
viewing pages in Netscape 3. There are still runtime errors in NS3 at
edit time, but this lets people read in peace.
Gabriel Wicke [Sun, 29 Feb 2004 19:47:59 +0000 (19:47 +0000)]
missing addslashes broke edit toolbar on fr
Jens Frank [Sun, 29 Feb 2004 13:33:51 +0000 (13:33 +0000)]
extended tokenizer to handle prefixed links
Nicholas Pisarro, Jr [Sun, 29 Feb 2004 12:54:03 +0000 (12:54 +0000)]
Commented side effect of changing '$wgUseDatabaseMessages'.
Jens Frank [Sun, 29 Feb 2004 11:00:30 +0000 (11:00 +0000)]
renamed variables for better readability
Brion Vibber [Sun, 29 Feb 2004 10:42:38 +0000 (10:42 +0000)]
Initial import; Bengali (incomplete) from meta
Brion Vibber [Sun, 29 Feb 2004 10:10:32 +0000 (10:10 +0000)]
Stub Indonesian file; imports everything from Malay
Brion Vibber [Sun, 29 Feb 2004 09:43:52 +0000 (09:43 +0000)]
Clean up so it works
Brion Vibber [Sun, 29 Feb 2004 09:32:20 +0000 (09:32 +0000)]
Add welsh file, updated from meta
Tim Starling [Sun, 29 Feb 2004 09:17:17 +0000 (09:17 +0000)]
bug fix
Tim Starling [Sun, 29 Feb 2004 08:51:15 +0000 (08:51 +0000)]
Special developer powers in SpecialMakesysop, different defaults for anons and logged in users, plus some bits and pieces
Tim Starling [Sun, 29 Feb 2004 08:48:47 +0000 (08:48 +0000)]
marked a static function as such
Tim Starling [Sun, 29 Feb 2004 08:44:59 +0000 (08:44 +0000)]
wfRecordUpload() using RecentChange instead of direct DB, which fixes a minor bug
Tim Starling [Sun, 29 Feb 2004 08:43:29 +0000 (08:43 +0000)]
Parser improvements: global variable destruction
Brion Vibber [Sun, 29 Feb 2004 08:06:49 +0000 (08:06 +0000)]
Double-check at runtime that sitename is set. Paranoia is good... if we don't do this, manual installs that are sloppy may introduce subtle bugs.
Brion Vibber [Sun, 29 Feb 2004 07:24:47 +0000 (07:24 +0000)]
Go result was going straight to google fallback instead of the regular search if a match couldn't be found. This broke correct behavior when text search is enabled.
Jens Frank [Sat, 28 Feb 2004 23:38:08 +0000 (23:38 +0000)]
Added real parser/tokenizer.
Tokenizer is a new class that splits a text into tokens.
Parser calls the tokenizer to get one token by another and
handle them one by one.
Parser:doAllQuotes and Parser:replaceInternalLinks have been
replaced by the new parser.
Image thumbnailing now allows links in the captions.
Tim Starling [Sat, 28 Feb 2004 14:34:13 +0000 (14:34 +0000)]
Improved [[MediaWiki:All messages]] table
Tim Starling [Sat, 28 Feb 2004 09:26:16 +0000 (09:26 +0000)]
bug fix
Brion Vibber [Sat, 28 Feb 2004 08:31:44 +0000 (08:31 +0000)]
Turn database messages on by default. If it sucks too bad, we can change it for the release.
Brion Vibber [Sat, 28 Feb 2004 08:04:02 +0000 (08:04 +0000)]
Require sitename to be set at install or update time. It must not be MediaWiki in particular, as that would interfere with namespaces 4 and 8. The old default was Wikipedia, also not great for most people. :)
Brion Vibber [Sat, 28 Feb 2004 07:48:01 +0000 (07:48 +0000)]
Massive updates to sample settings file
Brion Vibber [Sat, 28 Feb 2004 07:32:10 +0000 (07:32 +0000)]
Farsi language file; initial add
Brion Vibber [Sat, 28 Feb 2004 07:28:49 +0000 (07:28 +0000)]
Update from wiki
Brion Vibber [Sat, 28 Feb 2004 07:23:04 +0000 (07:23 +0000)]
Expand Latin a bit. Main body translations are currently in mediawiki namespace on la.wikipedia.org, need tobe extracted