Commit graph

53 commits

Author SHA1 Message Date
Brion Vibber
41c8b7bf72 Antiglobalization!
* Remove some unused and some useless functions from GlobalSettings.php
* wfEscapeHTML() replaced with PHP built-in htmlspecialchars().
* Moved some functions into Parser.php and Image.php
2004-08-13 15:55:59 +00:00
Tim Starling
8f147fa900 committing Hendrik Brummermann's checkPassword() patch, plus some modifications to fix a UTF-8 post-conversion problem 2004-07-30 11:13:54 +00:00
Jens Frank
4c369e626e Moved wgUserToggles to wgAllMessages to enable users to translate the option labels 2004-07-23 07:03:52 +00:00
Jens Frank
0e52250df0 Make Math rendering options user settable strings in MediaWiki namespace. First batch. 2004-07-13 18:18:34 +00:00
Gabriel Wicke
f719dca05f Reworked css include/pref/tooltip/accesskey subsystem
* accesskeys and tooltips moved to js, needs to be customized/localized at MediaWiki:Monobook.js. Saves many calls to wfMsg, reduces page size, shows access key prefix depending on browser/os. Easy to customize by changing the ta array.
* skinphptal underline and justification wired up to produce generated css
* MediaWiki:Skin.css used for anons as well
* addcss call removed from header
* separate js var file included that holds things like the stylepath and the tooltip/accesskey array
* rtl css included from generated css
2004-06-09 13:04:52 +00:00
Jens Frank
24eb7fb507 changed duplicate 'Time format' entry in user preferences to use different wfMsg's. BUG 963143 2004-05-31 20:50:01 +00:00
Evan Prodromou
940f992a19 Per request, I've added code to disable setting the real name field on login
or in user preferences. The field remains in the database, however, and
classes such as User still use it. It's just hidden from the user interface.

The configuration variable is $wgAllowRealName, which defaults to TRUE.
Admins can set it to false if they need to.

It was kind of a chop-shop job, but I'm pretty sure that clever hackers
won't be able to force in a real name anywhere.

