Commit graph

52 commits

Author SHA1 Message Date
Brion Vibber
b603401c08 More doc comment fiddling 2004-10-28 06:05:22 +00:00
Antoine Musso
28ea816fba Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at http://bugzilla.wikipedia.org/show_bug.cgi?id=767 2004-10-24 19:14:48 +00:00
Tim Starling
412eda0517 Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php 2004-10-24 07:10:33 +00:00
Brion Vibber
8a70a3f4d3 Reduce dependence on $wgOut global in the difference formatter; just buffer up the output and give it to $wgOut in a lump.
Also added DifferenceEngine::getDiff() so you can get a diff without sending it to $wgOut.
2004-10-09 02:53:11 +00:00
Brion Vibber
88e274b346 XHTML fix: escape links put into HTML 2004-10-03 01:45:45 +00:00
Jens Frank
c03d9ab67b Add previous/next links to old revision pages 2004-10-02 21:36:36 +00:00
Jens Frank
186f6c4d5e Moved 'get previous/next revision' code from DifferenceEngine to Title' 2004-10-02 19:49:54 +00:00
Brion Vibber
332a0cf268 Back out kturner's old table restructure for now.
This will require downtiime on upgrade, so we're not going to do it until we have a better idea of the cost and can make all necessary changes at once to minimize it.
2004-09-26 19:49:44 +00:00
River Tarnell
705c7680fc remove old_namespace and old_title from old table. 2004-09-26 14:43:12 +00:00
Zheng Zhu
f84493db51 First batch of files modified to switch wgLang to wgContLang. 2004-09-24 13:14:52 +00:00
Tim Starling
29bae1fd56 better debug info 2004-09-11 09:41:42 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Arne Heizmann
b417a82c1a Oops. Don't double-escape this. 2004-08-30 23:45:05 +00:00
Arne Heizmann
e037d70026 comment was incomplete 2004-08-30 23:23:10 +00:00
Arne Heizmann
d58b0d43f3 Re-insert my changes to the Diff engine that make it so that the original text is diffed
and only HTML-escaped on output. JeLuF was seeing unescaped HTML because he had
$wgUseExternalDiffEngine turned on; hence, this commit makes it so that pre-escaped text is
sent to such an external engine just as before. Also fixes indentation and readability
issues, adds a few comments, and removes trailing whitespace in only 4(!) lines. :)
2004-08-30 23:17:04 +00:00
Jens Frank
644f1d9067 BUG#244 Backed out changes done in Patch 1.33 due to major
security problems. HTML tags were not escaped and it was possible to execute arbitrary javascript code
2004-08-29 19:07:18 +00:00
Jens Frank
8444069f2b Fix handling of oldest revision with diff-links from the user contributions.
ENH#228 Have next/previous links in diffs.
2004-08-29 18:13:23 +00:00
Jens Frank
79303cd93a ENH#59 Provide a (diff) link in Special:Contributions
Does not look up the next old revision for every change but links to pseudo-revision 'prev'.
DifferenceEngine looks up the previous revision if user requests a specific diff.
2004-08-28 23:00:04 +00:00
Arne Heizmann
2a56d619e2 instead of HTML-escaping everything and then creating a diff of it, diff the original
text and HTML-escape each bit when we actually output it. Fixes
http://bugzilla.wikipedia.org/show_bug.cgi?id=216 in a non-hacky way.
2004-08-28 21:37:56 +00:00
Arne Heizmann
487722221b make "Revision as of [time] [date]" link to the relevant revision 2004-08-28 19:08:17 +00:00
Brion Vibber
82571fa72d Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
and use it in a few places where user names, images, or messages are being
used to create titles.
2004-08-22 23:55:36 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Arne Heizmann
52bb460dc4 If you really must have a useless $wgUseRCPatrol option, might as well use it
consistently everywhere to ensure that setting it to 0 actually does disable the
feature.  Also, tell the user that it is disabled if they happen to follow a link
with &action=markpatrolled in it.  Additionally, make &action=markpatrolled say
"log in required" if the user is not logged in.
2004-08-09 23:30:02 +00:00
Jens Frank
ede710c2c2 Make RC patroling an optional feature that can be turned off by setting wgUseRCPatrol to false.
Enabled by default
2004-08-09 18:58:43 +00:00
Arne Heizmann
075396a961 New feature: Recent Changes Patrol. All edits and new pages are now highlighted on
Special:Recentchanges and Special:Newpages until someone "marks" them as
"patrolled" using a special link. For new pages, this link appears at the bottom
of the article if the link in Recent Changes or New Pages is followed. For all
other edits, this link appears only in the diff and only if the diff link is
followed from Recent Changes. (Might need to add this functionality to Watchlist
too; haven't done that yet.)
2004-08-09 05:38:11 +00:00
Jens Frank
61c6f0b223 Integrated C++ wikidiff engine. Enable by setting wgUseExternalDiffEngine to true.
Needs wikidiff module from the extensions package and SWIG to compile.
2004-08-08 02:20:00 +00:00
Brion Vibber
66cd1734c5 Switch literal \xA0 for unicode-friendly   2004-08-02 01:38:54 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Gabriel Wicke
0c16f4bc90 more cssification of diff rendering, some " -> ' in diff engine 2004-06-12 01:24:10 +00:00
Brion Vibber
6ee4547539 Remove damage to diffs 2004-06-11 23:28:50 +00:00
Domas Mituzas
c0e96b9152 table name old->"old" for PG 2004-06-11 14:46:25 +00:00
Domas Mituzas
9cac06d2cc Remove 'USE INDEX' for non-mysql 2004-06-09 16:14:41 +00:00
Tim Starling
c20c05d91f profiling bracket around main entry point 2004-06-06 14:23:04 +00:00
Brion Vibber
34ceac3add Whitelist and diff fixes:
* Enforce whitelist on oldid and diff specifiers (bug 950911)
* Show the titles given for oldid and diff if they differ (UI change related to bug 622636)
* Use canonical text form in $wgWhitelistRead
2004-05-11 09:47:41 +00:00
Brion Vibber
3c736bf807 Well-formedness error 2004-04-22 09:03:21 +00:00
Tim Starling
5f4c1f24e5 Edit summary in diff header, written by Angela 2004-04-17 07:37:55 +00:00
Erik Moeller
9cd97d0197 use CSS for formatting diffs 2004-04-12 18:07:19 +00:00
Brion Vibber
fe5ff59ad6 XHTML fixes. 2004-04-09 01:37:41 +00:00
Brion Vibber
3d2a067e8c HTML tweaks inching towards XHTML-friendly output. To test:
$wgMimeType = "text/xml";
	$wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
	$wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";

Mozilla will spit out angry erorrs at all the well-formedness errors.
2004-04-03 10:01:08 +00:00
Tim Starling
e44fec8359 restored width=98%, like I already did with the top table 2004-04-03 05:57:38 +00:00
Gabriel Wicke
7939db9786 minor xhtml tweaks 2004-03-22 23:53:20 +00:00
Tim Starling
ee73b49007 Split parser from OutputPage into Parser.php, corrected spelling of "suppress", a few other bits and pieces 2004-02-26 13:37:26 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
a12ffe0cea Bug fixes: watchlist and recent changes linked were broken in the last commit 2004-01-17 09:49:43 +00:00
Tim Starling
3c96949682 * Recent Changes improvements: object oriented back end, move page annotation and (untested) message queue feed.
* Misc. bugs fixed in DatabaseFunctions.php and Skin.php.
* install-utils, install and update utilise Database objects instead of handling their own connections
* schema change for RC improvement -- added rc_type, rc_moved_to_title and rc_moved_to_ns
2004-01-17 05:49:39 +00:00
Erik Moeller
9e49c0c168 Changed function/variable name "final" to "closing" because "final" is a
keyword in PHP5
2004-01-15 09:27:12 +00:00
Brion Vibber
57d8f4b737 Start support for compressing entries in the old table with gzdeflate.
Adds compressOld.php to batch-compress existing entries.
Article::getRevisionText will do decompression on a given row if
necessary (marked by old_flags). Requires zlib.
2004-01-03 12:32:32 +00:00
Brion Vibber
d9e0d33363 Use wfMsg()'s parameters 2003-11-15 14:21:29 +00:00