Commit graph

59 commits

Author SHA1 Message Date
Gabriel Wicke
44bb42ae06 some IE6 textarea tweaks 2004-04-29 10:21:32 +00:00
Angela Beesley Starling
a20029bb93 Adds the username of the blocking sysop as a variable to the blockedIPpage function so [[special:emailuser/$4]] can be used in the block message. 2004-04-24 12:46:17 +00:00
Brion Vibber
b768dc0781 Fix tag nesting 2004-04-20 07:27:45 +00:00
Gabriel Wicke
fd996dbb20 wrapper div around textarea for ie fix 2004-04-19 14:16:06 +00:00
Brion Vibber
32ae234ee2 Fix notice with toolbar option off 2004-04-11 23:21:44 +00:00
Gabriel Wicke
e33c9a2fbe access keys and tooltips use wfMsg now 2004-04-09 19:22:51 +00:00
Gabriel Wicke
2ded40b72c i for 'minor edit'... 2004-04-09 18:18:10 +00:00
Gabriel Wicke
3a0172d89c accesskey w for watch this page checkbox, hardcoded for now 2004-04-09 18:16:29 +00:00
Gabriel Wicke
c59ec06716 wrap removed 2004-04-09 15:29:11 +00:00
Tim Starling
83b144cb42 Some browsers allow submission of the form without setting wpSave. Restoring the previous behaviour (treat as save) 2004-04-09 15:24:22 +00:00
Brion Vibber
b0ca04bbbe XHTMl fixes 2004-04-09 10:38:03 +00:00
Brion Vibber
a15b30376f Fix notice 2004-04-09 09:29:47 +00:00
Brion Vibber
509775a7d0 XHTML clean-up. Started reformatting Preferences. Fixed some hard-coding
of 'Vikipedio' in eo.
2004-04-09 08:27:00 +00:00
Tim Starling
5f188ad2a8 fixed accidental usage of wfFullUrl() 2004-04-07 05:46:47 +00:00
Tim Starling
f60cc2f4ca Cryptographic security in Special:Blockme, in response to reports of abuse 2004-04-06 01:25:26 +00:00
Brion Vibber
a0506cac17 Basic page rendering and editing now works in XHTML! Yeah!
To test:
	$wgMimeType = "text/xml";
	$wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
	$wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
2004-04-03 10:23: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
a134fab3c7 Made wfMerge() work on Windows, and fixed some merge-related comments in EditPage 2004-04-03 05:55:37 +00:00
Erik Moeller
dbc5dc019d 1) section editing auto-summaries are now formatted as /* foo */
2) in RC, SpecialContributions and PageHistory, these are displayed using
   the CSS class "autocomment" (gray in the standard skin)
2004-03-24 01:49:46 +00:00
Erik Moeller
515da873c3 change auto-summary format from (foo) to =foo= 2004-03-22 04:38:47 +00:00
Brion Vibber
8510acd5a4 Clean up initialized variables; fix upload error. 2004-03-20 08:41:33 +00:00
Brion Vibber
f270618ee0 Put section-edit-summary-title back into head branch for now. 2004-03-20 01:18:19 +00:00
Brion Vibber
830b3587ea Remove recently-added insert-section-title-as-summary on section edit.
There have been a number of complaints about this being slipped onto
the live Wikipedia, particularly to the effect that it discourages
people from filling out an actual edit summary that describes what
they wrote.
2004-03-19 22:35:46 +00:00
Erik Moeller
e940d95e19 don't prefill summary again during preview 2004-03-18 15:02:56 +00:00
Erik Moeller
8d10f6edf2 prefill edit summary with section title when section editing 2004-03-18 06:56:14 +00:00
Mr. E23
46071b3a16 Fixed problems with section editing and merging 2004-03-14 22:28:52 +00:00
Mr. E23
525092fa9f Experimental merging of edit conflicts 2004-03-14 15:05:52 +00:00
Mr. E23
b4ab8a73b5 Fixed broken edit conflict page 2004-03-14 13:42:16 +00:00
Tim Starling
3a6a9da403 bug fix in proxy check 2004-03-13 02:20:35 +00:00
Tim Starling
37a8760fe1 proxy check 2004-03-10 14:24:40 +00:00
Tim Starling
53a9b12371 use the one central list of talk namespaces, don't make your own every time you need one 2004-03-08 09:39:01 +00:00
Brion Vibber
014093acc4 More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)
object to encapsulate the handling of get/post variables:

The following grab something out of $_REQUEST. The first parameter is the
variable name and is required. The second is an optional default value:

  $wgRequest->getVal() - any type, returns NULL if no default given
  $wgRequest->getInt() - forced integer, 0 default
  $wgRequest->getText() - runs through $wgLang->recodeInput()
  $wgRequest->getBool() - return true/false
  $wgRequest->getCheck() - returns true if the var is set, even if to ""

$wgRequest strips slashes at initialization if necessary.

Also in this fine object:
  $wgRequest->wasPosted() - returns false if this wasn't a real form post,
    so we can protect against faked submissions in get urls.

There's still plenty of work to do, not everything uses the new functions
yet. To test the strict mode, do define('DEBUG_GLOBALS', 1);
2004-03-08 09:09:35 +00:00
Brion Vibber
9e53bfc81c Imported the register_globals hack from REL1_2. Also starting work on
elimination of the use of import_request_variables (which gives us all
the insecurity of register_globals). Uncomment the define of DEBUG_GLOBALS
in index.php to turn on extra error reporting and trace down use of
uninitialized variables and nassssty globals.

Also rearranged the magic_quotes fixing, may not yet cover everything...
2004-03-08 01:51:32 +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
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
Mr. E23
5da57c18f9 Added language string 'talkpagetext' before talk page edit box 2004-03-05 21:44:38 +00:00
Tim Starling
db41d9ae7c Parser improvements: global variable destruction 2004-02-29 08:43:29 +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
Gabriel Wicke
144cbe5bd6 Squid integration changes 2004-01-30 17:07:50 +00:00
Erik Moeller
f5a8413cf4 bugfix: edit pages are not articles (resulted in a few small glitches) 2004-01-29 22:36:02 +00:00
Evan Prodromou
4382547746 Make it optional to allow anonymous minor edits 2004-01-28 22:57:07 +00:00
Erik Moeller
8ea3a56f33 -$wgEnableEditToolbar, broken in non-English langs, unnecessary
fix typo in update script that caused fatal error
2004-01-18 04:14:37 +00:00
Tim Starling
5ee6d67581 added $wgEnableEditToolbar to disable JS toolbar 2004-01-18 02:25:33 +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
Erik Moeller
0ecb335f91 New edit toolbar for bold, italic, links, headlines, math, images, media,
sigs, horizontal lines (more can be added easily). Select text and click
to apply, or just click to see an example. Mouseover should show speedtips.

Also, access keys for the edit window (ALT+P=Preview, ALT+S=Save) -> Moz+IE
2004-01-11 04:11:43 +00:00
Tim Starling
82bf050027 IP substitution in blockedtext 2003-12-12 00:25:29 +00:00
Brion Vibber
fa6359877a (fix regression) Don't select the edit box on preview; this interferes with seeing what's going on. 2003-12-11 05:52:15 +00:00
Brion Vibber
03022828ce Only emit the javascript to set editbox focus when we're really editing 2003-12-10 10:30:14 +00:00
Brion Vibber
a83fe29160 Fix regression: view source when editing protected page thta can't edit 2003-12-02 22:38:16 +00:00