Commit graph

133 commits

Author SHA1 Message Date
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
Tim Starling
840dee3ad4 * Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
2004-03-06 01:49:16 +00:00
Nicholas Pisarro, Jr
74a1c21d60 Implemented '$wgWhitelistRead'.
$wgWhitelistRead is now defined to be an optional array
of namespace:pages a user may see unless they login.

For example:
$wgWhitelistRead = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help" );

will restrict an anonymous user to only those pages. They are
alerted that they must login, if the try to go to another page.

If 'false', the default, the anonymous user may see all pages,
except Sysop pages, of course.
2004-03-05 13:19:19 +00:00
Brion Vibber
59427a3d52 Add $wgDebugRedirects to assist in debugging some problems hidden by
automated http redirects.
2004-03-05 03:18:31 +00:00
Gabriel Wicke
02b7c1955b typo and minor tweak to permanent redirect 2004-03-01 22:28:33 +00:00
Gabriel Wicke
4364a77058 allow caching for permanent redirects 2004-03-01 22:16:39 +00:00
Tim Starling
db41d9ae7c Parser improvements: global variable destruction 2004-02-29 08:43:29 +00:00
Tim Starling
634e1dc6c6 lost linestart 2004-02-28 02:09:41 +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
Magnus Manske
61b139544e Category function now working 2004-02-24 14:20:21 +00:00
Magnus Manske
dbb89d2e6a Categories workover, incomplete 2004-02-24 12:01:43 +00:00
Jens Frank
7a4c57b0db Fix bug: Only first prefix link (aka Al[[Razi]]) was treated properly 2004-02-23 18:12:23 +00:00
Mr. E23
3c799396d6 Replaced uses of microtime() with wfTime() where possible. 2004-02-18 19:12:55 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Mr. E23
11e14cb131 Fix for parser cache; pages containing variables are now updated without delay when the variable is. 2004-02-15 17:02:58 +00:00
Jens Frank
c2a862264b allow "foo[[bar]]" to extend the link over the whole word "foobar" 2004-02-15 10:05:52 +00:00
Tim Starling
158e5ca759 Specia:Asksql security fix, Special:Asksql query timeout feature 2004-02-11 13:03:58 +00:00
Gabriel Wicke
08df14986e cleaned up unnecessary global declaration 2004-02-08 21:13:42 +00:00
Gabriel Wicke
d7a93a085a added function setSquidMaxage to adjust the Cache timeout for special pages 2004-02-08 21:12:07 +00:00
Arne Heizmann
c19d7a9ef1 Remove self-links and display their text in bold instead. 2004-02-08 21:02:41 +00:00
Magnus Manske
9714e01b94 hopefully fixing caption bug 892460 2004-02-08 13:05:28 +00:00
Tim Starling
7d46f933a9 removing commented sections 2004-02-08 08:01:54 +00:00
Tim Starling
6c9a30a345 Printable pages not cacheable, as suggested by... gwicke? 2004-02-04 00:45:48 +00:00
Gabriel Wicke
a017448eaf typo 2004-02-03 14:39:50 +00:00
Gabriel Wicke
a5d23772e2 added wgSquidMaxage global to configure the Squid cache timeout value from the config 2004-02-03 13:14:10 +00:00
Gabriel Wicke
943e0a1f95 minor fix 2004-02-02 04:33:48 +00:00