Commit graph

158 commits

Author SHA1 Message Date
Tim Starling
1773cd1e76 * Introducing bit field for database parameters
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants

* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view

* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()

* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +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
Julian Ostrow
fbdfda2a2f Alters Skin::makeLinkObj() to bypass using linkcache
Adds function OutputPage::parseLinkHolders(), which works in conjunction with the modified Skin::makeLinkObj()
2004-07-18 03:23:11 +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
Tim Starling
4bc7a92c56 profiling operations which end in a redirect 2004-07-10 01:17:37 +00:00
Arne Heizmann
6deed7d83e This commit implements Josh Cogliati's "info" feature (e.g.
http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia&action=info), fixes the page headings
for protect/unprotect, and does a lot of whitespace changes (sorry about that). I've also
fixed confusing indentation somewhere.
2004-07-08 14:53:54 +00:00
Tim Starling
72adcbd659 Show category links in preview 2004-06-19 06:46:54 +00:00
Tim Starling
a7c1948324 Fixed bug causing the script to quietly exit halfway through output(), if run on Windows 2004-06-05 04:22:53 +00:00
Brion Vibber
0c7a11c91b Fix for bug #966376. If POSIX functions are unavailable due to running
on Windows or explicit disabling, use SERVER_NAME to provide a hostname.
This may be a virtual server name.
2004-06-04 17:51:09 +00:00
Gabriel Wicke
0d64e62140 global declaration 2004-06-04 11:17:38 +00:00
Tim Starling
e7ac88064a don't load so much stuff on parser cache hit (experimental) 2004-06-04 10:40:44 +00:00
Tim Starling
f4e839cc2c Server hostname in comment 2004-06-03 09:26:43 +00:00
Gabriel Wicke
0cb5b5e5a7 addLanguageLinks and setLanguageLinks 2004-06-01 18:29:31 +00:00
Jens Frank
3a9b95d4c1 Provide feedback to sysops that their edit triggered the spam filter. No feedback to anons, would someone miss the point. 2004-05-29 07:41:16 +00:00
Tim Starling
de13435a76 fixed database error handling 2004-05-23 05:32:20 +00:00
Gabriel Wicke
91c8c20ed4 we enable squid caching explicitly for pages that support it, mtime check didn't work anymore for some reason 2004-05-20 12:46:31 +00:00
Jens Frank
4a7596429c Add different CardSets for rendering of preferences.
Make SkinPHPTal use the JavaScript based tabbed version, while others stay with the old fieldsets.
2004-05-17 23:18:37 +00:00
Gabriel Wicke
6af7c5ce7b After a longer phone call Erik and me agreed on working on an equivalent feature most likely based on categories that interacts better with caching. More discussion on to follow.
Removed with Erik's agreement.
2004-05-13 14:17:44 +00:00
Erik Moeller
201af52713 restore section folding 2004-05-13 12:20:59 +00:00
Gabriel Wicke
df08e4792a removed section folding 2004-05-13 11:54:19 +00:00
Erik Moeller
472272dc61 New feature:
Automatic or manual collapsing and expanding of long pages.
Pages can be collapsed automatically according to a size threshold
set in the user preferences. Pages can be collapsed manually by clicking
the "Collapse" link in the TOC.

When a page is collapsed, only the intro & TOC are displayed. The
individual TOC lines link to section views, which can be individually edited
(classic section editing).

Section editing/viewing behavior has also been improved. When a section
with subsections is viewed or edited, all subsections are also loaded.

