Commit graph

460 commits

Author SHA1 Message Date
Brion Vibber
5127e19626 Revert r41352-41355, r41362-41363: unauthorized schema change breaks parser tests 2008-09-30 00:07:04 +00:00
Matt Johnston
cf0521a6b0 Fix r41248 (bug 8440) - Default should be 1 to allow for previous behaviour to continue. 2008-09-29 23:16:34 +00:00
Victor Vasiliev
bd915073f9 * Fix caching
* Fix messages
2008-09-28 19:34:14 +00:00
Victor Vasiliev
bec6903108 * (bug 674) Allow users to be blocked from editing a specific article
** Also supports blocking user from editing whole namespace
* Replace ugly ipboptions parsing code in Title.php with a simple message

Requires schema change (I showed it to Tim Starling).
2008-09-28 16:08:18 +00:00
Aaron Schulz
047a74e175 Remove validation step that removes prefix if validation is off (for bug 12654) 2008-09-28 01:41:59 +00:00
Matt Johnston
08e561abb9 (bug 8440) Allow preventing blocked users from editing their talk pages
* Adds database field to ipblocks table, ipb_allow_usertalk, storing whether or not the user can edit their own talk page. Defaults to 0 to coincide with the default value of $wgBlockAllowsUTEdit.
* Recommended to update all current blocks to have a allow_usertalk value of whatever the current setting is
* Retasks $wgBlockAllowsUTEdit to be the default value of the field in the blocking screen - unless a sysop changes the checkbox, will use whatever that variable is set to.
2008-09-25 11:45:26 +00:00
Tim Starling
6f6d09b0e4 Fix docs for r41150, remove commented-out code, remove superfluous brackets in "new" expressions. 2008-09-24 08:46:18 +00:00
Aaron Schulz
9f5955b76b Apply account creation blocks to users (bug 13611) 2008-09-22 13:21:53 +00:00
Tim Starling
68d860de56 Fix fatal error, addNewUserLogEntryAutoCreate is invoked non-statically from CentralAuth and uses $this 2008-09-20 05:32:30 +00:00
Tim Starling
2c383293c6 Remove rage, looks unprofessional. 2008-09-20 03:49:48 +00:00
Aaron Schulz
56011425fd Clean up inDnsBlacklist() 2008-09-19 11:42:24 +00:00
Alexandre Emsenhuber
b7d18e82a5 Fix for r40937 (and per talk with brion): merge the RenderHash extension in core 2008-09-17 18:36:49 +00:00
Andrew Garrett
ddee87204e Work around misconfiguration by requiring strict comparisons for in_array in User::isAllowed(). See wikitech-l. 2008-09-17 07:26:34 +00:00
Fran Rogers
a4d2cca85c Reverted r40771 for now - causes problems with CentralAuth 2008-09-15 05:04:16 +00:00
Fran Rogers
48f283a1ae #15577: Moved spreading of autoblocks from User::isBlocked() et al to ::setCookies() and (if the session doesn't exist, but token cookie does) ::loadFromSession(). Autoblocks will now be spread predictably at the beginning of a session, instead of at random points as a side effect of testing for blocks. 2008-09-13 05:48:11 +00:00
Aaron Schulz
e8215b27e4 Add newuser log to core 2008-09-13 00:29:33 +00:00
Chad Horohoe
a469f0dae1 Self-revert 40530, 40531. Too many things still depend on $_GET and $_POST. Needs more cleanup before this can be put in place. 2008-09-08 13:48:07 +00:00
Chad Horohoe
40618e0c3e * Add getCookie() method to WebRequest as a wrapper for $_COOKIE. Updated all instances of $_COOKIE to use this.
* Switch from running fix_magic_quotes() on $_COOKIE and $_GET/$_POST to running it on $this->cookies and $this->data. Should keep us from interfering with other programs that might do the same (and/or trying to start up a second WebRequest object). This partially fixes bug 11558.
* Todo: Do similar things with $_SERVER/$_ENV and switch to a lazy-load style, rather than on every new WebRequest.
2008-09-06 12:38:34 +00:00
Tim Starling
9e103d3dc3 Reverting r40323, as per comments on wikitech-l. Deprecated doesn't mean removed. It doesn't even mean it'll be removed in the future. It just means you shouldn't use it. 2008-09-03 02:28:41 +00:00
Chad Horohoe
85eee307b2 Fully deprecate $wgProxyKey. Has been marked as deprecated since 1.4, but never seems to have been done. Sites with $wgProxyKey set will continue to use the setting (added a fallback in Setup). Fixes bugs 9258 and 12089. 2008-09-02 15:15:54 +00:00
Tim Starling
0ff36b8d71 * Generalised OutputPage::checkLastModified() to allow it to easily handle more than three types of modified timestamp. Added OutputPageCheckLastModified hook.
* Flattened out the structure of that function with early returns, to avoid ugly deep nesting.
2008-08-29 08:40:13 +00:00
Victor Vasiliev
17f2dccf89 Add siteadmin to core rights list. 2008-08-25 10:32:11 +00:00
Fran Rogers
797c7653cf More Doxygen alias fixes; these aliases should be consistent enough to use all over now :) 2008-08-21 08:39:31 +00:00
Brion Vibber
6c20b684a7 Revert r39582 "(bug 12518) Interwiki userrights now reflects remote groups, not local groups."
This won't actually work -- it checks the InitialiseSettings.php conf array for $wgGroupPermissions, but we don't set $wgGroupPermissions individually for every wiki. We use a system of several override variables which get applied in CommonSettings.php onto the default template.
2008-08-19 17:40:00 +00:00
Siebrand Mazeland
2b37d013fb Fix for r39314 (adding the new toggles to $mToggles in User.php) 2008-08-18 13:26:46 +00:00
Andrew Garrett
cf604ade6c (bug 12518) Interwiki userrights now reflects remote groups, not local groups. 2008-08-18 12:41:57 +00:00
Chad Horohoe
98c86aa7ff * Bug 12976: Use $WebResponse->setCookie() rather than raw setcookie() calls.
* Moved all of the debugging/logic to WebResponse so it can be properly used elsewhere.
* A bit of cleanup so cookies set by $wgUser->setCookie() use $wgCookiePath as they should.
* Bug 14887: $wgEnablePersistentCookies has been added to allow for disabling of persistent cookies.
2008-08-15 01:54:59 +00:00
Shinjiman
8d06ad6ee3 * Added $wgDisableTitleConversion to disabling the conversion for all pages on the wiki (this one is useful for some wikis that do not need the title conversion for the entire wiki like Wiktionary)
* Added 'noconvertlink' toogle that can be set per user preferences, also added 'convertlink=no|yes' on GET requests whether have the link titles being converted or not
  patches by PhiLiP
