2 # MediaWiki web-based config/installation
3 # Copyright (C) 2004 Brion Vibber <brion@pobox.com>
4 # http://www.mediawiki.org/
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 # http://www.gnu.org/copyleft/gpl.html
21 error_reporting( E_ALL
);
22 header( "Content-type: text/html; charset=utf-8" );
23 @ini_set
( "display_errors", true );
25 ?
><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
26 "http://www.w3.org/TR/html4/loose.dtd">
29 <meta http
-equiv
="Content-type" content
="text/html; charset=utf-8">
30 <title
>MediaWiki installation
</title
>
31 <style type
="text/css">
33 @import
"../skins/monobook/main.css";
37 margin
: 1em
0 1em
2.5em
;
44 .config
-section label
.column
{
56 zoom
: 100%
; /* IE hack */
59 .config
-section
.config
-desc
{
66 .iput
-text
, .iput
-password
{
73 background
-color
: #fff;
81 background
-color
: #FFF0F0;
82 border
: 2px solid red
;
90 list-style
-type
: none
;
91 list-style
-image
: none
;
112 <div id
="globalWrapper">
113 <div id
="column-content">
115 <div id
="bodyContent">
120 # Relative includes seem to break if a parent directory is not readable;
121 # this is common for public_html subdirs under user home directories.
123 # As a dirty hack, we'll try to set up the include path first.
125 $IP = dirname( dirname( __FILE__
) );
126 $sep = (DIRECTORY_SEPARATOR
== "\\") ?
";" : ":";
127 ini_set( "include_path", ".$sep$IP$sep$IP/includes$sep$IP/languages" );
129 define( "MEDIAWIKI", true );
130 define( "MEDIAWIKI_INSTALL", true );
131 require_once( "includes/Defines.php" );
132 require_once( "includes/DefaultSettings.php" );
133 require_once( "includes/MagicWord.php" );
134 require_once( "includes/Namespace.php" );
137 <h1
>MediaWiki
<?php
print $wgVersion ?
> installation
</h1
>
141 /* Check for existing configurations and bug out! */
143 if( file_exists( "../LocalSettings.php" ) ) {
144 dieout( "<h2>Already configured</h2>
146 <p><strong>Setup has completed, <a href='../index.php'>your wiki</a> is configured.</strong></p>
148 <p>Please delete the /config directory for extra security.</p>" );
151 if( file_exists( "./LocalSettings.php" ) ) {
152 writeSuccessMessage();
157 if( !is_writable( "." ) ) {
158 dieout( "<h2>Can't write config file, aborting</h2>
160 <p>In order to configure the wiki you have to make the <tt>config</tt> subdirectory
161 writable by the web server. Once configuration is done you'll move the created
162 <tt>LocalSettings.php</tt> to the parent directory, and for added safety you can
163 then remove the <tt>config</tt> subdirectory entirely.</p>
165 <p>To make the directory writable on a Unix/Linux system:</p>
168 cd <i>/path/to/wiki</i>
174 require_once( "install-utils.inc" );
175 require_once( "maintenance/updaters.inc" );
178 function getEncoded( $data ) {
179 # removing latin1 support, no need...
182 function getSitename() { return $this->getEncoded( $this->Sitename
); }
183 function getSysopName() { return $this->getEncoded( $this->SysopName
); }
184 function getSysopPass() { return $this->getEncoded( $this->SysopPass
); }
189 <h2
>Checking environment
...</h2
>
190 <p
><em
>Please
include all of the lines below when reporting installation problems
.</em
></p
>
191 <ul
class="env-check">
195 $wgNoOutputBuffer = true;
196 $conf = new ConfigData
;
198 install_version_checks();
200 print "<li>PHP " . phpversion() . ": ok</li>\n";
202 if( ini_get( "register_globals" ) ) {
204 <li
><b
class='error'>Warning
:</b
> <strong
>PHP
's
205 <tt><a href="http://php.net/register_globals">register_globals</a></tt>
206 option is enabled.</strong> MediaWiki will work correctly, but this setting
207 increases your exposure to potential security vulnerabilities in PHP-based
208 software running on your server. <strong>You should disable it if you are able.</strong></li>
214 if( ini_get( "magic_quotes_runtime" ) ) {
216 ?><li class='error
'><strong>Fatal: <a href='http
://www.php.net/manual/en/ref.info.php#ini.magic-quotes-runtime'>magic_quotes_runtime</a> is active!</strong>
217 This option corrupts data input unpredictably
; you cannot install
or use
218 MediaWiki unless this option is disabled
.
222 if( ini_get( "magic_quotes_sybase" ) ) {
224 ?
><li
class='error'><strong
>Fatal
: <a href
='http://www.php.net/manual/en/ref.sybase.php#ini.magic-quotes-sybase'>magic_quotes_sybase
</a
> is active
!</strong
>
225 This option corrupts data input unpredictably
; you cannot install
or use
226 MediaWiki unless this option is disabled
.
231 dieout( "</ul><p>Cannot install Mediawiki.</p>" );
234 if( ini_get( "safe_mode" ) ) {
235 $conf->safeMode
= true;
237 <li
><b
class='error'>Warning
:</b
> <strong
>PHP
's
238 <a href='http
://www.php.net/features.safe-mode'>safe mode</a> is active.</strong>
239 You may have problems caused by this
, particularly
if using image uploads
.
243 $conf->safeMode
= false;
247 $sapi = php_sapi_name();
248 $conf->prettyURLs
= true;
249 print "<li>PHP server API is $sapi; ";
252 case "apache2handler":
253 print "ok, using pretty URLs (<tt>index.php/Page_Title</tt>)";
257 case "apache2filter":
258 print "using ugly URLs (<tt>index.php?title=Page_Title</tt>)";
259 $conf->prettyURLs
= false;
262 print "unknown; using pretty URLs (<tt>index.php/Page_Title</tt>), if you have trouble change this in <tt>LocalSettings.php</tt>";
266 $conf->xml
= function_exists( "utf8_encode" );
268 print "<li>Have XML / Latin1-UTF-8 conversion support.</li>\n";
270 dieout( "PHP's XML module is missing; the wiki requires functions in
271 this module and won't work in this configuration.
272 If you're running Mandrake, install the php-xml package." );
275 $memlimit = ini_get( "memory_limit" );
276 $conf->raiseMemory
= false;
277 if( empty( $memlimit ) ||
$memlimit == -1 ) {
278 print "<li>PHP is configured with no <tt>memory_limit</tt>.</li>\n";
280 print "<li>PHP's <tt>memory_limit</tt> is " . htmlspecialchars( $memlimit ) . ". <strong>If this is too low, installation may fail!</strong> ";
281 $n = intval( $memlimit );
282 if( preg_match( '/^([0-9]+)[Mm]$/', trim( $memlimit ), $m ) ) {
283 $n = intval( $m[1] * (1024*1024) );
285 if( $n < 20*1024*1024 ) {
286 print "Attempting to raise limit to 20M... ";
287 if( false === ini_set( "memory_limit", "20M" ) ) {
290 $conf->raiseMemory
= true;
297 $conf->zlib
= function_exists( "gzencode" );
299 print "<li>Have zlib support; enabling output compression.</li>\n";
301 print "<li>No zlib support.</li>\n";
304 $conf->turck
= function_exists( 'mmcache_get' );
305 if ( $conf->turck
) {
306 print "<li><a href=\"http://turck-mmcache.sourceforge.net/\">Turck MMCache</a> installed</li>\n";
308 $conf->eaccel
= function_exists( 'eaccelerator_get' );
309 if ( $conf->eaccel
) {
310 $conf->turck
= 'eaccelerator';
311 print "<li><a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> installed</li>\n";
313 if (!$conf->turck
&& !$conf->eaccel
) {
314 print "<li>Neither <a href=\"http://turck-mmcache.sourceforge.net/\">Turck MMCache</a> nor <a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> are installed, " .
315 "can't use object caching functions</li>\n";
318 $conf->diff3
= false;
319 $diff3locations = array("/usr/bin", "/opt/csw/bin", "/usr/gnu/bin", "/usr/sfw/bin") +
explode(":", getenv("PATH"));
320 $diff3names = array("gdiff3", "diff3");
322 $diff3versioninfo = array('$1 --version 2>&1', 'diff3 (GNU diffutils)');
323 foreach ($diff3locations as $loc) {
324 $exe = locate_executable($loc, $diff3names, $diff3versioninfo);
325 if ($exe !== false) {
332 print "<li>Found GNU diff3: <tt>$conf->diff3</tt>.</li>";
334 print "<li>GNU diff3 not found.</li>";
336 $conf->ImageMagick
= false;
337 $imcheck = array( "/usr/bin", "/usr/local/bin", "/sw/bin", "/opt/local/bin" );
338 foreach( $imcheck as $dir ) {
339 $im = "$dir/convert";
340 if( file_exists( $im ) ) {
341 print "<li>Found ImageMagick: <tt>$im</tt>; image thumbnailing will be enabled if you enable uploads.</li>\n";
342 $conf->ImageMagick
= $im;
347 $conf->HaveGD
= function_exists( "imagejpeg" );
348 if( $conf->HaveGD
) {
349 print "<li>Found GD graphics library built-in";
350 if( !$conf->ImageMagick
) {
351 print ", image thumbnailing will be enabled if you enable uploads";
355 if( !$conf->ImageMagick
) {
356 print "<li>Couldn't find GD library or ImageMagick; image thumbnailing disabled.</li>\n";
360 $conf->UseImageResize
= $conf->HaveGD ||
$conf->ImageMagick
;
362 # $conf->IP = "/Users/brion/Sites/inplace";
363 $conf->IP
= dirname( dirname( __FILE__
) );
364 print "<li>Installation directory: <tt>" . htmlspecialchars( $conf->IP
) . "</tt></li>\n";
366 # $conf->ScriptPath = "/~brion/inplace";
367 $conf->ScriptPath
= preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["PHP_SELF"] ); # was SCRIPT_NAME
368 print "<li>Script URI path: <tt>" . htmlspecialchars( $conf->ScriptPath
) . "</tt></li>\n";
370 print "<li style='font-weight:bold;color:green'>Environment checked. You can install MediaWiki.</li>\n";
371 $conf->posted
= ($_SERVER["REQUEST_METHOD"] == "POST");
373 $conf->Sitename
= ucfirst( importPost( "Sitename", "" ) );
374 $defaultEmail = empty( $_SERVER["SERVER_ADMIN"] )
376 : $_SERVER["SERVER_ADMIN"];
377 $conf->EmergencyContact
= importPost( "EmergencyContact", $defaultEmail );
378 $conf->DBtype
= importPost( "DBtype", "mysql" );
379 $conf->DBserver
= importPost( "DBserver", "localhost" );
380 $conf->DBname
= importPost( "DBname", "wikidb" );
381 $conf->DBuser
= importPost( "DBuser", "wikiuser" );
382 $conf->DBpassword
= importPost( "DBpassword" );
383 $conf->DBpassword2
= importPost( "DBpassword2" );
384 $conf->DBprefix
= importPost( "DBprefix" );
385 $conf->RootPW
= importPost( "RootPW" );
386 $conf->LanguageCode
= importPost( "LanguageCode", "en" );
387 $conf->SysopName
= importPost( "SysopName", "WikiAdmin" );
388 $conf->SysopPass
= importPost( "SysopPass" );
389 $conf->SysopPass2
= importPost( "SysopPass2" );
391 /* Check for validity */
394 if( $conf->Sitename
== "" ||
$conf->Sitename
== "MediaWiki" ||
$conf->Sitename
== "Mediawiki" ) {
395 $errs["Sitename"] = "Must not be blank or \"MediaWiki\".";
397 if( $conf->DBuser
== "" ) {
398 $errs["DBuser"] = "Must not be blank";
400 if( $conf->DBpassword
== "" ) {
401 $errs["DBpassword"] = "Must not be blank";
403 if( $conf->DBpassword
!= $conf->DBpassword2
) {
404 $errs["DBpassword2"] = "Passwords don't match!";
406 if( !preg_match( '/^[A-Za-z_0-9]*$/', $conf->DBprefix
) ) {
407 $errs["DBprefix"] = "Invalid table prefix";
410 if( $conf->SysopPass
== "" ) {
411 $errs["SysopPass"] = "Must not be blank";
413 if( $conf->SysopPass
!= $conf->SysopPass2
) {
414 $errs["SysopPass2"] = "Passwords don't match!";
417 $conf->License
= importRequest( "License", "none" );
418 if( $conf->License
== "gfdl" ) {
419 $conf->RightsUrl
= "http://www.gnu.org/copyleft/fdl.html";
420 $conf->RightsText
= "GNU Free Documentation License 1.2";
421 $conf->RightsCode
= "gfdl";
422 $conf->RightsIcon
= '${wgStylePath}/common/images/gnu-fdl.png';
423 } elseif( $conf->License
== "none" ) {
424 $conf->RightsUrl
= $conf->RightsText
= $conf->RightsCode
= $conf->RightsIcon
= "";
426 $conf->RightsUrl
= importRequest( "RightsUrl", "" );
427 $conf->RightsText
= importRequest( "RightsText", "" );
428 $conf->RightsCode
= importRequest( "RightsCode", "" );
429 $conf->RightsIcon
= importRequest( "RightsIcon", "" );
432 $conf->Shm
= importRequest( "Shm", "none" );
433 $conf->MCServers
= importRequest( "MCServers" );
435 /* Test memcached servers */
437 if ( $conf->Shm
== 'memcached' && $conf->MCServers
) {
438 $conf->MCServerArray
= array_map( 'trim', explode( ',', $conf->MCServers
) );
439 foreach ( $conf->MCServerArray
as $server ) {
440 $error = testMemcachedServer( $server );
442 $errs["MCServers"] = $error;
446 } else if ( $conf->Shm
== 'memcached' ) {
447 $errs["MCServers"] = "Please specify at least one server if you wish to use memcached";
450 /* default values for installation */
451 $conf->Email
=importRequest("Email", "email_enabled");
452 $conf->Emailuser
=importRequest("Emailuser", "emailuser_enabled");
453 $conf->Enotif
=importRequest("Enotif", "enotif_allpages");
454 $conf->Eauthent
=importRequest("Eauthent", "eauthent_enabled");
456 if( $conf->posted
&& ( 0 == count( $errs ) ) ) {
457 do { /* So we can 'continue' to end prematurely */
458 $conf->Root
= ($conf->RootPW
!= "");
460 /* Load up the settings and get installin' */
461 $local = writeLocalSettings( $conf );
462 $wgCommandLineMode = false;
465 if (!in_array($conf->DBtype
, array("mysql", "oracle"))) {
466 $errs["DBtype"] = "Unknown database type.";
469 print "<li>Database type: {$conf->DBtype}</li>\n";
470 $dbclass = 'Database'.ucfirst($conf->DBtype
);
471 require_once("$dbclass.php");
472 $wgDBtype = $conf->DBtype
;
473 $wgDBadminuser = "root";
474 $wgDBadminpassword = $conf->RootPW
;
475 $wgDBprefix = $conf->DBprefix
;
476 $wgCommandLineMode = true;
477 $wgUseDatabaseMessages = false; /* FIXME: For database failure */
478 require_once( "includes/Setup.php" );
481 require_once( "maintenance/InitialiseMessages.inc" );
483 $wgTitle = Title
::newFromText( "Installation script" );
484 $mysqlOldClient = version_compare( mysql_get_client_info(), "4.1.0", "lt" );
485 if( $mysqlOldClient ) {
486 print "<li><b>PHP is linked with old MySQL client libraries. If you are
487 using a MySQL 4.1 server and have problems connecting to the database,
488 see <a href='http://dev.mysql.com/doc/mysql/en/old-client.html'
489 >http://dev.mysql.com/doc/mysql/en/old-client.html</a> for help.</b></li>\n";
492 if ($conf->DBtype
== 'mysql') {
493 print "<li>Trying to connect to database server on $wgDBserver as root...\n";
494 $wgDatabase = $dbc->newFromParams( $wgDBserver, "root", $conf->RootPW
, "", 1 );
496 if( $wgDatabase->isOpen() ) {
497 $myver = get_db_version();
498 $wgDatabase->ignoreErrors(true);
500 print "<ul><li>Connected as root (automatic)</li></ul></li>\n";
502 print "<ul><li>MySQL error " . ($err = mysql_errno() ) .
503 ": " . htmlspecialchars( mysql_error() ) . "</li></ul></li>";
509 $errs["RootPW"] = "Check password";
511 print "<li>Trying regular user...\n";
512 /* Try the regular user... */
513 $wgDBadminuser = $wgDBuser;
514 $wgDBadminpassword = $wgDBpassword;
515 /* Wait one second for connection rate limiting, present on some systems */
517 $wgDatabase = Database
::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, "", 1 );
518 if( !$wgDatabase->isOpen() ) {
519 print "<ul><li>MySQL error " . ($err = mysql_errno() ) .
520 ": " . htmlspecialchars( mysql_error() ) . "</li></ul></li>";
521 $errs["DBuser"] = "Check name/pass";
522 $errs["DBpassword"] = "or enter root";
523 $errs["DBpassword2"] = "password below";
524 $errs["RootPW"] = "Got root?";
526 $myver = mysql_get_server_info( $wgDatabase->mConn
);
527 $wgDatabase->ignoreErrors(true);
538 $errs["DBserver"] = "Connection failed";
541 $errs["DBserver"] = "Couldn't connect to database";
546 } else /* not mysql */ {
547 print "<li>Connecting to SQL server...";
548 $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1);
549 if (!$wgDatabase->isOpen()) {
550 print " error: " . $wgDatabase->lastError() . "</li>\n";
552 $wgDatabase->ignoreErrors(true);
553 $myver = get_db_version();
557 if ( !$wgDatabase->isOpen() ) {
558 $errs["DBserver"] = "Couldn't connect to database";
562 print "<li>Connected to $myver";
563 if( version_compare( $myver, "4.0.0" ) < 0 ) {
564 die( " -- mysql 4.0 or later required. Aborting." );
566 $mysqlNewAuth = version_compare( $myver, "4.1.0", "ge" );
567 if( $mysqlNewAuth && $mysqlOldClient ) {
568 print "; <b class='error'>You are using MySQL 4.1 server, but PHP is linked
569 to old client libraries; if you have trouble with authentication, see
570 <a href='http://dev.mysql.com/doc/mysql/en/old-client.html'
571 >http://dev.mysql.com/doc/mysql/en/old-client.html</a> for help.</b>";
575 if ($conf->DBtype
== 'mysql') {
576 @$sel = mysql_select_db( $wgDBname, $wgDatabase->mConn
);
578 print "<li>Database <tt>" . htmlspecialchars( $wgDBname ) . "</tt> exists</li>\n";
580 $err = mysql_errno();
581 if ( $err != 1049 ) {
582 print "<ul><li>Error selecting database $wgDBname: $err " .
583 htmlspecialchars( mysql_error() ) . "</li></ul>";
586 $res = $wgDatabase->query( "CREATE DATABASE `$wgDBname`" );
588 print "<li>Couldn't create database <tt>" .
589 htmlspecialchars( $wgDBname ) .
590 "</tt>; try with root access or check your username/pass.</li>\n";
591 $errs["RootPW"] = "<- Enter";
594 print "<li>Created database <tt>" . htmlspecialchars( $wgDBname ) . "</tt></li>\n";
596 $wgDatabase->selectDB( $wgDBname );
600 if( $wgDatabase->tableExists( "cur" ) ||
$wgDatabase->tableExists( "revision" ) ) {
601 print "<li>There are already MediaWiki tables in this database. Checking if updates are needed...</li>\n";
603 # Create user if required
605 $conn = Database
::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1 );
606 if ( $conn->isOpen() ) {
607 print "<li>DB user account ok</li>\n";
610 print "<li>Granting user permissions...";
611 if( $mysqlOldClient && $mysqlNewAuth ) {
612 print " <b class='error'>If the next step fails, see <a href='http://dev.mysql.com/doc/mysql/en/old-client.html'>http://dev.mysql.com/doc/mysql/en/old-client.html</a> for help.</b>";
615 dbsource( "../maintenance/users.sql", $wgDatabase );
625 print "<li>Finished update checks.</li>\n";
627 # FIXME: Check for errors
628 print "<li>Creating tables...";
629 if ($conf->DBtype
== 'mysql') {
630 dbsource( "../maintenance/tables.sql", $wgDatabase );
631 dbsource( "../maintenance/interwiki.sql", $wgDatabase );
633 dbsource( "../maintenance/oracle/tables.sql", $wgDatabase );
634 dbsource( "../maintenance/oracle/interwiki.sql", $wgDatabase );
637 print " done.</li>\n";
639 print "<li>Initializing data...";
640 $wgDatabase->insert( 'site_stats',
641 array( 'ss_row_id' => 1,
642 'ss_total_views' => 0,
643 'ss_total_edits' => 0,
644 'ss_good_articles' => 0 ) );
645 # setting up the db user
647 print "<li>Granting user permissions...</li>\n";
648 dbsource( "../maintenance/users.sql", $wgDatabase );
651 if( $conf->SysopName
) {
652 $u = User
::newFromName( $conf->getSysopName() );
653 if ( 0 == $u->idForName() ) {
655 $u->setPassword( $conf->getSysopPass() );
658 $u->addGroup( "sysop" );
659 $u->addGroup( "bureaucrat" );
661 print "<li>Created sysop account <tt>" .
662 htmlspecialchars( $conf->SysopName
) . "</tt>.</li>\n";
664 print "<li>Could not create user - already exists!</li>\n";
667 print "<li>Skipped sysop account creation, no name given.</li>\n";
670 $titleobj = Title
::newFromText( wfMsgNoDB( "mainpage" ) );
671 $article = new Article( $titleobj );
672 $newid = $article->insertOn( $wgDatabase );
673 $revision = new Revision( array(
675 'text' => wfMsg( 'mainpagetext' ) . "\n\n" . wfMsg( 'mainpagedocfooter' ),
678 'user_text' => 'MediaWiki default',
680 $revid = $revision->insertOn( $wgDatabase );
681 $article->updateRevisionOn( $wgDatabase, $revision );
684 initialiseMessages();
685 print "</pre></li>\n";
688 /* Write out the config file now that all is well */
689 print "<p>Creating LocalSettings.php...</p>\n\n";
690 $localSettings = "<" . "?php$endl$local$endl?" . ">";
691 // Fix up a common line-ending problem (due to CVS on Windows)
692 $localSettings = str_replace( "\r\n", "\n", $localSettings );
694 if( version_compare( phpversion(), "4.3.2" ) >= 0 ) {
695 $xt = "xt"; # Refuse to overwrite an existing file
697 $xt = "wt"; # 'x' is not available prior to PHP 4.3.2. We did check above, but race conditions blah blah
699 $f = fopen( "LocalSettings.php", $xt );
702 dieout( "<p>Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...</p>\n" .
703 "<p>Here's the file that would have been written, try to paste it into place manually:</p>\n" .
704 "<pre>\n" . htmlspecialchars( $localSettings ) . "</pre>\n" );
706 if(fwrite( $f, $localSettings ) ) {
708 writeSuccessMessage();
711 die("<p class='error'>An error occured while writing the config/LocalSettings.php file. Check user rights and disk space then try again.</p>\n");
723 if( count( $errs ) ) {
724 /* Display options form */
726 if( $conf->posted
) {
727 echo "<p class='error-top'>Something's not quite right yet; make sure everything below is filled out correctly.</p>\n";
731 <form action
="index.php" name
="config" method
="post">
736 <div
class="config-section">
737 <div
class="config-input">
739 aField( $conf, "Sitename", "Wiki name:" );
742 <p
class="config-desc">
743 Preferably a short word without punctuation
, i
.e
. "Wikipedia". Will appear
as the
namespace name
for "meta" pages
, and throughout the
interface.
746 <div
class="config-input">
748 aField( $conf, "EmergencyContact", "Contact e-mail:" );
751 <p
class="config-desc">
752 Displayed to users in some error messages
, used
as the
return address
for password reminders
, and used
as the
default sender address of e
-mail notifications
.
755 <div
class="config-input">
756 <label
class='column' for="LanguageCode">Language
:</label
>
757 <select id
="LanguageCode" name
="LanguageCode">
760 $list = getLanguageList();
761 foreach( $list as $code => $name ) {
762 $sel = ($code == $conf->LanguageCode
) ?
'selected="selected"' : '';
763 echo "\t\t<option value=\"$code\" $sel>$name</option>\n";
768 <p
class="config-desc">
769 Select the language
for your wiki
's interface. Some localizations aren't fully complete
. Unicode (UTF
-8) used
for all localizations
.
772 <div
class="config-input">
773 <label
class='column'>Copyright
/license
:</label
>
776 <li
><?php
aField( $conf, "License", "No license metadata", "radio", "none" ); ?
></li
>
777 <li
><?php
aField( $conf, "License", "GNU Free Documentation License 1.2 (Wikipedia-compatible)", "radio", "gfdl" ); ?
></li
>
779 aField( $conf, "License", "A Creative Commons license - ", "radio", "cc" );
780 $partner = "MediaWiki";
781 $exit = urlencode( "$wgServer{$conf->ScriptPath}/config/index.php?License=cc&RightsUrl=[license_url]&RightsText=[license_name]&RightsCode=[license_code]&RightsIcon=[license_button]" );
782 $icon = urlencode( "$wgServer$wgUploadPath/wiki.png" );
783 $ccApp = htmlspecialchars( "http://creativecommons.org/license/?partner=$partner&exit_url=$exit&partner_icon_url=$icon" );
784 print "<a href=\"$ccApp\" target='_blank'>choose</a>";
786 <?php
if( $conf->License
== "cc" ) { ?
>
788 <li
><?php
aField( $conf, "RightsIcon", "<img src=\"" . htmlspecialchars( $conf->RightsIcon
) . "\" alt='icon' />", "hidden" ); ?
></li
>
789 <li
><?php
aField( $conf, "RightsText", htmlspecialchars( $conf->RightsText
), "hidden" ); ?
></li
>
790 <li
><?php
aField( $conf, "RightsCode", "code: " . htmlspecialchars( $conf->RightsCode
), "hidden" ); ?
></li
>
791 <li
><?php
aField( $conf, "RightsUrl", "<a href=\"" . htmlspecialchars( $conf->RightsUrl
) . "\">" . htmlspecialchars( $conf->RightsUrl
) . "</a>", "hidden" ); ?
></li
>
797 <p
class="config-desc">
798 A notice
, icon
, and machine
-readable copyright metadata will be displayed
for the license you pick
.
802 <div
class="config-input">
803 <?php
aField( $conf, "SysopName", "Admin username:" ) ?
>
805 <div
class="config-input">
806 <?php
aField( $conf, "SysopPass", "Password:", "password" ) ?
>
808 <div
class="config-input">
809 <?php
aField( $conf, "SysopPass2", "Password confirm:", "password" ) ?
>
811 <p
class="config-desc">
812 An admin user account can lock
or delete pages
, block problematic IP
813 addresses from editing
, and other maintenance tasks
. If creating a
new
814 wiki database
, an admin account will be created with the given name
818 <div
class="config-input">
819 <label
class='column'>Shared memory caching
:</label
>
822 <li
><?php
aField( $conf, "Shm", "No caching", "radio", "none" ); ?
></li
>
824 if ( $conf->turck
) {
826 aField( $conf, "Shm", "Turck MMCache", "radio", "turck" );
831 if ( $conf->eaccel
) {
833 aField( $conf, "Shm", "eAccelerator", "radio", "eaccel" );
837 <li
><?php
aField( $conf, "Shm", "Memcached", "radio", "memcached" ); ?
></li
>
839 <div style
="clear:left"><?php
aField( $conf, "MCServers", "Memcached servers:", "text" ) ?
></div
>
841 <p
class="config-desc">
842 Using a shared memory system such
as Turck MMCache
, eAccelerator
, or Memcached will speed
843 up MediaWiki significantly
. Memcached is the best solution but needs to be
844 installed
. Specify the server addresses
and ports in a comma
-separted
list. Only
845 use Turck shared memory
if the wiki will be running on a single Apache server
.
849 <h2
>E
-mail
, e
-mail notification
and authentication setup
</h2
>
851 <div
class="config-section">
852 <div
class="config-input">
853 <label
class='column'>E
-mail (general
):</label
>
855 <li
><?php
aField( $conf, "Email", "Enabled", "radio", "email_enabled" ); ?
></li
>
856 <li
><?php
aField( $conf, "Email", "Disabled", "radio", "email_disabled" ); ?
></li
>
859 <p
class="config-desc">
860 Use this to disable all e
-mail
functions (send a password reminder
, user
-to
-user e
-mail
and e
-mail notification
),
861 if sending e
-mails on your server doesn
't work.
863 <div class="config-input">
864 <label class='column
'>User-to-user e-mail:</label>
866 <li><?php aField( $conf, "Emailuser", "Enabled", "radio", "emailuser_enabled" ); ?></li>
867 <li><?php aField( $conf, "Emailuser", "Disabled", "radio", "emailuser_disabled" ); ?></li>
870 <p class="config-desc">
871 Use this to disable only the user-to-user e-mail function (EmailUser).
873 <div class="config-input">
874 <label class='column
'>E-mail notification:</label>
876 <li><?php aField( $conf, "Enotif", "Disabled", "radio", "enotif_disabled" ); ?></li>
877 <li><?php aField( $conf, "Enotif", "Enabled for changes of watch-listed and user_talk pages (recommended for small wikis; perhaps not suited for large wikis)", "radio", "enotif_allpages" ); ?></li>
878 <li><?php aField( $conf, "Enotif", "Enabled for changes of user_talk pages only (suited for small and large wikis)", "radio", "enotif_usertalk" ); ?></li>
881 <div class="config-desc">
883 E-mail notification sends a notification e-mail to a user, when the user_talk page is changed
884 and/or when watch-listed pages are changed, depending on the above settings.
885 When testing this feature, be reminded, that obviously an e-mail address must be present in your preferences
886 and that your own changes never trigger notifications to be sent to yourself.</p>
888 <p>Users get corresponding options to select or deselect in their users' preferences
.
889 The user options are not shown on the preference page
, if e
-mail notification is disabled
.</p
>
891 <p
>There are additional options
for fine tuning in
/includes
/DefaultSettings
.php
.</p
>
894 <div
class="config-input">
895 <label
class='column'>E
-mail authentication
:</label
>
897 <li
><?php
aField( $conf, "Eauthent", "Disabled", "radio", "eauthent_disabled" ); ?
></li
>
898 <li
><?php
aField( $conf, "Eauthent", "Enabled", "radio", "eauthent_enabled" ); ?
></li
>
901 <div
class="config-desc">
902 <p
>E
-mail address authentication uses a scheme to authenticate e
-mail addresses of the users
. The user who initially enters
or changes his
/her stored e
-mail address
903 gets a link with a token mailed to that address
. The stored e
-mail address is authenticated at the moment the user comes back to the wiki via the link
.</p
>
905 <p
>The e
-mail address stays authenticated
as long
as the user does not change it
; the time of authentication is indicated
906 on the user preference page
.</p
>
908 <p
>If the option is enabled
, only authenticated e
-mail addresses can receive EmailUser mails
and/or
909 e
-mail notification mails
.</p
>
914 <h2
>Database config
</h2
>
916 <div
class="config-section">
917 <div
class="config-input">
918 <label
class='column'>Database type
:</label
>
920 <li
><?php
aField( $conf, "DBtype", "MySQL", "radio", "mysql"); ?
></li
>
921 <li
><?php
aField( $conf, "DBtype", "Oracle", "radio", "oracle" ); ?
></li
>
925 <div
class="config-input" style
="clear:left"><?php
926 aField( $conf, "DBserver", "SQL server host:" );
928 <p
class="config-desc">
929 If your database server isn
't on your web server, enter the name
930 or IP address here. MySQL only.
933 <div class="config-input"><?php
934 aField( $conf, "DBname", "Database name:" );
936 <div class="config-desc">
937 If using Oracle, set this to your connection identifier.
939 <div class="config-input"><?php
940 aField( $conf, "DBuser", "DB username:" );
942 <div class="config-input"><?php
943 aField( $conf, "DBpassword", "DB password:", "password" );
945 <div class="config-input"><?php
946 aField( $conf, "DBpassword2", "DB password confirm:", "password" );
948 <p class="config-desc">
949 If you only have a single user account and database available,
950 enter those here. If you have database root access (see below)
951 you can specify new accounts/databases to be created.
954 <div class="config-input"><?php
955 aField( $conf, "DBprefix", "Database table prefix:" );
957 <div class="config-desc">
958 <p>If you need to share one database between multiple wikis, or
959 MediaWiki and another web application, you may choose to
960 add a prefix to all the table names to avoid conflicts.</p>
962 <p>Avoid exotic characters; something like <tt>mw_</tt> is good.</p>
965 <div class="config-input">
967 aField( $conf, "RootPW", "DB root password:", "password" );
970 <p class="config-desc">
971 You will only need this if the database and/or user account
972 above don't already exist
.
973 Do <em
>not
</em
> type in your machine
's root password! MySQL
974 has its own "root" user with a separate password. (It might
975 even be blank, depending on your configuration.)
978 <div class="config-input" style="padding:2em 0 3em">
979 <label class='column
'> </label>
980 <input type="submit" value="Install MediaWiki!" class="btn-install" />
990 /* -------------------------------------------------------------------------------------- */
991 function writeSuccessMessage() {
993 if ( ini_get( 'safe_mode
' ) && !ini_get( 'open_basedir
' ) ) {
995 <p>Installation successful!</p>
996 <p>To complete the installation, please do the following:
998 <li>Download config/LocalSettings.php with your FTP client or file manager</li>
999 <li>Upload it to the parent directory</li>
1000 <li>Delete config/LocalSettings.php</li>
1001 <li>Start using <a href='../index
.php
'>your wiki</a>!
1003 <p>If you are in a shared hosting environment, do <strong>not</strong> just move LocalSettings.php
1004 remotely. LocalSettings.php is currently owned by the user your webserver is running under,
1005 which means that anyone on the same server can read your database password! Downloading
1006 it and uploading it again will hopefully change the ownership to a user ID specific to you.</p>
1009 echo "<p>Installation successful! Move the config/LocalSettings.php file into the parent directory, then follow
1010 <a href='../index
.php
'>this link</a> to your wiki.</p>\n";
1015 function escapePhpString( $string ) {
1016 return strtr( $string,
1027 function writeLocalSettings( $conf ) {
1028 $conf->UseImageResize = $conf->UseImageResize ? 'true' : 'false';
1029 $conf->PasswordSender = $conf->EmergencyContact;
1030 $zlib = ($conf->zlib ? "" : "# ");
1031 $magic = ($conf->ImageMagick ? "" : "# ");
1032 $convert = ($conf->ImageMagick ? $conf->ImageMagick : "/usr/bin/convert" );
1033 $pretty = ($conf->prettyURLs ? "" : "# ");
1034 $ugly = ($conf->prettyURLs ? "# " : "");
1035 $rights = ($conf->RightsUrl) ? "" : "# ";
1036 $hashedUploads = $conf->safeMode ? '' : '# ';
1038 switch ( $conf->Shm
) {
1040 $cacheType = 'CACHE_MEMCACHED';
1041 $mcservers = var_export( $conf->MCServerArray
, true );
1045 $cacheType = 'CACHE_ACCEL';
1046 $mcservers = 'array()';
1049 $cacheType = 'CACHE_NONE';
1050 $mcservers = 'array()';
1053 if ( $conf->Email
== 'email_enabled' ) {
1054 $enableemail = 'true';
1055 $enableuseremail = ( $conf->Emailuser
== 'emailuser_enabled' ) ?
'true' : 'false' ;
1056 $eauthent = ( $conf->Eauthent
== 'eauthent_enabled' ) ?
'true' : 'false' ;
1057 switch ( $conf->Enotif
) {
1058 case 'enotif_usertalk':
1059 $enotifusertalk = 'true';
1060 $enotifwatchlist = 'false';
1062 case 'enotif_allpages':
1063 $enotifusertalk = 'true';
1064 $enotifwatchlist = 'true';
1067 $enotifusertalk = 'false';
1068 $enotifwatchlist = 'false';
1071 $enableuseremail = 'false';
1072 $enableemail = 'false';
1073 $eauthent = 'false';
1074 $enotifusertalk = 'false';
1075 $enotifwatchlist = 'false';
1078 $file = @fopen
( "/dev/urandom", "r" );
1080 $secretKey = bin2hex( fread( $file, 32 ) );
1084 for ( $i=0; $i<8; $i++
) {
1085 $secretKey .= dechex(mt_rand(0, 0x7fffffff));
1087 print "<li>Warning: \$wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.</li>\n";
1090 # Add slashes to strings for double quoting
1091 $slconf = array_map( "escapePhpString", get_object_vars( $conf ) );
1092 if( $conf->License
== 'gfdl' ) {
1093 # Needs literal string interpolation for the current style path
1094 $slconf['RightsIcon'] = $conf->RightsIcon
;
1097 $sep = (DIRECTORY_SEPARATOR
== "\\") ?
";" : ":";
1099 # This file was automatically generated by the MediaWiki installer.
1100 # If you make manual changes, please keep track in case you need to
1101 # recreate them later.
1103 # See includes/DefaultSettings.php for all configurable settings
1104 # and their default values, but don't forget to make changes in _this_
1107 \$IP = \"{$slconf['IP']}\";
1108 ini_set( \"include_path\", \".$sep\$IP$sep\$IP/includes$sep\$IP/languages\" );
1109 require_once( \"includes/DefaultSettings.php\" );
1111 # If PHP's memory limit is very low, some operations may fail.
1112 " . ($conf->raiseMemory ?
'' : '# ' ) . "ini_set( 'memory_limit', '20M' );" . "
1114 if ( \$wgCommandLineMode ) {
1115 if ( isset( \$_SERVER ) && array_key_exists( 'REQUEST_METHOD', \$_SERVER ) ) {
1116 die( \"This script must be run from the command line\\n\" );
1118 } elseif ( empty( \$wgNoOutputBuffer ) ) {
1119 ## Compress output if the browser supports it
1120 {$zlib}if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
1123 \$wgSitename = \"{$slconf['Sitename']}\";
1125 \$wgScriptPath = \"{$slconf['ScriptPath']}\";
1126 \$wgScript = \"\$wgScriptPath/index.php\";
1127 \$wgRedirectScript = \"\$wgScriptPath/redirect.php\";
1129 ## If using PHP as a CGI module, use the ugly URLs
1130 {$pretty}\$wgArticlePath = \"\$wgScript/\$1\";
1131 {$ugly}\$wgArticlePath = \"\$wgScript?title=\$1\";
1133 \$wgStylePath = \"\$wgScriptPath/skins\";
1134 \$wgStyleDirectory = \"\$IP/skins\";
1135 \$wgLogo = \"\$wgStylePath/common/images/wiki.png\";
1137 \$wgUploadPath = \"\$wgScriptPath/images\";
1138 \$wgUploadDirectory = \"\$IP/images\";
1140 \$wgEnableEmail = $enableemail;
1141 \$wgEnableUserEmail = $enableuseremail;
1143 \$wgEmergencyContact = \"{$slconf['EmergencyContact']}\";
1144 \$wgPasswordSender = \"{$slconf['PasswordSender']}\";
1146 ## For a detailed description of the following switches see
1147 ## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
1148 ## There are many more options for fine tuning available see
1149 ## /includes/DefaultSettings.php
1150 ## UPO means: this is also a user preference option
1151 \$wgEnotifUserTalk = $enotifusertalk; # UPO
1152 \$wgEnotifWatchlist = $enotifwatchlist; # UPO
1153 \$wgEmailAuthentication = $eauthent;
1155 \$wgDBserver = \"{$slconf['DBserver']}\";
1156 \$wgDBname = \"{$slconf['DBname']}\";
1157 \$wgDBuser = \"{$slconf['DBuser']}\";
1158 \$wgDBpassword = \"{$slconf['DBpassword']}\";
1159 \$wgDBprefix = \"{$slconf['DBprefix']}\";
1160 \$wgDBtype = \"{$slconf['DBtype']}\";
1162 ## Shared memory settings
1163 \$wgMainCacheType = $cacheType;
1164 \$wgMemCachedServers = $mcservers;
1166 ## To enable image uploads, make sure the 'images' directory
1167 ## is writable, then uncomment this:
1168 # \$wgEnableUploads = true;
1169 \$wgUseImageResize = {$conf->UseImageResize};
1170 {$magic}\$wgUseImageMagick = true;
1171 {$magic}\$wgImageMagickConvertCommand = \"{$convert}\";
1173 ## If you want to use image uploads under safe mode,
1174 ## create the directories images/archive, images/thumb and
1175 ## images/temp, and make them all writable. Then uncomment
1176 ## this, if it's not already uncommented:
1177 {$hashedUploads}\$wgHashedUploadDirectory = false;
1179 ## If you have the appropriate support software installed
1180 ## you can enable inline LaTeX equations:
1181 # \$wgUseTeX = true;
1182 \$wgMathPath = \"{\$wgUploadPath}/math\";
1183 \$wgMathDirectory = \"{\$wgUploadDirectory}/math\";
1184 \$wgTmpDirectory = \"{\$wgUploadDirectory}/tmp\";
1186 \$wgLocalInterwiki = \$wgSitename;
1188 \$wgLanguageCode = \"{$slconf['LanguageCode']}\";
1190 \$wgProxyKey = \"$secretKey\";
1192 ## Default skin: you can change the default skin. Use the internal symbolic
1193 ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
1194 # \$wgDefaultSkin = 'monobook';
1196 ## For attaching licensing metadata to pages, and displaying an
1197 ## appropriate copyright notice / icon. GNU Free Documentation
1198 ## License and Creative Commons licenses are supported so far.
1199 {$rights}\$wgEnableCreativeCommonsRdf = true;
1200 \$wgRightsPage = \"\"; # Set to the title of a wiki page that describes your license/copyright
1201 \$wgRightsUrl = \"{$slconf['RightsUrl']}\";
1202 \$wgRightsText = \"{$slconf['RightsText']}\";
1203 \$wgRightsIcon = \"{$slconf['RightsIcon']}\";
1204 # \$wgRightsCode = \"{$slconf['RightsCode']}\"; # Not yet used
1206 \$wgDiff3 = \"{$slconf['diff3']}\";
1208 // Keep things in Unix line endings internally;
1209 // the system will write out as local text type.
1210 return str_replace( "\r\n", "\n", $localsettings );
1213 function dieout( $text ) {
1214 die( $text . "\n\n</body>\n</html>" );
1217 function importVar( &$var, $name, $default = "" ) {
1218 if( isset( $var[$name] ) ) {
1219 $retval = $var[$name];
1220 if ( get_magic_quotes_gpc() ) {
1221 $retval = stripslashes( $retval );
1229 function importPost( $name, $default = "" ) {
1230 return importVar( $_POST, $name, $default );
1233 function importRequest( $name, $default = "" ) {
1234 return importVar( $_REQUEST, $name, $default );
1239 function aField( &$conf, $field, $text, $type = "text", $value = "" ) {
1242 $xtype = "type=\"$type\"";
1247 if(!(isset($id)) or ($id == "") ) $id = $field;
1248 $nolabel = ($type == "radio") ||
($type == "hidden");
1250 if ($type == 'radio')
1251 $id .= $radioCount++
;
1256 echo "\t\t<label class='column' for=\"$id\">$text</label>\n";
1259 if( $type == "radio" && $value == $conf->$field ) {
1260 $checked = "checked='checked'";
1264 echo "\t\t<input $xtype name=\"$field\" id=\"$id\" class=\"iput-$type\" $checked value=\"";
1265 if( $type == "radio" ) {
1266 echo htmlspecialchars( $value );
1268 echo htmlspecialchars( $conf->$field );
1272 echo " $text</label>\n";
1276 if(isset($errs[$field])) echo "<span class='error'>" . $errs[$field] . "</span>\n";
1279 function getLanguageList() {
1280 global $wgLanguageNames;
1281 if( !isset( $wgLanguageNames ) ) {
1282 $wgContLanguageCode = "xxx";
1283 function wfLocalUrl( $x ) { return $x; }
1284 function wfLocalUrlE( $x ) { return $x; }
1285 require_once( "languages/Names.php" );
1290 $d = opendir( "../languages" );
1291 while( false !== ($f = readdir( $d ) ) ) {
1292 if( preg_match( '/Language([A-Z][a-z_]+)\.php$/', $f, $m ) ) {
1293 $code = str_replace( '_', '-', strtolower( $m[1] ) );
1294 if( isset( $wgLanguageNames[$code] ) ) {
1295 $name = $code . ' - ' . $wgLanguageNames[$code];
1299 $codes[$code] = $name;
1307 #Check for location of an executable
1308 # @param string $loc single location to check
1309 # @param array $names filenames to check for.
1310 # @param mixed $versioninfo array of details to use when checking version, use false for no version checking
1311 function locate_executable($loc, $names, $versioninfo = false) {
1312 if (!is_array($names))
1313 $names = array($names);
1315 foreach ($names as $name) {
1316 if (file_exists("$loc/$name")) {
1318 return "$loc/$name";
1320 $file = str_replace('$1', "$loc/$name", $versioninfo[0]);
1321 if (strstr(`
$file`
, $versioninfo[1]) !== false)
1322 return "$loc/$name";
1328 function get_db_version() {
1329 global $wgDatabase, $conf;
1330 if ($conf->DBtype
== 'mysql')
1331 return mysql_get_server_info( $wgDatabase->mConn
);
1332 else if ($conf->DBtype
== 'oracle')
1333 return oci_server_version($wgDatabase->mConn
);
1336 # Test a memcached server
1337 function testMemcachedServer( $server ) {
1338 $hostport = explode(":", $server);
1341 if ( !function_exists( 'fsockopen' ) ) {
1342 $errstr = "Can't connect to memcached, fsockopen() not present";
1344 if ( !$errstr && count( $hostport ) != 2 ) {
1345 $errstr = 'Please specify host and port';
1346 var_dump( $hostport );
1349 list( $host, $port ) = $hostport;
1353 $fp = @fsockopen
( $host, $port, $errno, $fsockerr, 1.0 );
1354 if ( $fp === false ) {
1355 $errstr = "Cannot connect to memcached on $host:$port : $fsockerr";
1359 $command = "version\r\n";
1360 $bytes = fwrite( $fp, $command );
1361 if ( $bytes != strlen( $command ) ) {
1362 $errstr = "Cannot write to memcached socket on $host:$port";
1366 $expected = "VERSION ";
1367 $response = fread( $fp, strlen( $expected ) );
1368 if ( $response != $expected ) {
1369 $errstr = "Didn't get correct memcached response from $host:$port";
1376 echo "<li>Connected to memcached on $host:$port successfully";
1382 <div
class="license">
1384 <p
>This program is free software
; you can redistribute it
and/or modify
1385 it under the terms of the GNU General
Public License
as published by
1386 the Free Software Foundation
; either version
2 of the License
, or
1387 (at your option
) any later version
.</p
>
1389 <p
>This program is distributed in the hope that it will be useful
,
1390 but WITHOUT ANY WARRANTY
; without even the implied warranty of
1391 MERCHANTABILITY
or FITNESS
FOR A PARTICULAR PURPOSE
. See the
1392 GNU General
Public License
for more details
.</p
>
1394 <p
>You should have received
<a href
="../COPYING">a copy of the GNU General
Public License
</a
>
1395 along with this program
; if not
, write to the Free Software
1396 Foundation
, Inc
., 59 Temple Place
- Suite
330, Boston
, MA
02111-1307, USA
.
1397 or <a href
="http://www.gnu.org/copyleft/gpl.html">read it online
</a
></p
>
1403 <div id
="column-one">
1404 <div
class="portlet" id
="p-logo">
1405 <a style
="background-image: url(../skins/common/images/mediawiki.png);"
1406 href
="/phase3/index.php/Main_Page"
1407 title
="Main Page"></a
>
1409 <script type
="text/javascript"> if (window
.isMSIE55
) fixalpha(); </script
>
1410 <div
class='portlet'><div
class='pBody'>
1411 <p style
="font-size:90%"><strong
><a href
="http://www.mediawiki.org/">MediaWiki
</a
></strong
> is
Copyright (C
) 2001-2005 by Magnus Manske
, Brion Vibber
, Lee Daniel Crocker
, Tim Starling
, Erik M
ö
;ller
, Gabriel Wicke
and others
.</p
>
1413 <li
><a href
="../README">Readme
</a
></li
>
1414 <li
><a href
="../RELEASE-NOTES">Release notes
</a
></li
>
1415 <li
><a href
="../docs/">doc
/</a
></li
>
1416 <li
><a href
="http://meta.wikipedia.org/wiki/MediaWiki_User's_Guide">User
's Guide</a></li>