Commit graph

328 commits

Author SHA1 Message Date
Daniel Cannon
7d3eb4accd (bug 7997) Added ability to Special:Blockip to block users from using Special:Emailuser. 2007-06-07 17:31:08 +00:00
Rob Church
e424d8dc69 (bug 9813) Reject usernames containing '#' to avoid silent truncation of fragments during the normalisation process
This adds an explicit check to User::getCanonicalName() which is required to run before title normalisation, since it's too late once that's been done. This won't affect existing accounts.
2007-05-19 19:55:57 +00:00
Tim Starling
4a35dbd30e Replace spaces with underscores in parser cache rendering hash. Caused a bug where people with ISO 8601 date format had a non-functional parser cache 2007-05-05 18:08:25 +00:00
Aaron Schulz
cd4d9d6c0d *only sanitize IPs, preserve mName 2007-04-27 13:03:42 +00:00
Brion Vibber
1dbaeb19dd * (bug 3348) Some additional weak password checks: password which is same as username will now be rejected.
There are some UI issues still with handling of bad/weak passwords. It's not too clear to the legit user who tries to log in again. There's also some bad behavior on the create account form; short or bad passwords just give an exception backtrace. Nice. :) But that's existing problems...
2007-04-26 21:45:11 +00:00
Brion Vibber
7cf4ba8e8a Correct test which was reversed in r20158 2007-04-26 20:51:31 +00:00
Antoine Musso
861b66021b Method User::loadFromSession() is private. If you want to create a user
object from a session, use the static method User::newFromSession().
2007-04-25 20:00:18 +00:00
Nick Jenkins
bd23ec29c6 Doc tweaks:
* Seems like an opportune time to introduce "@addtogroup Media" documentation tags.
* Merge "@addtogroup Metadata" (used by Exif.php) into "@addtogroup Media".
* Few more moving comment blocks to above classes.
2007-04-24 06:53:31 +00:00
Nick Jenkins
f9619da3f0 Yet more doc tweaks:
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00
Rob Church
66fbffe0d1 whoops... 2007-04-11 10:00:32 +00:00
Rob Church
f87ac721eb * (bug 9554) Extension-provided group name messages not used
* Clean up SpecialListusers::formatRow() a bit, make group link building a touch more efficient
2007-04-11 01:59:32 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Brion Vibber
3a6ac5a3c3 Revert r20769: we don't use PHPDocumentor anymore, we use doxygen.
If making mass changes to tweak to its preferences, probably better to do it for the tool we actually generate docs with. :)
2007-03-28 14:16:43 +00:00
Nick Jenkins
5fef2333d4 PHPDocumentor [http://en.wikipedia.org/wiki/PhpDocumentor] documentation tweaking stuff.
Minor doc tweaks to prevent some PHPDocumentor warnings or errors when run on the includes/ directory. PHPDocumentor uses a syntax very similar to javadoc - mostly we already use this, but there were a few scattered places that were adjusted to make them consistent with the rest of the code. In practical terms, these changes were made:
* @url becomes @link
* @fixme becomes @todo
* HTML tags in descriptions must be closed / balanced.
* @bug was removed (where the bug was long fixed), or changed into a @todo (in the few situations where the bug was still pending)
* @obsolete becomes @deprecated
* Things like "/**@{{" and "/**@}}*/" which cause "unknown tag" warnings were removed
* @access must be a valid access level.
* @desc tag not needed, removed.
* Doesn't seem to like @licence, will accept @license however.
* Use full comment block notation in a few places (i.e. open block with "/**", start each line with " *", and end block with " */")

Then additional to this, to get some class docs associated with their respective classes:
* Moved some docs to right above those classes (deleting blank lines, or moving descriptions from the file headers)
* Marked some classes without docs as "@todo document"
* (done up to "class MIMEsearchPage" on the "classtrees_MediaWiki.html" page for the includes/ directory)
2007-03-28 08:53:02 +00:00
Aaron Schulz
4e744eba7c *Clean up IPv6 usernames to avoid title errors 2007-03-14 15:23:52 +00:00
Aaron Schulz
3eef97f50d *Users with hidden names can't edit their talk page 2007-03-14 05:36:47 +00:00
Ryan Lane
32b36bf7dc Adding setInternalPassword(), and changing the behavior of setPassword in User.php.
Adding a check into SpecialUserLogin's initUser() function to only set a password if authentication plugins allow it.
2007-03-09 19:31:52 +00:00
River Tarnell
d617e3b168 Usernames which look like IPv6 addresses should not be allowed 2007-03-08 16:15:51 +00:00
Aryeh Gregor
c254da50e7 YAY FOR PHP GLOBAL HANDLING (and thanks Rob) 2007-03-07 18:06:14 +00:00
Daniel Kinzler
a11c8ea238 prettified for rob 2007-03-07 16:48:28 +00:00
Daniel Kinzler
6ca0d3f32d added hook to isValidPassword (patch by Ger Apeldoorn, Bug 9180) 2007-03-07 11:24:13 +00:00
Aaron Schulz
9d6a7cd12f *use $wgRateLimitsExcludedGroups for account creation (bug 9139) (patch by simetrical) 2007-03-06 04:29:37 +00:00
Nick Jenkins
63d02d637c (bug 8999) User.php gives "undefined user editcount" PHP notice. 2007-02-16 06:54:13 +00:00
Domas Mituzas
86efcb1a31 * store user_editcount inside cached user object
* load editcount together with user.*, avoid multiple queries
-- this removes additional query (or queries)
2007-02-15 14:27:15 +00:00
Nick Jenkins
f88c771756 The war on redundant ampersand usage!
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"

For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.

Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Tim Starling
59fb689746 profiling 2007-01-22 19:19:43 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Niklas Laxström
eed9a3aa46 * Escape page title 2007-01-17 23:44:43 +00:00
Andrew Garrett
f2a8e239c8 Add autoconfirmation by edit count. Users must have existed for more than wgAutoConfirmAge seconds, and have wgAutoConfirmCount edits in order to be considered autoconfirmed. 2007-01-17 10:43:04 +00:00
Leon Weber
29d8097da2 Made User::edits() use user_editcounts. If it has not been initialized, do so. 2007-01-14 01:31:08 +00:00
Ilmari Karonen
7338549d8d (bug 3446) Add user preference to hide page content below diffs, can be
overridden by adding diffonly=1 or diffonly=0 to the URL of the diff page
2007-01-12 03:36:46 +00:00
Domas Mituzas
061ca31a36 someone was lost in type conversion too ;-) 2007-01-12 00:10:49 +00:00
Domas Mituzas
410c50968a I suppose.... someone forgot to uncomment? ;-)
( mcaccess--, dbaccess--)
2007-01-11 23:51:05 +00:00
Antoine Musso
38f208f213 makes function static to fix strict errors in parser tests script. 2007-01-07 18:52:45 +00:00
Brion Vibber
c95ec8d74e * ensure 'MediaWiki default' user is a bot when running batch deletion of mediawiki entries, so they don't clutter up RC
* as paranoia, don't insert a groups record into the database if User::addGroup() ends up run on a non-existing user
2007-01-07 11:21:41 +00:00
Andrew Garrett
b342a81da0 Well there was no problem in the first place. Nice work Werdna 2007-01-07 07:57:54 +00:00
Andrew Garrett
1e975a47b0 Okay brion, this patch actually /works/. Thanks to the miracles of testing, I can now be certain that it does something other than give a PHP warning. 2007-01-07 06:58:21 +00:00
Andrew Garrett
8c49f7ffd9 Fix for r18904 where autoblocker would not correctly block ipblock-exempt users. 2007-01-07 06:21:54 +00:00
Andrew Garrett
9b91d163a2 * (bug 3706) Allow users to be exempted from IP blocks. The ipblock-exempt permission key has been added to enable this behaviour, by default assigned to sysops. 2007-01-07 03:23:31 +00:00
Tim Starling
792eab2c3b Use $wgLang->getCode() rather than $wgUser->getOption('language') in the parser cache rendering hash, since the latter may be overridden by a uselang= parameter in the URL. 2007-01-05 18:10:22 +00:00
Rob Church
ceb9b86359 (bug 8461) Support watching pages on move 2007-01-02 23:37:56 +00:00
Rob Church
727a9fb2ce * (bug 8018) Allow hiding minor edits from the watchlist 2006-12-29 13:48:36 +00:00
Rob Church
c1d5cea711 (bug 6856) User::clearNotification() does not respect read-only mode 2006-12-24 02:52:02 +00:00
Brion Vibber
eb9fc47454 * Initialize user_editcount to 0 instead of NULL for newly created accounts 2006-12-22 23:46:08 +00:00
Rob Church
6be73092db Introduce 'PingLimiter' hook for overriding the result of User::pingLimiter() 2006-12-22 20:21:14 +00:00
Brion Vibber
a83f5fbeae * (bug 8333) Fix quick user data update on login password change on
replication database setups. User data is now pulled from master
  instead of slave in User::loadFromDatabase, ensuring that it is
  fresh and accurate when read and then saved back into cache.
  This was breaking with the Special:Rename operation which
  automatically logs the user in with the new password after changing
  it; pulling from slave meant the record was often not the updated
  one.
2006-12-20 09:09:50 +00:00
Rob Church
1be955f1ba * (bug 5411) Remove autopatrol preference; users who can mark edits patrolled will now have their edits marked as such regardless - per Brion's enthusiasm on the mailing list ;) 2006-12-18 21:39:36 +00:00
Rob Church
941a032df2 * (bug 4488) Support watching pages on deletion; introduces new user preference 2006-12-16 21:36:01 +00:00
Antoine Musso
171945efed User::getOption now accept a default value to override default user values
this makes it consistent with WebRequest::get* methods. Corrected code in
various places accordingly.
2006-12-14 20:28:38 +00:00
Brion Vibber
288a7eb7f1 Going ahead and adding this field while other DB updates are pending.
Interfaces to use it can be added shortly.

* Add user_editcount field to provide data for heuristics on account use.
  Incremented on edit, with lazy initialization from past revision data.
  Can batch-initialize with maintenance/initEditCount.php (not yet friendly
  to replication environments, this will do all accounts in one query).
* Allow raw SQL subsections in Database::update() SET portion as well as
  for WHERE portion. Handy for increments and such.
2006-12-14 13:22:52 +00:00