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
Brion Vibber
5d649dbc48
Live fix: session token vanishing logging
...
FIXME: uses wikimedia paths, needs to be generalized
2006-04-02 04:14:45 +00:00
Lupin
11337038b3
removing unused globals and some whitespace cleaning
2006-03-07 01:10:39 +00:00
River Tarnell
5cbdb9f4e5
rename getTalkPages to getNewMessageLinks, use wfmsghtml for seperator (brion)
2006-02-14 21:20:38 +00:00
River Tarnell
e603747352
hooks for shared new talk notifications
2006-02-14 21:10:31 +00:00
Brion Vibber
d8261b3970
* Blocking some Unicode whitespace characters in usernames. Should check
...
if some or all should be blocked from all page titles.
2006-02-13 07:29:27 +00:00
Tim Starling
3e74cd1359
Allow cookies to be shared between multiple wikis with a shared user database.
2006-02-11 07:41:31 +00:00
Tim Starling
742ab02669
Feature karma: removing a useless feature that I recently committed.
2006-01-31 04:10:01 +00:00
Tim Starling
304fa750a8
Added $wgInvisibleGroups, to hide groups from Special:Listusers
2006-01-25 12:01:26 +00:00
Erik Moeller
c6596a861f
$value never initialized, I presume $val is meant
2006-01-17 00:51:09 +00:00
Ævar Arnfjörð Bjarmason
47bfff1bd8
* New function: User::getBoolOption() that wraps User::getOption, casts its
...
output to bool and returns it
* Documentation: Documented User::getBoolOption() and User::getOption()
2006-01-08 03:40:48 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Tim Starling
d736a6af69
removed useless line
2006-01-07 00:37:35 +00:00
Rob Church
a54b50803a
Fix a comment glitch and add one that's missing
2006-01-03 15:58:14 +00:00
Brion Vibber
0f3e2091d1
* Remove unused OutputPage::addCookie()
...
* Set cookies to secure mode based on use of HTTPS or $wgCookieSecure
Note; this currently doesn't override the session cookie params. Set separately
2005-12-26 10:29:22 +00:00
Brion Vibber
e69ea9b6d2
* Added 'PageRenderingHash' hook for changing the parser cache hash key
...
from an extension that changes rendering based on nonstandard options.
2005-12-25 11:04:40 +00:00
Brion Vibber
6ca6524664
* Fix autoconfirm check for old accounts
2005-12-23 01:27:27 +00:00
Brion Vibber
a35fcb0bed
* (bug 1735) Revamped protection interface
...
* (bug 675) Add page protection level for unregistered/new accounts
* User::isNewbie now uses the registration date and $wgAutoconfirmAge
* Log views show message when no matches
2005-12-22 05:41:06 +00:00
Ævar Arnfjörð Bjarmason
7a4f7c9b36
* Make User::isAllowed return true if passed an empty string
2005-12-21 05:15:26 +00:00
Brion Vibber
10dbba6ea3
* Upgrade old skin preferences properly at Special:Preferences
...
(used to spontaneously switch to Classic skin for old numeric pref records)
This one keeps biting me when I log in on wikis I haven't been to in a year
or two, then change prefs.
2005-12-19 23:36:43 +00:00
Brion Vibber
5cfddf9a82
* (bug 3407) Fix encoding of subject and from/to headers on notification
...
mails; userMailer() now takes a MailAddress wrapper object instead of
a raw string to abstract things a level.
2005-12-12 06:04:45 +00:00
Ævar Arnfjörð Bjarmason
380a6661a1
* Implemented a cache for User::getMaxID()
2005-12-09 15:28:57 +00:00
Brion Vibber
d815ca352f
* (bug 4201) Fix user-talk mode for Enotif, and general code cleanup
...
- treat NULL properly in watchlist lookup for notification sending
- consolidate a lot of ugly code that fiddles in those tables
- use user_newtalk consistently in enotif mode; watchlist for email notifications, user_newtalk for on-screen message and status check
- clean up handling of other peoples' user_talk pages when in the talk-only limited enotif: only your own will get sent, not other people watching your page
- and others watching your page _will_ work in watchable enotif mode
- add a watch on page + talk page consistently for the auto-add of the user talk page, not just half the page
- don't unwatch the user talk page on view! that's just wacky
- removed UserTalkUpdate, now redundant
- have User::setNewTalk() apply immediately
- clear newtalk from User::clearNotification() and User::clearAllNotifications()
2005-12-07 11:52:34 +00:00
Tim Starling
e3a3e9bafc
Lazy initialisation of wgProxyList
2005-12-06 13:29:07 +00:00
Antoine Musso
2ca68a256d
Clean up unused globals!
2005-12-04 18:27:59 +00:00
Tim Starling
55671d7040
Faster IP blocks. Requires schema change.
2005-12-01 10:37:47 +00:00
Brion Vibber
a0f70f4f02
* (bug 4071) Generate passwords long enough for $wgMinimalPasswordLength
...
Patch by Sven Klemm, http://bugzilla.wikimedia.org/attachment.cgi?id=1104&action=view
2005-12-01 08:15:08 +00:00