2008-08-07 14:26:34 +00:00
Fran Rogers
2bf24df984 Non-crap version of r38753 - sorry about that ._. 2008-08-07 10:43:36 +00:00
Tim Starling
73554ed829 Changes for NewUserMessage:
* Add UserGetReservedNames hook to allow extensions to define reserved names without loading messages at setup
* Don't try to notify nonexistent, non-IP users by inserting a username into the user_newtalk.user_ip field. It doesn't work.
2008-08-07 10:39:19 +00:00
Raimond Spekking
5bf3effef8 Revert r38753 - crap diff... 2008-08-07 09:34:42 +00:00
Fran Rogers
71133a3d92 Finishing touches on User.php documentation 2008-08-07 08:22:37 +00:00
Fran Rogers
f1cffbb133 Fix Doxyfile aliases, now that doxygen has wisen fwom its gwave 2008-08-06 05:24:57 +00:00
Fran Rogers
956033d093 Documented User.php in depth; added useful aliases to Doxyfile 2008-08-05 13:42:02 +00:00
Brion Vibber
5e7e940726 Update for r38533 -- avoid notice spew from groups that have no record for the perm 2008-08-05 05:12:59 +00:00
Chad Horohoe
9a0dcbf44d Reimplement User::, now with less crappy name and only taking one permission at a time. :) 2008-08-04 05:14:33 +00:00
Brion Vibber
0005a06927 Revert r38427 "Create User::getGroupsInRoles(). Given an array of roles (edit, read, delete), return the groups allowed to do each."
This seems a bit odd; the name is certainly confusing -- getGroupsWithPermissions() would be clearer, but I'm not really sure I see why it's given an arbitrary-length list here (vs a simpler single check which can simply be run multiple times).
2008-08-04 03:45:22 +00:00
Chad Horohoe
556afd34eb Create User::getGroupsInRoles(). Given an array of roles (edit, read, delete), return the groups allowed to do each. 2008-08-02 12:42:51 +00:00
Tim Starling
5ad5cb4f0a * (bug 4578) Automatically fix redirects broken by a page move. Works via the job queue, controllable by a checkbox on Special:Movepage.
* Renamed some excessively short variables in SpecialMovepage.php
* Allow $wgReservedUsernames to be localised using "msg:..." syntax
2008-07-22 22:44:34 +00:00
Alexandre Emsenhuber
ab89e683a4 * Fixed some Doxygen warnings
* Removed unused global declaration of $wgOut in AjaxFunctions.php
2008-06-27 10:24:00 +00:00
Andrew Garrett
50aa4c3860 Add noratelimit right to list of core rights, was missing. 2008-06-22 11:30:42 +00:00
Aaron Schulz
8bd6a73d40 Loosen ipv4 check back, this really should be called isLikeIP() 2008-06-19 06:14:53 +00:00
Aaron Schulz
0e34e7a494 Remove ugly IP code duplication 2008-06-18 18:10:11 +00:00
Alexandre Emsenhuber
2b8a1bb77e Some more tweaks to Special:Recentchanges:
* Made User::getDefaultOption() static
* Do not breaks wikis whitout any changes
* fixed E_NOTICE: undefined variable SpecialRecentchanges::$par in SpecialRecentchanges::setup()
2008-06-17 10:44:12 +00:00
Brion Vibber
36ad2b73c4 Revert r36093 (bug 14404).
Regressions caused by this:
"Use an anonymous user to get the parser options and the parser cache key, thus wikitext rendering is not depending of some sepcific user options such as lang, ..."