I haven't yet made display of real names in the RDF optional; I figure
that's a lower priority.
2004-05-29 17:32:49 +00:00
Jens Frank
11a29970dc hide 'guess timezone' button if javascript is not available.
(fix for bug #928031)
2004-05-20 11:26:33 +00:00
Gabriel Wicke
39e6768051 moved section help texts inside the fieldsets, added help string for user data, some css styling for the text 2004-05-20 11:02:27 +00:00
Gabriel Wicke
29a57e5d25 mainly back to simple fieldset version, cards deactivated in favour of js toc for now 2004-05-19 20:54:00 +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
Gabriel Wicke
c404ec2ff3 * feed links in skinphptal (appear in toolbox in monobook)
* recent changes moved to navigation (only not directly page-related link in the toolbox is special pages now)
* accesskey in SpecialPreferences
2004-04-23 16:31:38 +00:00
Brion Vibber
93b09379fb Add experimental MathML output option for math (only works with some
browsers and requires use of an XML content type; try setting
$wgMimeType = "application/xhtml+xml" and use Mozilla).
Rearranged a couple things in prefs.
Did some refactoring in Math.php to remove some duplicated code and
figure out what is going on.
2004-04-22 08:51:04 +00:00
Evan Prodromou
c1d1561b2f Added a user_real_name column to the user table, and added a patch SQL file
to add this field.

User.php stores and fetches the field, and has accessors for it.

User login allows setting the field on account creation.

The Preferences page allows changing the real name.

The labels are available for the real name, and the explanation of the email
field on login has been expanded to include an explanation of the real name
field, too.

Update script checks for the field, and adds it if it's missing.
2004-04-18 02:28:35 +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
Tim Starling
191621407f Fixed notice 2004-04-09 15:22:18 +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
Gabriel Wicke
084b03b4a0 removed debugging statements 2004-04-08 11:07:27 +00:00
Tim Starling
52a63ea7ef allowed changes in preferences, especially skin, to be immediately displayed in the "preferences saved" confirmation screen 2004-04-07 13:58:14 +00:00
Gabriel Wicke
d0bbc8e984 xhtml tweaks, non-minimized values for checked 2004-04-02 09:46:59 +00:00
Tim Starling
549d49951e Refactored (object-orientified) to make them play nice with $wgRequest 2004-04-01 13:03:05 +00:00
Gabriel Wicke
5418cdb0e1 uses Skin names from Language.php again 2004-03-28 21:01:21 +00:00
Brion Vibber
f29fd89dd8 HTTP_POST_VARS obsolete, annoying 2004-03-28 01:48:13 +00:00
Jens Frank
5e784160a4 Fixed listing of Skin names in Special:Preferences 2004-03-27 18:44:30 +00:00
Gabriel Wicke
008fc55b98 skin names as associative array 2004-03-26 22:27:43 +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
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
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
c56c69e986 Half hour time zones 2004-01-26 02:55:07 +00:00
Mr. E23
7f2a3294e5 Fix for bug in preference save 2004-01-25 00:10:38 +00:00
Tim Starling
85e6528f38 setArticleRelated required in more places than I realised at first 2004-01-17 15:12:33 +00:00
Brion Vibber
0a164de2ba Revert globals patch pending further work 2003-11-24 00:48:10 +00:00
Brion Vibber
13c17d0cc9 Commit JeLuF's register_globals fixes, first phase 2003-11-23 22:46:01 +00:00
Tim Starling
c89a592f0b Bug fixes 2003-11-15 11:18:39 +00:00
Tim Starling
286be59ed5 Imported latest features from the stable branch 2003-11-12 13:07:08 +00:00
Tim Starling
2cc7c6583f Disabling experimental extra skins 2003-11-11 11:23:42 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00
Matthias Jordan
a3de4610e7 Changed the search default namespace code to use the new
variable for the name of the Main namespace.
2003-08-01 23:44:28 +00:00
Erik Moeller
98c8698ddb 1) Stylesheet changes:
- smaller headlines in standard skin
   - slightly smaller font for menu links
   - headlines have thin gray underline
   - thinner borders
   - footer in blue box
2) Skin changes:
   - changed default color for non-article pages
   - removed "Special pages" dropdown -- takes space,
     causes display bugs and is hardly used
3) Preferences:
   - put all checkbox prefs in a table so they are
     properly aligned
4) Section editing:
   - new option for editing sections by right clicking
     titles (onContextMenu); works in Mozilla & IE
   - new functionality for appending text to pages, currently
     displayed only for Talk pages as "Post a comment"
     (summary field becomes comment subject)
2003-07-21 07:36:52 +00:00
Tim Starling
cf58e51e10 Much improved ability to disable dynamic dates in LocalSettings 2003-07-06 02:48:06 +00:00
Matthias Jordan
4f4dd54f98 Put some <label>s around the date format radioboxes and the namespace checkboxes
for consistent behaviour inside the preferences form.
2003-07-01 14:28:02 +00:00
Tim Starling
8249ea81bb Dynamic dates 2003-07-01 12:47:44 +00:00
Matthias Jordan
01515e038f Implemented the "default namespaces for search" feature. This includes
changes to the preferences form, a new key in the LanguageXX.php files
(defaultns) and a new global config variable in DefaultSettings.php
($wgNamespacesToBeSearchedDefault).

I also killed a bug that produced an errorneous SQL command when the user
failed to check any namespaces to search in the search form. The updated
implementation searched the main namespace if no checkbox is checked.
2003-07-01 08:27:32 +00:00
Brion Vibber
8ef1df9f60 Add link to help page from preferences screen (now wiki text, can set appropriately for each language... 2003-06-29 20:24:26 +00:00
Brion Vibber
4bd14f5c0a Attach <label>s to the form controls; some basic validation on integer parameters, avoids HTML insertion 2003-06-23 06:17:35 +00:00