Commit graph

81 commits

Author SHA1 Message Date
Brion Vibber
17af3bff2e Start on refactoring the installer to better support new features (table prefixes, PostgreSQL) and optional text-mode/scripted install. Not yet functional. 2004-10-28 08:12:48 +00:00
Brion Vibber
7c08615a60 Install fixes for group table 2004-10-24 22:20:52 +00:00
Brion Vibber
1e5d5616ac Bug 732: Typo in config/index.php 2004-10-17 08:32:27 +00:00
Brion Vibber
3aa17a75a3 Pull the actual series of updater calls into do_all_updaters(), add
the necessary require_all's to updaters.inc, and add a command-line
update.php which runs them without having to pull things out and
run the web installer.
2004-10-13 07:38:43 +00:00
Jens Frank
60d7819026 Catch error 2000, too. Some mysql servers return 2000 instead of 1045 2004-10-12 10:07:31 +00:00
Brion Vibber
1111b47477 Rasterize plain image views of SVG files at default size (currently 512px wide, maybe not the best).
Prefer ImageMagick over GD when setting up LocalSettings.php
2004-10-05 07:35:19 +00:00
Brion Vibber
4062af729a Use 'includes/DefaultSettings.php' in preparation for running without include_path altered; things should now work if you just take that line out from LocalSettings. 2004-09-27 07:25:53 +00:00
Tim Starling
ce75d528b7 Added check for valid user permissions when updating database 2004-09-26 10:07:31 +00:00
Tim Starling
8f61d0007e Refactored updaters.inc. With all those functions doing virtually the same thing, it was getting kind of silly 2004-09-26 09:22:49 +00:00
Brion Vibber
5537c5b85e Avoid gratuitously breaking configurations: continue to use
$wgLanguageCode in LocalSettings.php, and pass that value on
to $wgContLanguageCode internally.
2004-09-25 10:38:34 +00:00
Zheng Zhu
6d10e85a52 Changed installation code so that wgContLanguageCode is set, replacing wgLanguageCode. 2004-09-24 00:34:13 +00:00
Brion Vibber
34b4ec2522 Set the user text on the initial main page to "MediaWiki default" like the
messages instead of leaving it blank, which results in a strange contribs
link in history.
2004-09-11 10:57:08 +00:00
Brion Vibber
aeaada6033 Remove indexes.sql; index definitions are now in the table creation in
tables.sql where they belong. Changed some UNIQUE to PRIMARY KEY, removed
unneeded cur_namespace index, added UNIQUE index on cur_namespace,
cur_title combination to enforce correctness a bit on new wikis.
2004-09-11 10:46:27 +00:00
Brion Vibber
f7acc4464f Installer support for picking traditional Chinese (zh-tw) localization. 2004-09-09 06:31:19 +00:00
Brion Vibber
c17b6e3e78 Use require_once instead of include_once on the generated LocalSettings.php.
If it doesn't work,  everything will break and there may be register_globals
problems, so let's make extra sure.
2004-09-09 05:08:47 +00:00
Brion Vibber
454c47247e Use handy-dandy __FILE__ constant to get the pathname instead of more
cumbersome means. Would be nice if PHP documented these things better;
things that aren't functions are very hard to find in their online docs.
2004-09-08 20:20:10 +00:00
Antoine Musso
a0d30b1e03 Use the new skin tree hierarchy 2004-09-05 03:25:58 +00:00
Brion Vibber
ba2df41e44 Set $wgDBadminuser and $wgDBadminpassword to root when using the root
login so that certain db upgrade steps (eg convertLinks.inc) will not
try to use the unprivileges database account to do restructuring.

This fixes the problem with upgrading wikis created by the old
command-line installer dying at the link table conversion.
2004-09-01 18:16:32 +00:00
Jens Frank
fc516cf79a fix nasty error due to /dev/random exhaustion 2004-08-30 20:23:36 +00:00
Jens Frank
fae0d13929 Split user table into two parts: user and user_rights, for single login. BUG#57 2004-08-24 20:41:07 +00:00
Brion Vibber
41e752879c Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.

There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.

recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
2004-08-24 08:11:46 +00:00
Brion Vibber
2f60c52a3c Use ob_implicit_flush() rather than ob_end_flush() in install-utils.
Ending the buffering completely will kill all subsequent output when
PHP is globally configured to run through a gzip compression handler.

