Mglaser has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/57728


Change subject: Added configuration for 1.20.3 version
......................................................................

Added configuration for 1.20.3 version

Change-Id: Iefb3bf77252386fef1fb5123edacd2b163e4c990
---
A configuration-1.20.3/TBEX.xml
A configuration-1.20.3/WpiSettings.php
A configuration-1.20.3/install.sql
A configuration-1.20.3/manifest.xml
A configuration-1.20.3/mediawiki/mw-wpi/index.php
A configuration-1.20.3/mediawiki/mw-wpi/index.php5
A configuration-1.20.3/mediawiki/mw-wpi/overrides.php
A configuration-1.20.3/parameters.xml
8 files changed, 813 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/packages/WPI 
refs/changes/28/57728/1

diff --git a/configuration-1.20.3/TBEX.xml b/configuration-1.20.3/TBEX.xml
new file mode 100644
index 0000000..f0270ed
--- /dev/null
+++ b/configuration-1.20.3/TBEX.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WebPlatform>
+  <Links>
+    <AddLink InDashboard="True">
+      <Title>Start Here</Title>
+      <Description>Complete MediaWiki Installation.</Description>
+      <Uri>/index.php</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/MediaWiki-extensions-icon.svg/52px-MediaWiki-extensions-icon.svg.png</ImageUri>
+    </AddLink>
+    <AddLink InDashboard="True" InLearn="True">
+      <Title>About MediaWiki</Title>
+      <Description>MediaWiki is a free software open source wiki package 
written in PHP, originally for use on Wikipedia. It is now used by several 
other projects of the non-profit Wikimedia Foundation and by many other wikis, 
including this website.</Description>
+      <Uri>http://www.mediawiki.org/wiki/MediaWiki</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Mediawiki-logo.png/80px-Mediawiki-logo.png</ImageUri>
+    </AddLink>    
+    <AddLink InDashboard="True" InLearn="True">
+      <Title>System admin hub - Everything for the system 
administrator.</Title>
+      <Description>This is a place for system administrators to get help 
installing, upgrading, configuring or maintaining the MediaWiki software on a 
third-party wiki..</Description>
+      <Uri>http://www.mediawiki.org/wiki/Sysadmin_hub</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/MediaWiki-sysadmins-icon.svg/175px-MediaWiki-sysadmins-icon.svg.png</ImageUri>
+    </AddLink>
+    <AddLink InDashboard="True">
+      <Title>Community</Title>
+      <Description>Find: Forums, Documentation, FAQ's and Help</Description>
+      <Uri>http://www.mediawiki.org/wiki/Project:Help</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Mediawiki-logo.png/80px-Mediawiki-logo.png</ImageUri>
+    </AddLink>
+    <AddLink InDashboard="True">
+      <Title>Developmer hub</Title>
+      <Description>This is an overview of MediaWiki development, including 
links to the key documents, resources and tools available to 
developers.</Description>
+      <Uri>http://www.mediawiki.org/wiki/Developer_hub</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/0/0b/Crystal_Clear_app_tutorials.png</ImageUri>
+    </AddLink>
+    <AddLink InDashboard="True">
+      <Title>Windows Azure Storage</Title>
+      <Description>This is a documentation about how to store files in the 
Windows Azure cloud, using the Windows Azure Storage Service.</Description>
+      <Uri>http://www.mediawiki.org/wiki/WPI/WindowsAzureStorage</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/0/0b/Crystal_Clear_app_tutorials.png</ImageUri>
+    </AddLink>
+   </Links>
+  <Ribbon>
+    <AddRibbonButton>
+      <Label>Site Admin</Label>
+      <Uri>/index.php?title=Special%3ASpecialPages</Uri>
+      
<ImageUri>http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/MediaWiki-extensions-icon.svg/52px-MediaWiki-extensions-icon.svg.png</ImageUri>
+    </AddRibbonButton>
+  </Ribbon>
+
+  <PathProtection>
+    <AllowPath AllowNested="False">
+      <RelativePath>web.config</RelativePath>
+    </AllowPath>
+    <ProtectPath>
+      <RelativePath>bin</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>docs</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>extensions</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>images</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>includes</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>languages</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>maintenance</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>mw-config</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>mw-wpi</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>resources</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>serialized</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>tests</RelativePath>
+    </ProtectPath>
+    <ProtectPath>
+      <RelativePath>*.php</RelativePath>
+    </ProtectPath>
+    
+  </PathProtection>
+
+</WebPlatform>
\ No newline at end of file
diff --git a/configuration-1.20.3/WpiSettings.php 
b/configuration-1.20.3/WpiSettings.php
new file mode 100644
index 0000000..2daff13
--- /dev/null
+++ b/configuration-1.20.3/WpiSettings.php
@@ -0,0 +1,26 @@
+<?php
+
+$wgWPIOptionStore = array(
+               //Screen1
+               'lang' => 'PlaceholderForLanguage',
+               //Screen2
+               'dbserver' => 'PlaceholderForDbServer',
+               'dbname' => 'PlaceholderForDbName',
+               'dbprefix' => 'PlaceholderForDbPrefix',
+               'dbuser' => 'PlaceholderForDbUsername',
+               'dbpass' => 'PlaceholderForDbPassword',
+               'installdbuser' => 'PlaceholderForDbAdminUsername',
+               'installdbpass' => 'PlaceholderForDbAdminPassword',
+               //Screen3
+               'sitename' => 'PlaceholderForSitename',
+               'adminname' => 'PlaceholderForAdminname',
+               'pass' => 'PlaceholderForAdminpass',
+               
+               'scriptpath' => 'PlaceholderForScriptPath',
+           'enablefileupload' => 'PlaceholderForFileUpload',
+               'usewindowsazure' => 'PlaceholderForUseAzure',
+               'azurehost' => 'PlaceholderForAzureHost',
+               'azureaccount' => 'PlaceholderForAzureAccount',
+               'azurekey' => 'PlaceholderForAzureKey',
+        'wikiId' => 'PlaceholderForWikiId'
+       );
\ No newline at end of file
diff --git a/configuration-1.20.3/install.sql b/configuration-1.20.3/install.sql
new file mode 100644
index 0000000..a7ffb5f
--- /dev/null
+++ b/configuration-1.20.3/install.sql
@@ -0,0 +1,15 @@
+USE PlaceholderForDbName;
+
+DROP PROCEDURE IF EXISTS add_user ;
+
+CREATE PROCEDURE add_user()
+BEGIN
+DECLARE EXIT HANDLER FOR 1044 BEGIN END;
+GRANT ALL PRIVILEGES ON PlaceholderForDbName.* to 
'PlaceholderForDbUsername'@'PlaceholderForDbServer' IDENTIFIED BY 
'PlaceholderForDbPassword';
+FLUSH PRIVILEGES;
+END
+;
+
+CALL add_user() ;
+
+DROP PROCEDURE IF EXISTS add_user ;
diff --git a/configuration-1.20.3/manifest.xml 
b/configuration-1.20.3/manifest.xml
new file mode 100644
index 0000000..5d11449
--- /dev/null
+++ b/configuration-1.20.3/manifest.xml
@@ -0,0 +1,11 @@
+<MSDeploy.iisApp>
+       <iisApp path="mediawiki"/>
+       <dbmysql path="install.sql" />
+       <setAcl path="mediawiki"
+               setAclUser="anonymousAuthenticationUser"
+               setAclAccess="Modify" />
+       <setAcl path="mediawiki/images"
+               setAclUser="anonymousAuthenticationUser"
+               setAclAccess="Modify" />
+       <alias from="WpiSettings.php" to="mediawiki/mw-config/WpiSettings.php" 
/>
+</MSDeploy.iisApp>
diff --git a/configuration-1.20.3/mediawiki/mw-wpi/index.php 
b/configuration-1.20.3/mediawiki/mw-wpi/index.php
new file mode 100644
index 0000000..6d467b0
--- /dev/null
+++ b/configuration-1.20.3/mediawiki/mw-wpi/index.php
@@ -0,0 +1,140 @@
+<?php
+/**
+ * New version of MediaWiki web-based config/installation
+ *
+ * @file
+ */
+
+define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' );
+define( 'MEDIAWIKI_INSTALL', true );
+
+chdir( dirname( __DIR__ ) );
+if ( isset( $_SERVER['MW_COMPILED'] ) ) {
+       require ( 'core/includes/WebStart.php' );
+} else {
+       require( dirname( __DIR__ ) . '/includes/WebStart.php' );
+}
+
+require( dirname( __FILE__ ) . '/WpiSettings.php' );
+
+wfInstallerMain();
+
+function wfInstallerMain() {
+//     global $wgRequest, $wgLang, $wgMetaNamespace, 
$wgCanonicalNamespaceNames;
+       global $IP, $wgWPIOptionStore, $wgLanguageCode, $wgEnableUploads;
+
+       $siteName = $wgWPIOptionStore['sitename'];
+       $adminName = $wgWPIOptionStore['adminname'];
+       $wgLanguageCode = $wgWPIOptionStore['lang'];
+       $wgEnableUploads = (strtolower($wgWPIOptionStore['enablefileupload']) 
== 'true');
+       
+       $wgWPIOptionStore['scriptpath'] = getScriptPath();
+       
+       ob_start();
+       echo "<pre>";
+       
+       $installer = InstallerOverrides::getCliInstaller( $siteName, 
$adminName, $wgWPIOptionStore );
+       
+       $extensions = array();
+       if ( strtolower($wgWPIOptionStore['usewindowsazure']) == "true" ) {
+               $extensions[] = 'WindowsAzureStorage';
+               $extensions[] = 'WindowsAzureSDK';
+       }
+       
+       $installer->setVar( '_Extensions', $extensions );
+
+       $status = $installer->doEnvironmentChecks();
+       if( $status->isGood() ) {
+               $installer->showMessage( 'config-env-good' );
+               $installer->execute();
+               $installer->writeConfigurationFile( $IP );
+               // Modify LocalSettings for WindowsAzure
+               if ( strtolower($wgWPIOptionStore['usewindowsazure']) == "true" 
) {
+                       $azureSettings = "
+\$wgFileBackends[] = array(
+               'name'        => 'azure-backend',
+               'class'       => 'WindowsAzureFileBackend',
+               'lockManager' => 'nullLockManager',
+               'azureHost'      => '{$wgWPIOptionStore['azurehost']}',
+               'azureAccount'   => '{$wgWPIOptionStore['azureaccount']}',
+               'azureKey'       => '{$wgWPIOptionStore['azurekey']}',
+
+               //IMPORTANT: Mind the container naming conventions! 
http://msdn.microsoft.com/en-us/library/dd135715.aspx
+               'wikiId'       => '{$wgWPIOptionStore['wikiId']}',
+               'containerPaths' => array(
+                               'media-public'  => 'media-public',
+                               'media-thumb'   => 'media-thumb',
+                               'media-deleted' => 'media-deleted',
+                               'media-temp'    => 'media-temp',
+
+               )
+);
+
+\$wgLocalFileRepo = array (
+       'class'             => 'LocalRepo',
+       'name'              => 'local',
+       'scriptDirUrl'      => '/php/mediawiki-filebackend-azure',
+       'scriptExtension'   => '.php',
+       'url'               => \$wgScriptPath.'/img_auth.php', // It is 
important to set this to img_auth. Basically, there is no alternative.
+       'hashLevels'        => 2,
+       'thumbScriptUrl'    => false,
+       'transformVia404'   => false,
+       'deletedHashLevels' => 3,
+       'backend'           => 'azure-backend',
+       'zones' => 
+                       array (
+                                       'public' => 
+                                                       array (
+                                                               'container' => 
'local-public',
+                                                               'directory' => 
'',
+                                                       ),
+                                       'thumb' => 
+                                                       array(
+                                                               'container' => 
'local-public',
+                                                               'directory' => 
'thumb',
+                                                       ),
+                                       'deleted' => 
+                                                       array (
+                                                               'container' => 
'local-public',
+                                                               'directory' => 
'deleted',
+                                                       ),
+                                       'temp' => 
+                                                       array(
+                                                               'container' => 
'local-public',
+                                                               'directory' => 
'temp',
+                                                       )
+               )
+);
+
+\$wgImgAuthPublicTest = false;
+";
+                       file_put_contents( $IP.'/LocalSettings.php', 
$azureSettings, FILE_APPEND );
+               }
+       }
+       echo "</pre>";
+       
+       ob_end_clean();
+       
+       header('Location: ../');
+}
+
+/**
+ * Get the script path
+ * 
+ * @return String $wpiScriptPath The web platform installer script path
+ */
+
+function getScriptPath() {
+    //setting the default value as empty
+    $wpiScriptPath = '';
+    $path = false;
+       if ( !empty( $_SERVER['PHP_SELF'] ) ) {
+               $path = $_SERVER['PHP_SELF'];
+       } elseif ( !empty( $_SERVER['SCRIPT_NAME'] ) ) {
+               $path = $_SERVER['SCRIPT_NAME'];
+       }
+       if ($path !== false) {
+               $wpiScriptPath = preg_replace( '{^(.*)/(mw-)?config.*$}', '$1', 
$path );
+       }
+       return $wpiScriptPath;
+}
diff --git a/configuration-1.20.3/mediawiki/mw-wpi/index.php5 
b/configuration-1.20.3/mediawiki/mw-wpi/index.php5
new file mode 100644
index 0000000..8e6ceda
--- /dev/null
+++ b/configuration-1.20.3/mediawiki/mw-wpi/index.php5
@@ -0,0 +1,4 @@
+<?php
+
+define('MW_INSTALL_PHP5_EXT', 1);
+require './index.php';
diff --git a/configuration-1.20.3/mediawiki/mw-wpi/overrides.php 
b/configuration-1.20.3/mediawiki/mw-wpi/overrides.php
new file mode 100644
index 0000000..ae98295
--- /dev/null
+++ b/configuration-1.20.3/mediawiki/mw-wpi/overrides.php
@@ -0,0 +1,63 @@
+<?php
+/**
+ * MediaWiki installer overrides.
+ * Modify this file if you are a packager who needs to modify the behavior of 
the MediaWiki installer.
+ * Altering it is preferred over changing anything in /includes.
+ *
+ * Note: this file doesn't gets included from a global scope, don't use 
globals directly.
+ */
+
+/*
+
+Example of modifications:
+
+       public static function getLocalSettingsGenerator( Installer $installer 
) {
+               return new MyLocalSettingsGenerator( $installer );
+       }
+
+Then add the following to the bottom of this file:
+
+class MyLocalSettingsGenerator extends LocalSettingsGenerator {
+       function getText() {
+               // Modify an existing setting
+               $this->values['wgResourceLoaderMaxQueryLength'] = 512;
+               // add a new setting
+               $ls = parent::getText();
+               return $ls . "\n\$wgUseTex = true;\n";
+       }
+}
+*/
+
+/**
+ * @since 1.20
+ */
+class InstallerOverrides {
+       /**
+        * Instantiates and returns an instance of LocalSettingsGenerator or 
its descendant classes
+        * @param Installer $installer
+        * @return LocalSettingsGenerator
+        */
+       public static function getLocalSettingsGenerator( Installer $installer 
) {
+               return new LocalSettingsGenerator( $installer );
+       }
+
+       /**
+        * Instantiates and returns an instance of WebInstaller or its 
descendant classes
+        * @param WebRequest $request
+        * @return WebInstaller
+        */
+       public static function getWebInstaller( WebRequest $request ) {
+               return new WebInstaller( $request );
+       }
+
+       /**
+        * Instantiates and returns an instance of CliInstaller or its 
descendant classes
+        * @param string $siteName
+        * @param string|null $admin
+        * @param array $options
+        * @return CliInstaller
+        */
+       public static function getCliInstaller( $siteName, $admin = null, array 
$options = array() ) {
+               return new CliInstaller( $siteName, $admin, $options );
+       }
+}
diff --git a/configuration-1.20.3/parameters.xml 
b/configuration-1.20.3/parameters.xml
new file mode 100644
index 0000000..6045577
--- /dev/null
+++ b/configuration-1.20.3/parameters.xml
@@ -0,0 +1,459 @@
+<parameters>
+       <!--  MediaWiki parameters.xml file -->
+       <!-- Hallo Welt! Medienwerkstatt GmbH, http://www.hallowelt.biz -->
+
+       <!--  One of the new features provides for localization of text
+               strings within the parameters.xml file.  This localization can
+               be applied to "description" and "friendlyName" attributes of a
+               parameter.
+
+               NOTE: There are a few parameters for mediawiki which are not
+               in the list of well known parameters.  These parameters have
+               English descriptions and friendlyNames only.
+       -->
+
+       <parameter
+               name="AppPath"
+               defaultValue="Default Web Site/mediawiki"
+               tags="iisapp" >
+
+               <parameterEntry
+                       type="ProviderPath"
+                       scope="iisapp"
+                       match="mediawiki" />
+               <parameterEntry
+                       type="ProviderPath"
+                       scope="setacl"
+                       match="mediawiki" />
+               <parameterEntry
+                       type="ProviderPath"
+                       scope="alias"
+                       match="mediawiki" />
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForScriptPath" />
+
+       </parameter>
+  
+  <parameter name="Site URL" description="The base URL of the server, 
including protocol and without the trailing slash ( i.e., http://localhost:80 
)" defaultValue="http://localhost"; tags="AppURL">
+  </parameter>
+  <parameter name="Automatic Site URL PostInstall" defaultValue='$wgServer  = 
"{Site URL}";' tags="Hidden" >
+    <parameterEntry type="TextFile" scope="\\LocalSettings.php$" 
match='\$wgServer\s*=\s*"([^"]*)";' />
+  </parameter>
+  
+       <parameter
+               name="DbServer"
+               defaultValue="localhost"
+               tags="MySQL,dbServer" >
+
+               
+               <parameterEntry
+                       type="TextFile"
+                       scope="install.sql"
+                       match="PlaceholderForDbServer" />
+                       
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbServer" />
+
+       </parameter>
+       <parameter name="Automatic Dbserver" defaultValue ='$wgDBserver = 
"{DbServer}";' tags="MySQL,Hidden">
+               <parameterEntry type="TextFile" scope="\\LocalSettings.php" 
match='\$wgDBserver\s*=\s*"([^"]*)";' />
+       </parameter>
+       <!-- This parameter prompts the user for the database name. We have
+               set a validation RegEx on this parameter, as MySQL will not 
accept
+               a username that has more than 16 characters.
+       -->
+       
+       <parameter
+               name="DbName"
+               defaultValue="wikidb"
+               tags="MySQL,dbName" >
+
+               <parameterValidation
+                       type="RegularExpression"
+                       validationString="^\w{1,16}$" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="install.sql"
+                       match="PlaceholderForDbName" />
+                       
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbName" />
+
+       </parameter>
+       <parameter name="Automatic Dbname" defaultValue ='$wgDBname  = 
"{DbName}";' tags="MySQL,Hidden" >
+               <parameterEntry type="TextFile" scope="\\LocalSettings.php" 
match='\$wgDBname\s*=\s*"([^"]*)";' />
+       </parameter>
+       
+       <!-- This parameter prompts the user for the database table prefix. We 
have
+               set a validation RegEx on this parameter, as MySQL will not 
accept
+               a username that has more than 16 characters.
+       -->
+       
+       <parameter
+               name="DbPrefix"
+               defaultValue=""
+               tags="MySQL,NoStore,dbPrefix" 
+               friendlyName="MySQL table prefix"
+               description="Please provide a table prefix if you are using 
several web platforms in one database." >
+
+    <parameterValidation kind="AllowEmpty" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbPrefix" />
+                       
+
+               
+               <description culture="en">Please provide a table prefix if you 
are using several web platforms in one database.</description>
+               <description culture="de">Bitte geben Sie ein Tabellenpräfix 
an, wenn Sie mehrere Webplattformen in einer Datenbank nutzen 
wollen.</description>
+               <friendlyName culture="en">MySQL table prefix</friendlyName>
+               <friendlyName culture="de">MySQL Tabellenpräfix</friendlyName>
+
+       </parameter>
+  <!--
+       <parameter name="Automatic Dbprefix" defaultValue ='$wgDBprefix  = 
"{DbPrefix}";' tags="MySQL,Hidden" >
+               <parameterEntry type="TextFile" scope="\\LocalSettings.php" 
match='\$wgDBprefix\s*=\s*"([^"]*)";' />
+       </parameter>
+  -->
+
+       <!-- This parameter prompts the user for the database username. We
+               have set a validation RegEx on this parameter, as MySQL will not
+               accept a username that has more than 16 characters.
+       -->
+       
+       <parameter
+               name="DbUsername"
+               defaultValue="wikiuser"
+               tags="MySQL,DbUsername" >
+
+               <parameterValidation
+                       type="RegularExpression"
+                       validationString="^\w{1,16}$" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="install.sql"
+                       match="PlaceholderForDbUsername" />
+                       
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbUsername" />
+
+       </parameter>
+       <parameter name="Automatic DbUsername" defaultValue ='$wgDBuser  = 
"{DbUsername}";' tags="MySQL,Hidden" >
+               <parameterEntry type="TextFile" scope="\\LocalSettings.php" 
match='\$wgDBuser\s*=\s*"([^"]*)";' />
+       </parameter>
+       <!-- This parameter prompts the user for the database user's password.
+       -->
+
+       <parameter
+               name="DbPassword"
+               tags="New,Password,MySQL,DbUserPassword" >
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="install.sql"
+                       match="PlaceholderForDbPassword" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbPassword" />
+
+       </parameter>
+
+       <parameter name="Automatic DbPassword" defaultValue ='$wgDBpassword  = 
"{DbPassword}";' tags="MySQL,Hidden">
+               <parameterEntry type="TextFile" scope="\\LocalSettings.php" 
match='\$wgDBpassword\s*=\s*"([^"]*)";' />
+       </parameter>
+
+       <!-- Prompts for the admin creds and uses it for the administrator
+               connection string. This is used to create a login and assign
+               permissions. The MySQL tag indicates it is a parameter required
+               for MySQL.  The DbAdminUsername tag indicates it should be used
+               when the user is creating a new database. If they're not, it
+               can be filled in with the DbUsername value.  The UI should be
+               able to figure out whether or not the user needs to be prompted
+               for this.
+       -->
+
+       <parameter
+               name="DbAdminUsername"
+               defaultValue="root"
+               tags="MySQL,DbAdminUsername" >
+               
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbAdminUsername" />
+
+       </parameter>
+
+       <!-- Prompts for the admin password and uses it for the administrator
+                connection string.
+       -->
+
+       <parameter
+               name="DbAdminPassword"
+               tags="Password,MySQL,DbAdminPassword" >
+               
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForDbAdminPassword" />
+
+       </parameter>
+
+       <parameter
+               name="Connection String"
+               
defaultValue="Server={DbServer};Database={DbName};uid={DbAdminUsername};Pwd={DbAdminPassword};"
+               tags="Hidden,MySQLConnectionString,Validate,MySQL" >
+
+               <parameterEntry
+                       type="ProviderPath"
+                       scope="dbmysql"
+                       match="install.sql" />
+
+       </parameter>
+
+
+       <!-- MediaWiki specific parameters -->
+
+       <!-- Set the correct path for the ACL based on the AppPath selected
+               by the user.
+       -->
+
+       <parameter
+               name="SetAclParameter1"
+               defaultValue="{AppPath}/images"
+               tags="Hidden" >
+
+               <parameterEntry
+                       type="ProviderPath"
+                       scope="setAcl"
+                       match="mediawiki/images$" />
+
+       </parameter>
+       
+       <parameter
+               tags="MediaWiki,NoStore"
+               name="sitename"
+               defaultValue="MyWiki"
+               friendlyName="MediaWiki Sitename"
+               description="Please provide a name for your MediaWiki site." >
+               
+               <description culture="en">Please provide a name for your 
MediaWiki site.</description>
+               <description culture="de">Bitte geben Sie einen Namen für Ihre 
MediaWiki-Site ein.</description>
+               <friendlyName culture="en">MediaWiki Sitename</friendlyName>
+               <friendlyName culture="de">MediaWiki Sitename</friendlyName>
+
+               <!-- Sitename must not be "MediaWiki" -->
+               <parameterValidation
+                       type="RegularExpression"
+                       validationString="^((?![M|m]edia[W|w]iki).)*$" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForSitename" />
+
+       </parameter>
+       
+       <parameter
+               tags="MediaWiki,NoStore"
+               name="language"
+               defaultValue="en"
+               friendlyName="MediaWiki site language"
+               description="Please provide a default language for your 
MediaWiki site." >
+               
+               <description culture="en">Please provide a default language for 
your MediaWiki site.</description>
+               <description culture="de">Bitte geben Sie eine Standardsprache 
für Ihre MediaWiki-Site ein.</description>
+               <friendlyName culture="en">MediaWiki site 
language</friendlyName>
+               <friendlyName culture="de">MediaWiki 
Standardsprache</friendlyName>
+
+               <parameterValidation
+                       type="Enumeration" validationString="de,en" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForLanguage" />
+
+       </parameter>
+       
+       <parameter
+               tags="MediaWiki,NoStore"
+               name="adminname"
+               defaultValue="WikiSysop"
+               friendlyName="Name for MediaWiki administrator"
+               description="Please provide a name for your MediaWiki 
administrator account." >
+               
+               <description culture="en">Please provide a name for your 
MediaWiki administrator account.</description>
+               <description culture="de">Bitte geben Sie einen Namen für Ihren 
MediaWiki Administratoraccount ein.</description>
+               <friendlyName culture="en">MediaWiki 
administrator</friendlyName>
+               <friendlyName culture="de">MediaWiki 
Administrator</friendlyName>
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForAdminname" />
+
+       </parameter>
+       
+       <parameter
+               tags="MediaWiki,NoStore,Password,New"
+               name="adminpass"
+               defaultValue=""
+               friendlyName="Password for MediaWiki administrator"
+               description="Please provide a password for your MediaWiki 
administrator account." >
+               
+               <description culture="en">Please provide a password for your 
MediaWiki administrator account.</description>
+               <description culture="de">Bitte geben Sie eine Passwort für 
Ihren MediaWiki Administratoraccount ein.</description>
+               <friendlyName culture="en">MediaWiki administrator 
password</friendlyName>
+               <friendlyName culture="de">MediaWiki Administrator 
Passwort</friendlyName>
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForAdminpass" />
+
+       </parameter>
+  
+  <!-- option to enable file upload on mediawiki -->
+  <parameter 
+    name="enablefileupload" 
+    defaultValue="False" 
+    friendlyName="Enable MediaWiki file upload" 
+    tags="MediaWiki,NoStore" 
+    description="Check this if you want to enable MediaWiki file upload.">
+
+    <description culture="en">Check this if you want to enable MediaWiki file 
upload.</description>
+    <description culture="de">Haken setzen, wenn Sie den Dateiupload in 
MediaWiki aktivieren wollen.</description>
+    <friendlyName culture="en">Enable MediaWiki file upload</friendlyName>
+    <friendlyName culture="de">MediaWiki Dateiupload aktivieren</friendlyName>
+    
+    <parameterValidation
+                       type="Enumeration"
+      validationString="True,False" />
+    
+    <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForFileUpload" />
+  </parameter>
+  
+  <!-- Azure specific parameters -->
+       <parameter
+               tags="Azure,NoStore"
+               name="usewindowsazure"
+               defaultValue="False"
+               friendlyName="Use Windows Azure as file backend"
+               description="Check this if you want to use Windows Azure as 
file backend" >
+               
+               <description culture="en">Check this if you want to use Windows 
Azure as file backend.</description>
+               <description culture="de">Haken setzen, wenn Sie Windows Azure 
als Speicherort für Dateien vewenden wollen.</description>
+               <friendlyName culture="en">Use Windows Azure as file 
backend</friendlyName>
+    <friendlyName culture="de">Windows Azure als Dateispeicherort 
vewenden</friendlyName>
+
+               <!-- Renders as checkbox -->
+               <parameterValidation
+                       type="Enumeration"
+      validationString="True,False" />
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForUseAzure" />
+
+       </parameter>
+       
+       <parameter
+       tags="Azure,NoStore"
+               name="azureHost"
+               defaultValue="http://127.0.0.1:10000";
+               friendlyName="Windows Azure Host"
+               description="Please provide the url to your Windows Azure 
server. If you do not want to use Windows Azure as FileBackend for your 
MediaWiki you can leave this field unmodified." >
+
+    <description culture="en">Please provide the url to your Windows Azure 
server without trailing slash. If you do not want to use Windows Azure as 
FileBackend for your MediaWiki you can leave this field 
unmodified.</description>
+    <description culture="de">Bitte geben Sie die URL zur Ihrem Windows Azure 
Server an. Wenn Sie Windows Azure nicht als Dateispeicherort für Ihre 
MediaWiki-Installation nutzen wollen können Sie den Wert unverändert 
lassen.</description>
+               <friendlyName culture="en">Windows Azure Host</friendlyName>
+               <friendlyName culture="de">Windows Azure Host</friendlyName>
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForAzureHost" />
+
+       </parameter>
+       
+       <parameter
+       tags="Azure,NoStore"
+               name="azureAccount"
+               defaultValue="devstoreaccount1"
+               friendlyName="Windows Azure Account"
+               description="Please provide your Windows Azure account. If you 
do not want to use Windows Azure as FileBackend for your MediaWiki you can 
leave this field unmodified." >
+
+    <description culture="en">Please provide your Windows Azure account. If 
you do not want to use Windows Azure as FileBackend for your MediaWiki you can 
leave this field unmodified.</description>
+    <description culture="de">Bitte geben Sie Ihr Windows Azure Konto an. Wenn 
Sie Windows Azure nicht als Dateispeicherort für Ihre MediaWiki-Installation 
nutzen wollen können Sie den Wert unverändert lassen.</description>
+               <friendlyName culture="en">Windows Azure Account</friendlyName>
+               <friendlyName culture="de">Windows Azure Konto</friendlyName>
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForAzureAccount" />
+
+       </parameter>
+       
+       <parameter
+               tags="Azure,NoStore"
+               name="azureKey"
+               
defaultValue="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
+               friendlyName="Windows Azure Key"
+               description="Please provide your Windows Azure Key. If you do 
not want to use Windows Azure as FileBackend for your MediaWiki you can leave 
this field unmodified." >
+
+    <description culture="en">Please provide your Windows Azure Key. If you do 
not want to use Windows Azure as FileBackend for your MediaWiki you can leave 
this field unmodified.</description>
+    <description culture="de">Bitte geben Sie Ihren Windows Azure Schlüssel 
an. Wenn Sie Windows Azure nicht als Dateispeicherort für Ihre 
MediaWiki-Installation nutzen wollen können Sie den Wert unverändert 
lassen.</description>
+               <friendlyName culture="en">Windows Azure Key</friendlyName>
+               <friendlyName culture="de">Windows Azure 
Schlüssel</friendlyName>
+
+               <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForAzureKey" />
+
+       </parameter>
+
+  <parameter
+               tags="NoStore"
+               name="wikiId"
+               defaultValue="mywiki"
+               friendlyName="Wiki ID (Prefix to container names that is unique 
to this wiki)"
+               description="Prefix to container names that is unique to this 
wiki. Container names must start with a letter or number, and can contain only 
letters, numbers, and the dash (-) character. Every dash (-) character must be 
immediately preceded and followed by a letter or number, consecutive dashes are 
not permitted in container names. All letters in a container name must be 
lowercase. Container names must be from 3 through 63 characters long. This 
prefix must be from 3 through 30 characters long." >
+
+    <description culture="en">Prefix to container names that is unique to this 
wiki. Container names must start with a letter or number, and can contain only 
letters, numbers, and the dash (-) character. Every dash (-) character must be 
immediately preceded and followed by a letter or number, consecutive dashes are 
not permitted in container names. All letters in a container name must be 
lowercase. Container names must be from 3 through 63 characters long. This 
prefix must be from 3 through 30 characters long.</description>
+    <description culture="de">Präfix für Container-Namen, die einzigartig in 
diesem Wiki ist. Container müssen mit einem Buchstaben oder einer Zahl beginnen 
und dürfen nur Buchstaben, Ziffern und den Bindestrich (-) enthalten Charakter. 
Jeder Strich (-) Zeichen unmittelbar vorausgehen muss und durch einen 
Buchstaben oder eine Zahl gefolgt, werden aufeinanderfolgende Striche nicht in 
Container-Namen erlaubt. Alle Buchstaben in einem Container-Name muss in 
Kleinbuchstaben geschrieben sein. Container-Namen müssen aus 3 bis 63 Zeichen 
lang sein. Dieses Präfix muss zwischen 3 und 30 Zeichen lang sein.</description>
+    <friendlyName culture="en">Wiki ID (Prefix to container names that is 
unique to this wiki)</friendlyName>
+    <friendlyName culture="de">Wiki-ID (Präfix Container-Namen, die eindeutig 
zu diesem Wiki ist)</friendlyName>
+    
+    <!-- limiting the container prefix length to 30 -->
+    <parameterValidation
+                       type="RegularExpression"
+                       
validationString="(^([a-z]|\d))((-([a-z]|\d)|([a-z]|\d)){2,30})$" />
+    
+    <parameterEntry
+                       type="TextFile"
+                       scope="WpiSettings.php"
+                       match="PlaceholderForWikiId" />
+
+  </parameter>
+
+</parameters>

-- 
To view, visit https://gerrit.wikimedia.org/r/57728
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefb3bf77252386fef1fb5123edacd2b163e4c990
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/packages/WPI
Gerrit-Branch: master
Gerrit-Owner: Mglaser <gla...@hallowelt.biz>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to