From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- config/index.php | 55 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 16 deletions(-) (limited to 'config') diff --git a/config/index.php b/config/index.php index cef32248..ced8bc92 100644 --- a/config/index.php +++ b/config/index.php @@ -67,11 +67,13 @@ $ourdb['postgres']['compile'] = 'pgsql'; $ourdb['postgres']['bgcolor'] = '#aaccff'; $ourdb['postgres']['rootuser'] = 'postgres'; -$ourdb['sqlite']['fullname'] = 'SQLite'; -$ourdb['sqlite']['havedriver'] = 0; -$ourdb['sqlite']['compile'] = 'pdo_sqlite'; -$ourdb['sqlite']['bgcolor'] = '#b1ebb1'; -$ourdb['sqlite']['rootuser'] = ''; +/*** SQLITE DISABLED -- USE MEDIAWIKI 1.15 */ +#$ourdb['sqlite']['fullname'] = 'SQLite'; +#$ourdb['sqlite']['havedriver'] = 0; +#$ourdb['sqlite']['compile'] = 'pdo_sqlite'; +#$ourdb['sqlite']['bgcolor'] = '#b1ebb1'; +#$ourdb['sqlite']['rootuser'] = ''; +/************************************/ $ourdb['mssql']['fullname'] = 'MSSQL'; $ourdb['mssql']['havedriver'] = 0; @@ -688,13 +690,23 @@ if( $conf->SysopName ) { } $conf->License = importRequest( "License", "none" ); -if( $conf->License == "gfdl" ) { - $conf->RightsUrl = "http://www.gnu.org/copyleft/fdl.html"; +if( $conf->License == "gfdl1_2" ) { + $conf->RightsUrl = "http://www.gnu.org/licenses/old-licenses/fdl-1.2.txt"; $conf->RightsText = "GNU Free Documentation License 1.2"; - $conf->RightsCode = "gfdl"; + $conf->RightsCode = "gfdl1_2"; + $conf->RightsIcon = '${wgScriptPath}/skins/common/images/gnu-fdl.png'; +} elseif( $conf->License == "gfdl1_3" ) { + $conf->RightsUrl = "http://www.gnu.org/copyleft/fdl.html"; + $conf->RightsText = "GNU Free Documentation License 1.3"; + $conf->RightsCode = "gfdl1_3"; $conf->RightsIcon = '${wgScriptPath}/skins/common/images/gnu-fdl.png'; } elseif( $conf->License == "none" ) { $conf->RightsUrl = $conf->RightsText = $conf->RightsCode = $conf->RightsIcon = ""; +} elseif( $conf->License == "pd" ) { + $conf->RightsUrl = "http://creativecommons.org/licenses/publicdomain/"; + $conf->RightsText = "Public Domain"; + $conf->RightsCode = "pd"; + $conf->RightsIcon = '${wgScriptPath}/skins/common/images/public-domain.png'; } else { $conf->RightsUrl = importRequest( "RightsUrl", "" ); $conf->RightsText = importRequest( "RightsText", "" ); @@ -890,7 +902,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { continue; } - print "
  • Connected to " . htmlspecialchars( $myver ); + print "
  • Connected to " . htmlspecialchars( "{$conf->DBtype} $myver" ); if ($conf->DBtype == 'mysql') { if( version_compare( $myver, "4.0.14" ) < 0 ) { print "
  • \n"; @@ -941,7 +953,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { $wgDatabase->selectDB( $wgDBname ); } else if ($conf->DBtype == 'postgres') { - if( version_compare( $myver, "PostgreSQL 8.0" ) < 0 ) { + if( version_compare( $myver, "8.0" ) < 0 ) { dieout( "Postgres 8.0 or later is required. Aborting." ); } } @@ -1193,7 +1205,9 @@ if( count( $errs ) ) {