Commit graph

182 commits

Author SHA1 Message Date
Tim Starling
9260c3b7ca Deferred initialisation of $wgIP, because it's potentially slow, especially if and when we add the 200 NTL proxies to the trusted XFF list. I was hoping to avoid initialisation altogether for anonymous page views, but that turns out to be difficult because of user_newtalk. It is, however, avoided for action=raw. Tested page view, newtalk, IP registration in history and recentchanges, IP block, autoblock and Special:Version.
Also moved the old proxy scan code from EditPage.php to a more appropriate location in ProxyTools.php.
2005-09-05 02:22:20 +00:00
Tim Starling
2eda38afac Function names on queries, some debugging output (latter not by me) 2005-08-23 16:50:39 +00:00
Tim Starling
e509893941 Made BlockCache::loadFromDB() 100x faster. Wasn't an issue before ryo commented out the memcached bits, but since then, it was adding 1100ms to the save time 2005-08-21 06:07:48 +00:00
Brion Vibber
af2177edfd Code cleanup: normalize case for intval(), strval(), floatval() calls. 2005-08-16 23:36:16 +00:00
Ævar Arnfjörð Bjarmason
74439c759d * Correct $fname 2005-08-15 09:21:35 +00:00
River Tarnell
b817c0c15f merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively. 2005-08-02 13:35:19 +00:00
Jens Frank
ae4983dc16 Moved password encryption algorithm to GlobalFunctions.php to make it useable for other parts of the code 2005-07-26 16:09:00 +00:00
Tim Starling
ee423f57a9 committed live hack, we have to make sure MediaWiki does actually work out of the box 2005-07-25 07:06:46 +00:00
Brion Vibber
e4480a80af * (bug 2943) AuthPlugin::getCanonicalName() name canonicalization hook, patch from robla
http://bugzilla.wikimedia.org/show_bug.cgi?id=2943
http://bugzilla.wikimedia.org/attachment.cgi?id=739
2005-07-24 09:48:14 +00:00
River Tarnell
a14ffdcfb9 allow 'uselang' and 'useskin' to be specified in the URL parameters, with
some obvious effect.
2005-07-24 06:55:45 +00:00
Brion Vibber
a29a30b15e Revert commit 1.171. This is extension code, I'm not sure why it's checked in to core. Also uses wrong syntax for database fields. 2005-07-16 00:06:51 +00:00
Ævar Arnfjörð Bjarmason
d173521144 * A new function: editsByNs( $uid ) that uses the SQL from Kate's edit counter 2005-07-14 17:56:30 +00:00
Ævar Arnfjörð Bjarmason
503cdc1080 * Added a new function, edits(), for counting contributions. 2005-07-09 16:59:00 +00:00
Tim Starling
6e6e0ae540 new feature: $wgBlockAllowsUTEdit 2005-07-07 21:40:25 +00:00
Niklas Laxström
22b7e7c831 * (bug 2534) Hide edit sections with CSS to make right click to edit section work
* Remove some unneeded stuff!?
2005-07-05 19:15:13 +00:00
Brion Vibber
74fd7962bf * (bug 2629) Automatically capitalize usernames again instead of
rejecting lowercase with a useless error message
2005-07-01 21:47:23 +00:00
Brion Vibber
a67c0fc809 fix notice warning in some configs 2005-07-01 21:05:39 +00:00
River Tarnell
d31536de0e initialised variable 2005-07-01 09:35:51 +00:00
Ævar Arnfjörð Bjarmason
7666ef1c37 * Fixed a bug that would occour if $wgCapitalLinks was set to false, a user
agent could create a username that began with a lower case letter that was
  not in the ASCII character set ( now user $wgContLang->ucfirst() instead of
  PHP ucfirst() )
* Moved the user name / password validity checking from
  LoginForm::addNewAccountInternal() to two new functions,
  User::isValidUserName() and User::isValidPassword(), extensions can now do
  these checks without rewriting code.
2005-06-27 06:33:45 +00:00
Brion Vibber
d4cd932fcb * (bug 2538) Suppress notice on user serialized checks 2005-06-26 18:58:51 +00:00
Brion Vibber
ed80f7e10f Serliazed version check on user records in memcached 2005-06-26 07:00:09 +00:00
Tim Starling
3470dee2f5 __sleep() function, just like in 1.4, for the same reasons (i.e. caching bug) 2005-06-25 13:41:59 +00:00
Brion Vibber
a85233dc74 * Trim whitespace from option values to weather line-ending corruption problems 2005-06-23 02:16:10 +00:00
Brion Vibber
684c0ba6ae * Changed $wgGroupPermissions to more cut-n-paste-friendly format
* 'developer' group deprecated by default
2005-06-19 07:03:55 +00:00
Tim Starling
52f18d86dc ported changes to SORBS check from 1.4 2005-06-19 02:17:05 +00:00
Brion Vibber
8426ece183 * (bug 1805) Initialise $wgContLang before $wgUser 2005-06-16 07:51:45 +00:00
Brion Vibber
0199bdd2a9 * (bug 873) Fix usage of createaccount permission; replaces $wgWhitelistAccount 2005-06-16 06:53:26 +00:00
Tim Starling
1d12276bcb ported clock skew fudge from 1.4 2005-06-12 17:05:07 +00:00
Brion Vibber
95ba5a3def * (bug 2384) Fix typo in regex for IP address checking 2005-06-11 09:26:28 +00:00
Brion Vibber
a6d47f47ff Rework the user_groups system, again, into something that seems to actually
more or less work for now.

