Commit graph

267 commits

Author SHA1 Message Date
Andrew Garrett
020e6ac57f Spelling error in comments in User.php -- excede -> exceed 2006-11-08 07:04:25 +00:00
Nick Jenkins
fa239349f2 * (bug 7405) Make Linker methods static. Patch by Dan Li. 2006-11-08 05:21:15 +00:00
Andrew Garrett
05f4492f06 Restore patch that was temporarily reverted in order to rectify an issue where the patch was applied without enacting required database changes 2006-11-01 21:57:18 +00:00
Andrew Garrett
5941189de0 Revert patch that was scapped into production without database changes 2006-11-01 21:36:03 +00:00
Tim Starling
329b012d2b Added block option "enable autoblocks". Patch by Werdna from bug 1294. 2006-11-01 07:13:31 +00:00
Tim Starling
a3b490d2c4 * Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Tim Starling
e9de4983bf Added a per-user limit on password reminder emails. Presumably if you just had a password reminder sent to you, you don't need another one a short time later. Along with a proper per-IP throttle setting, this should fix the majority of the abuse problem on Wikipedia. 2006-10-23 09:35:30 +00:00
Brion Vibber
b19cf7f3aa * Fix regression in autoconfirm permission check
Anons can't be autoconfirmed. Was broken by restructuring in r17004.
2006-10-15 22:41:28 +00:00
Tim Starling
dd785270d7 Converted User to use lazy initialisation. This is to avoid unstub loops, and also for performance. Interfaces and semantics have been largely preserved, except for a minor change involving setLoaded(). 2006-10-14 06:58:19 +00:00
Brion Vibber
5f0d32b5e7 * (bug 7526) Make $wgDefaultUserOptions work again
The globals for preference default overrides was removed in r15823,
when the defaults were moved from Language to User. Moved the settings
out to the global where they arguably belong, restoring compatibility
for site-specific overrides.
2006-10-09 08:13:48 +00:00
Nick Jenkins
794e8744d4 (Bug 7004) PHP iconv() notice on bad password input to Special:Userlogin, with E_ALL enabled. 2006-10-04 12:13:22 +00:00
Tim Starling
e174a4ddfb Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction.
Caches for wikis with table prefixes will be lost on upgrade, caches for wikis without table prefixes will be preserved. Custom cache keys in extensions can be migrated at leisure. Extensions which write to core cache keys should be migrated ASAP, as I have done with Special:Makesysop.
2006-10-04 09:06:18 +00:00
Brion Vibber
c1094ba987 * Do fewer unnecessary full writes of user rows; only update user_touched
for watch/unwatch, group membership change, and login operations
2006-10-03 22:30:40 +00:00
Jimmy Collins
f509270254 * (bug 6023) Fixed mismatch of 0/NULL for wl_notificationtimestamp; now notification
mails are working after 'Mark all pages visited' button on Special:Watchlist is clicked
2006-09-29 20:13:38 +00:00
Brion Vibber
3a515b48b1 * (bug 6849) Block @ from usernames; interferes with multi-database tools and
was meant to be banned years ago... For now existing accounts will not be
  prevented fromm login.