User-specific options such as stub threshold were still applying in the parser, but not taken into account in the parser hash key. As a result, the caches were corrupt, saving different options into the anonymous-default options cache.
2008-06-11 02:51:30 +00:00
Raimond Spekking
878def44a0 Support plural for 'passwordtooshort' 2008-06-10 10:32:05 +00:00
Alexandre Emsenhuber
53668e3143 Some tweaks to the {{int:...}} parser function:
* Respect the language given with parser options
* Replace parameters before expanding its own templates/functions, like $wgOut->addWikiMsg() does
* (bug 14404) Force content language when parsing the text to pass to LinksUpdate

And some tweaks at save time:
* Use an anonymous user to get the parser options and the parser cache key, thus wikitext rendering is not depending of some sepcific user options such as lang, ...
* Same for the refresh link job
2008-06-09 17:57:18 +00:00
Brion Vibber
64b982ada4 * (bug 14424) Fix regression in $wgRateLimitsExcludedGroups support
Fixes logic error introduced in r35908.
2008-06-06 15:53:49 +00:00
Tim Starling
461a770a6f * Changed password hash format, see wikitech-l
* Made the PasswordReset and Maintenance extensions, and maintenance/changePassword.php work with CentralAuth, by calling User::setPassword() instead of updating the database directly. They work now even if you use an object cache.
* Don't automatically log in as the user in question when CentralAuthUser::setPassword() is called, it's kind of uncool when an administrator is setting the password of another user.
* Fix bug 14330 by setting the local passwords on demerge
2008-06-05 12:58:02 +00:00
Chad Horohoe
49f0b5bffa (bug 12859) Deprecate $wgRateLimitsExcludedGroups in favor of adding the 'noratelimit' user right. Doing it properly this time, so old functionality is still intact. 2008-06-05 04:15:10 +00:00