This extension makes sure PHPAzure library is properly included.
authorMarkus Glaser <mglaser@users.mediawiki.org>
Mon, 9 Jan 2012 16:16:25 +0000 (16:16 +0000)
committerMarkus Glaser <mglaser@users.mediawiki.org>
Mon, 9 Jan 2012 16:16:25 +0000 (16:16 +0000)
Initial commit

extensions/WindowsAzureSDK/README.txt [new file with mode: 0644]
extensions/WindowsAzureSDK/WindowsAzureSDK.i18n.php [new file with mode: 0644]
extensions/WindowsAzureSDK/WindowsAzureSDK.php [new file with mode: 0644]

diff --git a/extensions/WindowsAzureSDK/README.txt b/extensions/WindowsAzureSDK/README.txt
new file mode 100644 (file)
index 0000000..e836c11
--- /dev/null
@@ -0,0 +1 @@
+This extension contains the Microsoft "Windows Azure SDK for PHP v4.1.0" (http://phpazure.codeplex.com/) by REALDOLMEN.
\ No newline at end of file
diff --git a/extensions/WindowsAzureSDK/WindowsAzureSDK.i18n.php b/extensions/WindowsAzureSDK/WindowsAzureSDK.i18n.php
new file mode 100644 (file)
index 0000000..43ced52
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+$messages = array();
+
+$messages['en'] = array(
+       'windowswzuresdk-desc' => 'This extension provides the [http://phpazure.codeplex.com/ PHPAzure] SDK created by [http://www.realdolmen.com/ REALDOLMEN]. It is the foundation for other extensions that need to interact with Windows Azure services. The integration with MediaWiki was made by [http://www.hallowelt.biz Hallo Welt! Medienwerkstatt GmbH].'
+);
+
+$messages['de-formal'] = array(
+       'windowswzuresdk-desc' => 'Diese Erweiterung stellt das [http://phpazure.codeplex.com/ PHPAzure] SDK bereit, welches von [http://www.realdolmen.com/ REALDOLMEN] entwickelt wird. Sie ist die Basis für andere Erweiterungen, welche mit Windows Azure Diensten interagieren müssen. Die MediaWiki-Integration wurde von [http://www.hallowelt.biz Hallo Welt! Medienwerkstatt GmbH] durchgeführt.'
+);
+
+$messages['de'] = array(
+       'windowswzuresdk-desc' => 'Diese Erweiterung stellt das [http://phpazure.codeplex.com/ PHPAzure] SDK bereit, welches von [http://www.realdolmen.com/ REALDOLMEN] entwickelt wird. Sie ist die Basis für andere Erweiterungen, welche mit Windows Azure Diensten interagieren müssen. Die MediaWiki-Integration wurde von [http://www.hallowelt.biz Hallo Welt! Medienwerkstatt GmbH] durchgeführt.'
+);
\ No newline at end of file
diff --git a/extensions/WindowsAzureSDK/WindowsAzureSDK.php b/extensions/WindowsAzureSDK/WindowsAzureSDK.php
new file mode 100644 (file)
index 0000000..a238b92
--- /dev/null
@@ -0,0 +1,44 @@
+<?php
+/*
+ (c) Hallo Welt! Medienwerkstatt GmbH, 2011 GPL
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ http://www.gnu.org/copyleft/gpl.html
+*/
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+       echo 'To install WindowsAzureSDK, put the following line in LocalSettings.php: include_once( "$IP/extensions/WindowsAzureSDK/WindowsAzureSDK.php" );'."\n";
+       exit( 1 );
+}
+
+$wgExtensionCredits['other'][] = array(
+       'path'           => __FILE__,
+       'name'           => 'WindowsAzureSDK',
+       'author'         => array( 'REALDOLMEN', 'Hallo Welt! Medienwerkstatt GmbH' ),
+       'url'            => 'http://www.hallowelt.biz',
+       'version'        => '4.1.0',
+       'descriptionmsg' => 'windowswzuresdk-desc',
+);
+
+$dir = dirname(__FILE__) . '/';
+$wgExtensionMessagesFiles['WindowsAzureSDK'] = $dir . 'WindowsAzureSDK.i18n.php'; 
+
+if(!class_exists('Microsoft_WindowsAzure_Diagnostics_Manager')) {
+       require_once( $dir.'lib/PHPAzure/library/Microsoft/AutoLoader.php' );
+}
+
+if (!defined( 'MICROSOFT_WINDOWS_AZURE_SDK_VERSION' )) {
+       define( 'MICROSOFT_WINDOWS_AZURE_SDK_VERSION', '4.1.0' );
+}
\ No newline at end of file