2006-09-26 16:06:16 +00:00
Brion Vibber
2997fd7637 * (bug 7064) Replace hard-coded empty message checks with wfEmptyMsg calls 2006-09-11 12:22:35 +00:00
Rotem Liss
c7491fe86b Adding static functions to User to create links to groups in either HTML or Wikitext; using the HTML function in Special:Listusers; using the Wikitext function in Special:Statistics instead of a raw link to the sysops page (kept for backwards compatibility); several code fixes. 2006-08-12 09:24:18 +00:00
Rotem Liss
fe4fd85975 Finally removing the deprecated and unused functions User::isSysop, User::isBureaucrat and User::isDeveloper, and updating the release notes. 2006-08-08 14:20:33 +00:00
Rotem Liss
241676caf2 Removing the last references to OutputPage::sysopRequired() and OutputPage::developerRequired() (mostly using OutputPage::permissionRequired(), but in one case - reverting of a protected image - OutputPage::readOnlyPage is better), and throwing an exception when calling them; removing two useless comments. 2006-08-08 13:58:25 +00:00
Tim Starling
2774ccdd43 Defer loading default options, this avoids a theoretical unstub loop. 2006-08-02 17:43:55 +00:00
Tim Starling
43b2fb56b6 Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules. 
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches. 
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. 
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). 
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
2006-07-26 07:15:39 +00:00
Rotem Liss
31c3012d45 Deprecating ; reordering the special pages array (whose the special page list is created from) by restricted and not restricted (like Special:Specialpages), not by rights which are not used to divide the list anymore to levels, and required us to use . 2006-07-23 12:36:37 +00:00
Rotem Liss
ee7ab4900e Making User::isBot deprecated, using User::isAllowed('bot') instead, making it a wrapper of User::isAllowed, and deleting several obsolete comments. 2006-07-16 16:42:15 +00:00
Tim Starling
22b718c035 Fixed autoblock bug 2006-07-11 05:29:31 +00:00
Tim Starling
1d9922db64 * Allow blocks on anonymous users only.
* Allow or disallow account creation from blocked IP addressess on a per-block basis.
* Prevent duplicate blocks. 
* Fixed the problem of expiry and unblocking erroneously affecting multiple blocks. 
* Fixed confusing lack of error message when a blocked user attempts to create an account. 
* Fixed inefficiency of Special:Ipblocklist in the presence of large numbers of blocks; added indexes and implemented an indexed pager.
2006-07-10 06:30:03 +00:00
Rotem Liss
337e6454da Adding 'emailconfirmed' to the groups which are not included in the group list, as it is not defined in the database, and should not be changed via Special:Userrights or Special:Makesysop. 2006-07-08 10:56:02 +00:00
Rob Church
121c0fc085 * Implicit group "emailconfirmed" for all users whose email addresses are confirmed 2006-07-06 17:33:33 +00:00
Tim Starling
02547dac72 Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. 2006-06-07 06:40:24 +00:00
Domas Mituzas
526b19e075 Autoload WatchedItem 2006-06-06 12:10:08 +00:00
Tim Starling
24752788ac Clarified purpose of User::isIP(), see bug 6198. 2006-06-04 23:48:20 +00:00
Brion Vibber
0a26267688 Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :) 2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104 Use AutoLoader to load classes:
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Brion Vibber
f256eb0a40 Remove the unused function and config option for opm.blitzed.org.
The service shut down a couple weeks ago, and the support was never
switched in to where you could use it anyway.
2006-05-22 22:15:18 +00:00
Brion Vibber
919c1af52c * (bug 5187) Allow programmatically bypassing username validation, for scripts 2006-05-19 17:50:08 +00:00
Brion Vibber
ce8edcc565 Fixes to input validation and output escaping for user preferences.
Inserting a newline into some improperly filtered option strings could be used to overwrite other pref values, bypassing their input validation. Any newlines now get filtered out at User::setOption as a final line of defence.
There were a few HTML injection bugs, but none appear to be exploitable, as prefs can only be set if you already control the account.
Bug found by gmaxwell.
2006-05-15 09:45:14 +00:00
Rob Church
8602a751ef Groups which won't hit the rate limiter now configurable with $wgRateLimitsExcludedGroups 2006-05-12 17:47:53 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
bbbbb2a90a last round of PHP5 stuff for now. 2006-05-11 21:07:41 +00:00
Antoine Musso
c3c2084ee2 Some more PHP5 stuff 2006-05-11 20:24:28 +00:00
Antoine Musso
acb150a105 a round of static statements 2006-05-11 19:39:50 +00:00
Antoine Musso
bc14eb8045 Replacing var keyword with private / public as we now require PHP5. 2006-05-11 19:10:41 +00:00
Antoine Musso
2bc251967c Die with a backtrace when using User::isBureaucrat User::isDeveloper User::isSysop
Related to #2498 and helps a bit bug 700: Code quality issues (tracking)
2006-05-10 20:09:30 +00:00
Rob Church
95d080d749 (bug 5846) Link to individual group description pages in Special:Listusers 2006-05-07 00:52:12 +00:00
Niklas Laxström
d389ad1e2a * (bug 5587) Clean up the languages from references to the Groups special page
** Based on patch by Rotem Liss
* Added new group-X and group-X-member messages
2006-05-04 22:48:47 +00:00
Rob Church
e04c978a29 Stab #1 2006-05-02 20:20:12 +00:00
Rob Church
6d3ef283ec Add 'EmailConfirmed' hook 2006-05-02 20:05:25 +00:00
Antoine Musso
89a1491474 Fix #5728: mVersion missing from User::__sleep() leading to constant cache miss 2006-04-26 17:17:57 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Brion Vibber
95fc4dde67 * (bug 5576) Remove debugging hack in session check 2006-04-15 08:45:40 +00:00
Brion Vibber
2e5d8734e7 * (bug 5432) Fix inconsistencies in cookie names when using table prefixes 2006-04-03 00:53:56 +00:00