Commit graph

179 commits

Author SHA1 Message Date
Brion Vibber
d3d587dac6 Remove useless reference markers which aren't used anyway 2006-06-27 22:55:15 +00:00
Brion Vibber
908c51e127 Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
Greg Sabino Mullane
ef89ec541c Add concept of a distinct port separate from a server.
Add some functions to DatabasePostgres.php.
2006-06-27 15:37:35 +00:00
Domas Mituzas
a07dac02fd oops, better skip i/o thread states :) 2006-06-21 16:47:15 +00:00
Domas Mituzas
6e1a263279 fix lag detection - do not assume that second 'system user' line gives that value, better use first system user thread with db selected. 2006-06-21 16:34:56 +00:00
Tim Starling
af4cfa71c0 Changed transaction semantics: made begin() and commit() work all the time and not be broken and counterintuitive. Also fixed a minor bug in ResultWrapper. 2006-06-18 12:30:57 +00:00
Tim Starling
2d03f52598 removed obsolete function 2006-06-07 04:17:51 +00:00
Tim Starling
410986abf8 Some initial work on exceptions. More to follow. 2006-06-06 23:07:26 +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
a9464cea87 Versioncruft: remove a check for PHP 4.1 workaround, no longer needed 2006-05-23 20:49:30 +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
bc14eb8045 Replacing var keyword with private / public as we now require PHP5. 2006-05-11 19:10:41 +00:00
Antoine Musso
473cd5cbcc unused variables as per #3692 2006-05-01 10:53:59 +00:00
Yuri Astrakhan
1fa6bb29b5 added isnumeric check to limitResult() to prevent a possible sql injection. 2006-05-01 05:20:52 +00:00
Yuri Astrakhan
66081c6692 Database.php:
* Proper handling of LIST_OR in makeList()
LinkBatch.php:
* Added isEmpty() and getSize() functions.
Query.php:
* Implemented double-redirects query (disabled until caching is done)
* Implemented backlinks query.
* Rewrote page info generator to allow both titles and pageIds to be specified.
* Security check for read-access.
* Output filtering prevents exposure of the internal data.
* Added transactional consistency (not sure its needed here)
2006-04-22 02:12:59 +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
Tim Starling
56072f6e05 How many bits in a byte again? 2006-04-16 06:41:29 +00:00
Tim Starling
766cc8e633 attempting to fix lag detection again 2006-04-16 06:36:57 +00:00
Brion Vibber
3c9cf267a1 * (bug 385) Installer support for PostgreSQL, fixes for PG compatibility
Applied from: http://bugzilla.wikimedia.org/attachment.cgi?id=1517&action=view
I haven't tested it with PG personally yet, but it doesn't appear to interfere with other functionality.
2006-04-12 08:15:28 +00:00
Tim Starling
9622c428fa Support more select options 2006-04-11 14:49:31 +00:00
Brion Vibber
e9be909141 * (bug 5195) rebuildrecentchanges.php works again; Database::insertSelect now has a parameter for select options. 2006-04-04 06:06:36 +00:00
Brion Vibber
afc2a70502 * Added $wgColorErrors: if set, database error messages will be highlighted when running command-line scripts in a Unix terminal. 2006-04-04 05:53:21 +00:00
Brion Vibber
f5dfb066ba Live fix: code typo in lag checks 2006-04-02 03:57:33 +00:00
Tim Starling
bad435556d Optionally use a different profile name for master queries 2006-03-28 05:11:40 +00:00
Tim Starling
2fc68d9bd7 documentation 2006-03-28 04:52:05 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Tim Starling
35438cbe91 options to insertSelect(), indenting 2006-02-12 02:20:32 +00:00
Tim Starling
31487e5784 removed misfeature (ignore writes while in read only mode): more trouble than it's worth 2006-01-17 16:16:43 +00:00
Tim Starling
0996a43a27 oops, bug in untested error branch 2006-01-17 12:14:27 +00:00
Tim Starling
cf4f3da185 Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
Tim Starling
c9253061f2 Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter 2006-01-17 08:40:16 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
ed5ed599a0 * Remove obsolete killthread.php 2006-01-14 02:37:55 +00:00
Domas Mituzas
44ab92339b miliseconds...
* Do not check master lag
* check just thread counts on SHOW STATUS, less bits on wire, less rows to handle for php
2006-01-10 10:59:09 +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
2084c1432e Ignore negative lag 2006-01-04 22:45:55 +00:00
Tim Starling
81217f55a0 * Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Brion Vibber
6d7f0d100f * Fix raw sitenotice display on database error 2005-12-22 06:30:39 +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
Ævar Arnfjörð Bjarmason
c2f8e2604a * Typo: $dbname => $dbName 2005-12-01 07:00:11 +00:00
Domas Mituzas
678a225167 move function name comment from start of query string to a next whitespace
simply makes query cache work ;-D
2005-11-12 16:17:01 +00:00
Tim Starling
af47b8260c Ability to set the blobs table name for any server in an external cluster. This would allow, for example, the merging of all external storage for a large wikipedia dump into a single database, with "clusters" distinguished by table name. 2005-10-29 01:41:36 +00:00
Tim Starling
5ef53bb049 Give informative connection errors more often 2005-10-28 01:08:49 +00:00
Brion Vibber
10eab6d489 * (bug 3786) Experimental support for MySQL 4.1/5.0 utf8 charset mode
NOTE: Enabling this may break existing wikis, and still doesn't
  work for all Unicode characters due to MySQL limitations.

The $wgDBmysql5 option will run 'SET NAMES utf8' on connection to the
server so it knows we're speaking UTF-8 to it; switching it on/off
can cause interpretation of non-blob columns to change depending
on the charset options set on the server.
2005-10-26 01:45:23 +00:00
Brion Vibber
219094eb01 Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
Tom Gilder
4d1bc8009e "$wgSitename is offline" is a bit harsh if it's just a one-off glitch, change to "has a problem" 2005-10-10 18:02:50 +00:00
Tom Gilder
849028aeff Even better: use the site name and logo to look all pretty whilst buggered, like a cheap whore with too much makeup 2005-10-06 03:24:02 +00:00