Also, suppress the warning in LocalSettings.php when PHP tells us we
can't run the gzip filter twice.
2004-08-18 05:45:25 +00:00
Brion Vibber
56303634f1 Install tweaks:
* Die more dramatically when XML module is missing; explicitly mention Mandrake solution
* Don't allow blank db username, as this breaks
* Apply slashes escapes on the license metadata; these come from outside for CC licenses and while we trust them, they might change and break
2004-08-13 22:24:09 +00:00
Brion Vibber
92f124461f Add warning about register_globals. "It's for your own good." 2004-08-12 02:51:26 +00:00
Brion Vibber
efebcf9b72 Make Creative Commons selection work again; pretty up its display a bit. 2004-08-11 10:36:39 +00:00
Brion Vibber
c280d5887a Degrade gracefully: disable PHPTal-based skins on PHP 5.0 or higher.
Notify the user about this at setup time.
2004-08-06 09:46:25 +00:00
Brion Vibber
e91729b46f Fix for [ 988901 ] (install) database password not escaped in LocalSettings.php
addslashes() is not quite correct for PHP double-quoted string literals.
Created an escapePhpString() function which should cover the right bits.
See http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
2004-08-05 07:14:36 +00:00
Brion Vibber
eed8e55909 Add a big shiny obvious error message for safe mode even more obvious than the existing big shiny error message. Safe mode is evil and I hope it dies a slow painful death. 2004-08-02 21:44:55 +00:00
Tim Starling
6caab5e302 need Defines.php 2004-07-27 02:48:08 +00:00
Tim Starling
2d591fe3ca fixed double-escaping of $conf->IP 2004-07-19 12:03:39 +00:00
Tim Starling
b3c0974527 fix notice 2004-07-18 08:54:35 +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
f42dfefd4a fixed notice and nasty error due to /dev/random exhaustion 2004-07-16 16:49:41 +00:00
Julian Ostrow
1b48c394e5 Alters success message to include directory which contains LocalSettings.php 2004-07-10 10:38:36 +00:00
Jens Frank
42ca8ab399 RightsIcon text was broken when included in "" during later processing 2004-06-30 18:27:26 +00:00
Gabriel Wicke
ec3c42d90f * use $wgStylePath in right icon (only for gfdl, still hardwired at install for cc)
* added myself to authors
2004-06-30 00:05:14 +00:00
Tim Starling
434e8ab454 Use include_once and require_once instead of include and require, unless you have a very good reason to do otherwise. Use of require() in config/index.php apparently caused a bug. 2004-06-21 13:18:31 +00:00
Gabriel Wicke
2ed8aa746e moved db user initialization before sysop creation, install fails otherwise as User::saveSettings uses the non-root db connection 2004-06-18 12:16:23 +00:00
Tim Starling
f8b6e3ec0e Changed include path in response to report on #mediawiki. Problem was an aborted install due to PEAR.php being found outside the open_basedir directory. 2004-06-13 11:47:31 +00:00
Brion Vibber
b8d3e5c362 Installation fixes:
* Warn about low memory_limit and up it to 20M if it is less
* Set error reporting higher
* Check for utf8_decode and bitch about if it's missing
* New latin1 compatibility style
2004-06-12 03:20:51 +00:00
Jerome Jamnicky
4d488c8396 Remove lcc_title field from linkscc table, if necessary,
upon 1.3 install/upgrade.
2004-05-24 01:03:30 +00:00
Tim Starling
caf82594f5 1.2 -> 1.3 conversion using the web-based installer 2004-05-22 07:05:45 +00:00
Tim Starling
cb844819db Bug fix: need to add slashes when inserting into double quotes, especially when dealing with Windows paths (ported from 1.2) 2004-05-17 09:34:38 +00:00
Brion Vibber
ac9621badb Add categorylinks table to separately list category relationships. Actual
_page_ links to category pages like [[:category:Some cat]] will stay in
links/brokenlinks and not be listed in the category page list anymore.

A link can optionally specify a sort key like this: [[category:cat|Sort me]].
The page will then be sorted in category lists according to the given text
instead of the page name; thus categories may be sorted arbitrarily, by
last name or whatever.

There is also a timestamp field included on gwicke's request; this is not
used yet. Also it will currently be updated at every edit of the page,
this can be changed by implementing differential updating for the cat links.

TODO:
* Make sure that automatic sort keys are updated on page rename.
* Make sure cateory pages get cache-invalidated and purged
* Use proper text sorting instead of raw binary sort
* Allow specification of the display style on category pages: comma list
  or bullet list or number list; by sortkey or by timestamp; etc
2004-05-15 00:29:39 +00:00
Gabriel Wicke
5a6f3fda52 phptal doesn't require ini_set anymore 2004-05-11 01:42:58 +00:00
Brion Vibber
762b8e9b47 Allow installing and running the wiki on a server where ini_set has been
disabled via disable_functions in php.ini (bug #928168)

The PHPTal skin doesn't function unless the PEAR bits are in include_path,
so it's disabled if ini_set can't be used. If the files are manually placed
or a real PEAR installation is available with the right stuff, one can
use $wgUsePHPTal = true;

There are likely other things that need to be taken into account for
restricted environments. Maintenance scripts haven't been tweaked for
such an environment yet either.
2004-05-09 10:37:00 +00:00
Brion Vibber
0c2fba0ac4 Add an objectcache table for limited caching when memcached isn't
available. Currently using for the message cache to avoid reading
every message separately. This now is only slightly slower than
memcached in my tests when $wgUseDatabaseMessages is enabled, so
it's a bit of a speedup for common hosts.
2004-05-09 05:12:55 +00:00
Brion Vibber
ee940c906d Replace ugly abuse of log pages to store cached results of query pages
with a table that stores up to 1000 rows for each 'expensive' special
page. This can be paged through, reducing the annoyingness of 50 result
limits on the old system.

Rebuilding the cache can be forced by adding "recache=1" URL parameter,
but this will need to be refined with some sort of controls to prevent
abuse.

Added the user realname update to the installer's updater list, also.
2004-05-09 01:30:34 +00:00
Brion Vibber
a6cfab96df Fix $wgLogo to new location, for standard and nostalgia skins 2004-05-08 04:43:32 +00:00
Brion Vibber
84dfedb988 User interface images have been moved to stylesheets/images. Removing the
now duplicate files from images, and fixing GNU FDL icon URL.
2004-05-08 02:55:21 +00:00