Commit graph

67 commits

Author SHA1 Message Date
Tim Starling
69dfed992a Adding numberheadings to rendering hash, related inconsistency reported on #wikipedia 2004-08-15 15:01:33 +00:00
Arne Heizmann
8d9271fac6 use tabs for indentation, and probably some trailing whitespace has been removed by my
editor. I apologise for these triviality commits lately; I'll be more productive soon...
2004-08-14 22:30:10 +00:00
Domas Mituzas
9d5210b826 use proper timestamp conversion for user_touched 2004-08-10 13:17:20 +00:00
Jens Frank
9c8d946b87 Hello, World! 2004-07-31 08:56:54 +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
fe15e23107 Fix Userlogin 2004-07-19 06:35:56 +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
451df485da restrictions on Special:Movepage 2004-07-10 01:28:25 +00:00
Tim Starling
02b80d0793 newbie detector 2004-06-26 01:48:39 +00:00
Tim Starling
24d8a8e50b new anti-bot code 2004-06-21 07:41:53 +00:00
Antoine Musso
5928a9238b EXPERIMENTAL: Stop requiring skin classes we do not use. Save about 210KB memory for a monobook user, should save more when user use standard. 2004-06-17 16:31:57 +00:00
Antoine Musso
c2e120054a * function style : foobar() {
* double to single quotes replacement ...
2004-06-17 15:21:26 +00:00
Brion Vibber
fcba7b15b9 Revert postgresql changes pending further testing and fixes; this breaks currently running wikis using memcached (such as Wikipedia) 2004-06-12 01:30:00 +00:00
Domas Mituzas
a8db64e877 change user into "user" for PG 2004-06-11 15:19:04 +00:00
Tim Starling
3a91f49fcd Minor bug fix 2004-05-31 11:00:20 +00:00
Tim Starling
dd74ff399a Fixed 1.2 compatibility in "skin" user option 2004-05-22 04:53:02 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Brion Vibber
e0f7ccce19 If the given title is bad, don't die horribly but return a null user 2004-04-26 07:32:52 +00:00
Evan Prodromou
4d04aff2a3 Changed Metadata to use users' real names, if provided. If not, use their
user names, as "$wgSitename user Foo".

Added a static method to the User class to fetch a real name given an ID,
and added a pattern for specifying user names in Language.php.
2004-04-23 22:34:33 +00:00
Gabriel Wicke
90aadf7174 silence session_start when multiple sessions are started at once (e.g. loading a tab group in moz). Doesn't seem to be a bug, but i didn't investigate it really. 2004-04-19 18:33:13 +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
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
Erik Moeller
2f39ab8388 choose the min between the two block times when autoblocking a user with
a set expiry time
2004-04-07 01:56:35 +00:00
Erik Moeller
9a0416c13e if user is blocked with an expiry date, do not add autoblock expiry date
on top of that but instead reuse it
2004-04-06 23:08:57 +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
e12289e771 alterations to allow a command-line wikitext processor 2004-03-27 22:47:25 +00:00
Gabriel Wicke
d1adc1b994 skin names now in associative array, provides fallback for the three main skins 2004-03-26 22:25:57 +00:00
Brion Vibber
623ca89c8b Save password cookie fixes 2004-03-10 05:21:58 +00:00
Brion Vibber
9e861c1c9e Make login work again; some var init fixes 2004-03-08 10:17:24 +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
24bafe9227 Add database creation to in-place installer, plus a couple fixlets.
Installer is now able to connect to the db, check its version (and
enable some MySQL 4 features if available), create the database
if need be, create the empty tables, and grant user privs if given
the root pass. This creates a usable empty wiki.

TODO:
* Populate main page and stub log pages
* Create sysop account
* Populate MediaWiki namespace for selected language
* Better error checking
* Option for InnoDB tables?
* Other useful options like uploads and TeX (shudder)
* Support scripts still need to be checked for security.

Also fixed a minor bug in Database::tableExists which ran into infinite
loops if no tables were present, and made Database::selectDB modify
the right member variable.

To get around some problems induced by the new parser stuff, User
won't loadFromDatabase() if we're in CommandLineMode, since it ends
up trying to do so before we've set up the database and fails.
2004-03-02 09:26:57 +00:00
Tim Starling
5295157664 bug fix 2004-02-29 09:17:17 +00:00
Tim Starling
8e55334aef Special developer powers in SpecialMakesysop, different defaults for anons and logged in users, plus some bits and pieces 2004-02-29 08:51:15 +00:00
Brion Vibber
029d76d209 Make sure that id taken from cookie is an int; otherwise it goes to 0 2004-02-19 06:40:52 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
e2f98922df Two blocking features: IP range blocks, and expiry times configurable block-by-block.
Possible issue: uses strtotime(), which is very handy but in English
2004-02-14 12:37:25 +00:00
Mr. E23
94947b6615 Special page for making sysops. 2004-02-01 20:54:24 +00:00
Mr. E23
59fc101580 Fixed bug potentially causing problems if memcached fails for some reason (that is, returning FALSE) 2004-01-31 01:53:01 +00:00
Gabriel Wicke
144cbe5bd6 Squid integration changes 2004-01-30 17:07:50 +00:00
Mr. E23
5462b899b1 new memcached client returns integers as strings 2004-01-24 22:52:06 +00:00
Mr. E23
6bf06ffe02 compatibility modifications in preparation for the new memcached client 2004-01-24 20:58:13 +00:00
Mr. E23
16b6b929ca A patch to cache articles after conversion to HTML but before insertion
into a full page. Significant speed improvements on cache hits, especially
on pages with many links.
2004-01-07 02:51:47 +00:00
Tim Starling
824f536be9 bug fix in range block code, spelling error 2003-12-12 00:14:53 +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
Brion Vibber
d0b9388362 Use wfMsg()'s parameters 2003-11-15 13:08:12 +00:00
Tim Starling
07ab99c698 Merging latest features from stable 2003-11-14 09:13:23 +00:00
Tim Starling
286be59ed5 Imported latest features from the stable branch 2003-11-12 13:07:08 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00