Commit graph

344 commits

Author SHA1 Message Date
Tim Starling
164bb322f2 Basic integrated audio/video support, with Ogg implementation.
* JavaScript video player based loosely on Greg Maxwell's player
* Image page text snippet customisation
* Abstraction of transform parameters in the parser. Introduced Linker::makeImageLink2().
* Made canRender(), mustRender() depend on file, not just on handler. Moved width=0, height=0 checking to ImageHandler::canRender(), since audio streams have width=height=0 but should be rendered.

Also:
* Automatic upgrade for oldimage rows on image page view, allows media handler selection based on oi_*_mime
* oi_*_mime unconditionally referenced, REQUIRES SCHEMA UPGRADE
* Don't destroy file info for missing files on upgrade
* Simple, centralised extension message file handling
* Made MessageCache::loadAllMessages non-static, optimised for repeated-call case due to abuse in User.php
* Support for lightweight parser output hooks, with callback whitelist for security
* Moved Linker::formatSize() to Language, to join the new formatTimePeriod() and formatBitrate()
* Introduced MagicWordArray, regex capture trick requires that magic word IDs DO NOT CONTAIN HYPHENS.
2007-08-15 10:50:09 +00:00
Rob Church
7f177a5fe9 Tweak confusing comment for User::whoIsReal() 2007-08-14 01:17:08 +00:00
Rob Church
5c9be75df6 Tweak comment, "usable" is the purpose of this method, it's just confusing otherwise 2007-08-13 17:49:40 +00:00
Rob Church
03ef70741d * (bug 10859) Introduce 'UserGetImplicitGroups' hook; see docs/hooks.txt for more information
* Move the list of implicit groups in User::getAllGroups() to a new User::getImplicitGroups() method so there's no confusion over where to add these
2007-08-09 16:36:15 +00:00
Aryeh Gregor
5ac50ed94d Optimize User::getID() for special cases, and User::isLoggedIn() generally (the latter seems to have always required a database query in the past, when in fact it never should). 2007-07-23 19:39:53 +00:00
Rob Church
3811372d73 Introduce 'UserGetRights' hook; see docs/hooks.txt for more information 2007-07-21 01:00:42 +00:00
Rob Church
396524f674 Pass the user as an argument to 'isValidPassword' hook callbacks; see docs/hooks.txt for more information 2007-07-17 22:30:52 +00:00
Rob Church
b41b5d0547 Fix 2007-07-17 16:52:55 +00:00
Rob Church
e9aa9d20b9 * Clean up User::isValidPassword()
* Document 'isValidPassword' hook
2007-07-17 16:44:40 +00:00
Nick Jenkins
d466cf6e86 A few comment tag tweaks. 2007-07-11 08:09:21 +00:00
Rob Church
3eb2f669d6 Ditch redundant trim-and-length check 2007-07-10 15:08:48 +00:00
Tim Starling
9b9682904e Display a distinctive message when the edit token suffix is mangled. On report of widespread bot breakage, due to adding "+". 2007-07-01 22:22:16 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Rob Church
32a7750855 * Introduce 'UserEffectiveGroups' hook; see docs/hooks.txt for more information
* Add User::getRegistration() accessor
2007-06-27 14:32:31 +00:00
Tim Starling
47cf9cbe63 When you log in from cookie, make the session valid for login as well. Not sure what the point of it is otherwise. Necessary for BoardVote session transfer stuff. 2007-06-26 20:40:02 +00:00
Tim Starling
0b68a403d7 * Make $wgUser->editToken() work for either logged-in or logged-out users.
* Fix escaping of edit tokens, removed FIXME note.
* Added + to EDIT_TOKEN_SUFFIX on report of broken proxy from mutante
* Two random minor changes
2007-06-23 10:15:10 +00:00
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