* user_groups ur_group is now a short string key ('sysop' etc)
* groups table is gone
* user_rights table is gone
* Permissions for groups are for now set in $wgGroupPermissions.
An in-database management system could be re-added in the future
if it's really needed, but for now it's mostly just been screwing
things up.
* Group.php and Special:Groups are deprecated; will probably die.
* User group memberships are set explicitly through addGroup and
removeGroup methods instead of being re-saved on every change to
the user record.

Group keys are migrated from user_rights at upgrade time for older wikis.
The fields in prior 1.5alpha tables were too screwed up and will need to
manually have sysops re-assigned.

The Makesysop extension will need some minor tweaks.
2005-06-09 09:49:10 +00:00
Brion Vibber
cfa06c17ae * (bug 814) Integrate AuthPlugin changes to support Ryan Lane's external
LDAP authentication plugin
2005-06-03 11:56:02 +00:00
Tim Starling
f5106b8820 fixed forward-port error 2005-05-29 05:31:47 +00:00
Tim Starling
913c238080 Ported proxy whitelist from REL1_4, also fixed broken $bFromSlave parameter (untested) 2005-05-29 04:44:13 +00:00
Brion Vibber
9f939405af Include timestamp and database in rate limiter log (applying live patch) 2005-05-29 00:23:41 +00:00
Brion Vibber
e46d19e72d * Simple rate limiter for edits and page moves; set $wgRateLimits
(somewhat experimental; currently needs memcached)
* Pretty up HTTP error output a bit (HTML instead of text/plain)
* Genericise DNS blacklist support a bit, func for Blitzed OPM
  (not yet used)
2005-05-27 11:03:37 +00:00
Tim Starling
9d7d1050a3 removed crippled enotif code from checkPassword(), this is roughly how it was in 1.106 2005-05-24 04:28:00 +00:00
Anders Wegge Jakobsen
915c10b155 * (bug 2126) Emergency fix of problems with one-time passwords. 2005-05-23 20:53:46 +00:00
Tim Starling
554bbccf31 Attempting to get enotif into working order. Many aesthetic changes, a fair number of bug fixes too. There's also a couple of non-enotif bug fixes in this commit somewhere. 2005-05-14 17:55:04 +00:00
Tim Starling
d5110cbdc3 Fixed duplicate group problem, fixed isNewbie() function 2005-05-14 05:39:39 +00:00
Tim Starling
f98c133919 Major changes to user groups:
* Added "static groups" feature to remove memcached/DB load time
* Added i18n support, allowing names and descriptions to be optionally drawn from wfMsg/wfMsgForContent
* Fixed Special:Groups, it is now half-decent. Too many changes to list here.
2005-05-01 18:24:20 +00:00
Ævar Arnfjörð Bjarmason
a87b485b45 * Fixed some obscure code 2005-04-28 07:54:40 +00:00
Ævar Arnfjörð Bjarmason
bb12b3acc2 * Documented isIP and added a correct regexp as a comment. 2005-04-28 03:07:41 +00:00
Brion Vibber
aed4a04076 Clean up e-mail authentication code.
* Add Special:Confirmemail unlisted page for requesting confirmation emails and as the destination
* There is now a confirmation token separate from the login password, which is cleaner and hopefully a lot less confusing.
* Confirmation token expires after 7 days
* Added support functions for nullable timestamp columns: wfTimestampOrNull and Database::timestampOrNull
* userMailer now returns WikiError objects
* Added convenience functions to User for email management, consolidated some checks

There are changes to the user table, so run update.php
2005-04-25 18:38:43 +00:00
Ævar Arnfjörð Bjarmason
8b37fbcd2e * Removed the troublesome regular expression in isValidEmailAddr which returns
true now no matter what input it gets, see bug 959.
2005-04-23 21:20:09 +00:00
Ævar Arnfjörð Bjarmason
76bb2dbc40 * Some clown with CVS access deleted our MS Word files and replaced them with
textfiles, changing all references to them.
2005-04-12 02:07:16 +00:00
Ævar Arnfjörð Bjarmason
a6fb86a8cc * Adding thumbsize to getPageRenderingHash() as it will change the parser output. 2005-04-12 01:42:12 +00:00
Magnus Manske
150974f262 Edit bug fix 2005-03-31 08:17:35 +00:00
Tim Starling
22c6ce899a fixed bug 2005-03-28 15:57:18 +00:00
Tim Starling
7e0484fb87 Support for SORBS DNSBL 2005-03-28 15:19:24 +00:00
Tim Starling
f21b45c57e moved call to spreadBlock() to getBlockedStatus(). This means one less query per logged-in page view. It also means blocked users will only have their IP address blocked if they edit, rather than just viewing pages. 2005-03-27 16:30:00 +00:00