Known issues:
- After saving a section, we return to the full article view
rather than the section view, even if we previously were in section view
mode.
- Should work with Standard and Monobook, not tested with Cologne Blue yet.
- In Monobook, no backlink to the mother article is shown during section
viewing (Gabriel, can you fix that?)
2004-05-12 13:26:36 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Brion Vibber
15ae966951 View source fixes:
* Show textarea with noarticletext msg if the page is empty
* Use wikitext for the readonly message text
* XHTML fixes
2004-04-30 07:18:38 +00:00
Gabriel Wicke
b19e8da69f removed tawrapper 2004-04-29 12:17:33 +00:00
Gabriel Wicke
44bb42ae06 some IE6 textarea tweaks 2004-04-29 10:21:32 +00:00
Brion Vibber
0ffaed11ff Add atom feed <link> when syndication is on.
Fix language marker on Atom feed head element.
Comment out empty dead fields in <author> in atom output.
2004-04-28 06:14:49 +00:00
Gabriel Wicke
b701ecbc2c * use images from style dir
* wgStyleSheetPath -> wgStylePath, wgStyleSheetPath references wgStylePath for backwards compatibility
2004-04-27 12:18:48 +00:00
Brion Vibber
1e3a9f9580 Use the set page title and HTML title in MonoBook skin, which was ignoring
them. Moved the action name appending into Output to work with all skins.
2004-04-25 00:32:24 +00:00
Gabriel Wicke
896ebbf5bd meta tag fixes 2004-04-15 12:27:31 +00:00
Brion Vibber
cffefe592a Fix notice in view source 2004-04-12 04:10:58 +00:00
Brion Vibber
8172d54c36 Skin updates:
* Add 'pagetitle' message to customize the HTML page title format (eg, "$1 - Wikipedia Encyclopedia")
* Some XHTML fixes to Nostalgia skin, prefs
* Removing the unfinished Smarty skins, renamed Standard to Classic
* Remove "gnunote" message in favor of general "copyright" msg, which is filled with the link & name in $wgRightsPage/$wgRightsURL and $wgRightsText
* Support a copyright-related icon as $wgRightsIcon (includes sample gnu-fdl.png)
* Show "Powered by MediaWiki" icon in footer (poweredby_mediawiki_88x31.png by Dan Carlson)
2004-04-11 01:25:00 +00:00
Brion Vibber
b5946f6ee9 Cleanup on Metadata (indentation, escaping of output). Put title attributes
on the Creative Commons and Dublin Core links so they can be identified by
humans in Mozilla's navigation bar. Add a <link rel='copyright'> as well if
$wgRightsPage or $wgRightsUrl is set. Fix metadata links for MonoBook.
Disable Smarty skins.
2004-04-10 11:19:33 +00:00
Brion Vibber
ce3e4422fd Fix HTML to html for validator 2004-04-09 10:15:08 +00:00
Brion Vibber
3746e6806c Include the meta-robots, meta-keywords, and link-RSS tags, and the set MIME
type, in MonoBook output.
2004-04-09 04:53:52 +00:00
Brion Vibber
fe5ff59ad6 XHTML fixes. 2004-04-09 01:37:41 +00:00
Brion Vibber
33821336ba Whitespace & coding standards adjustments to Evan's last commits.
Metadata.php seems to be missing, so the new code doesn't work yet.
2004-04-04 22:33:11 +00:00
Evan Prodromou
22f8c4ce37 Added code to implement Dublin Core and Creative Commons RDF metadata.
If these features are turned on (with global flags), a metadata link tag is
provided to the appropriate action ('dublincore' or 'creativecommons'). When
the wiki script receives these actions, it creates RDF files on the fly.

Also includes two valuable general functions: one to show an HTTP error
(used when the flags are turned off), and one to do content negotiation
(used to determine the MIME type for RDF files).

A helper function is also added to page output to display metadata links.
2004-04-04 21:58:05 +00:00
Brion Vibber
465f9ba5c2 Fix login/logout under XHTML 2004-04-03 10:59:26 +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
867d40cab7 extra $returnto parameter in returnToMain() 2004-04-01 12:44:54 +00:00
Tim Starling
e9aa758d7a Removed dependence on register_globals from everything except the special pages. Fixed miscellaneous bugs. 2004-03-29 14:48:07 +00:00
Tim Starling
23b9a67b7c don't cache error pages 2004-03-23 10:19:31 +00:00
Brion Vibber
339b742275 Printable mode cleanup. Now done through stylesheets, <link>ed so that the
print command on a regular page will actually use the print stylesheet.
Explicitly following the printable link will also show the printable view
on screen.

CAVEATS: IE/Win may oversimplify the link style in what should be colored
or underlined text. Page title is not shown in Nostalgia skin printable
view. Part of the footer is duplicated in the output and will be visible in a styleless
user agent (lynx, really old Netscape, etc). Some render options aren't
totally handled right for printable, such as ? brokenlinks.

Also, section edit links are now available in diff view if the dest rev is
the current revision.

Some misc code clean-up and formatting as well.
2004-03-21 11:28:44 +00:00
Tim Starling
2ca258fd03 * Changed inclusion syntax to allow e.g. {{stub}}
* Split MediaWiki namespace into MediaWiki and Template (requires changes to all language files)
* Purge links to on edit of Template namespace
* General refactoring of purging and cache invalidation code
2004-03-20 15:03:26 +00:00
Magnus Manske
e799a6d83a adding meta keywords 2004-03-20 13:27:08 +00:00
Brion Vibber
dc8ac41724 Autodiscovery <link> for RSS feed. Added helper functions for query stuff:
appendQuery() and escapeAppendQuery() to WebRequest.
2004-03-19 08:05:36 +00:00
Brion Vibber
9729a6d8de Some more RSS syndication work. <author> tags now included; Special:Newpages
includes page text (incomplete); preliminary feed support for Recentchanges;
added RSS feed link next to printable link (incomplete).
2004-03-19 05:31:18 +00:00
Gabriel Wicke
ae87e7ed7e made setSquidMaxage an accessor, default mSquidMaxage = 0 2004-03-13 13:42:17 +00:00
Brion Vibber
b59ce22943 Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
  Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
  Title::getFullUrl() - ditto with $wgServer on the front
  Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
  Title::escapeLocalUrl() - local URL escaped for HTML output
  Title::escapeFullUrl() - full URL escaped for HTML output

All take an optional query parameter.

Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
2004-03-07 07:26:56 +00:00
Brion Vibber
ed5f76e481 Fix timestamp error in redirects (fails in particularly ugly fashion on Windows server) 2004-03-06 09:34:05 +00:00