nickj | 1 Nov 2006 05:05
Picon
Favicon

SVN: [17336] trunk/extensions/Chemistry

Revision: 17336
Author:   nickj
Date:     2006-10-31 20:05:41 -0800 (Tue, 31 Oct 2006)

Log Message:
-----------
Chemistry extension update patch from Dirk Beetstra, includes:
* Prevent PHP error on malicious wikitext input, e.g.:
=========================================
<chemform wikilink=':' query='</nowiki>
=========================================
* Enclosing HREF value in quotes, and escaping internal quotes.

Modified Paths:
--------------
    trunk/extensions/Chemistry/ChemFunctions.i18n.php
    trunk/extensions/Chemistry/ChemFunctions.php
    trunk/extensions/Chemistry/SpecialChemicalsources.php
Modified: trunk/extensions/Chemistry/ChemFunctions.i18n.php
===================================================================
--- trunk/extensions/Chemistry/ChemFunctions.i18n.php	2006-10-31 21:00:00 UTC (rev 17335)
+++ trunk/extensions/Chemistry/ChemFunctions.i18n.php	2006-11-01 04:05:41 UTC (rev 17336)
 <at>  <at>  -88,7 +88,9  <at>  <at> 
 	'ChemFunctions_DrugBank' => 'DrugBank',
 	'ChemFunctions_ECNumber' => 'ECNumber',
 	'ChemFunctions_Formula' => 'Formula',
-	'ChemFunctions_Name' => 'IUPAC Name'
+	'ChemFunctions_Name' => 'IUPAC Name',
+
+	'ChemFunctions_ChemFormInputError' => 'Chemform: Input error!'
(Continue reading)

tstarling | 1 Nov 2006 07:34
Picon
Favicon

SVN: [17337] trunk/extensions

Revision: 17337
Author:   tstarling
Date:     2006-10-31 22:34:42 -0800 (Tue, 31 Oct 2006)

Log Message:
-----------
HTML image map extension. Not quite complete, but usable as it is.

Added Paths:
-----------
    trunk/extensions/ImageMap/
    trunk/extensions/ImageMap/ImageMap.php
    trunk/extensions/ImageMap/ImageMap_body.php
Added: trunk/extensions/ImageMap/ImageMap.php
===================================================================
--- trunk/extensions/ImageMap/ImageMap.php	                        (rev 0)
+++ trunk/extensions/ImageMap/ImageMap.php	2006-11-01 06:34:42 UTC (rev 17337)
 <at>  <at>  -0,0 +1,15  <at>  <at> 
+<?php
+
+$wgExtensionFunctions[] = 'wfSetupImageMap';
+$wgAutoloadClasses['ImageMap'] = dirname(__FILE__).'/ImageMap_body.php';
+$wgExtensionCredits['parserhook']['ImageMap'] = array(
+	'name' => 'ImageMap',
+	'author' => 'Tim Starling',
+);
+
+function wfSetupImageMap() {
+	global $wgParser;
+	$wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) );
(Continue reading)

tstarling | 1 Nov 2006 08:13
Picon
Favicon

SVN: [17338] trunk/phase3

Revision: 17338
Author:   tstarling
Date:     2006-10-31 23:13:31 -0800 (Tue, 31 Oct 2006)

Log Message:
-----------
Added block option "enable autoblocks". Patch by Werdna from bug 1294.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/Block.php
    trunk/phase3/includes/SpecialBlockip.php
    trunk/phase3/includes/User.php
    trunk/phase3/languages/messages/MessagesEn.php
    trunk/phase3/maintenance/mysql5/tables.sql
    trunk/phase3/maintenance/tables.sql
    trunk/phase3/maintenance/updaters.inc
Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES	2006-11-01 06:34:42 UTC (rev 17337)
+++ trunk/phase3/RELEASE-NOTES	2006-11-01 07:13:31 UTC (rev 17338)
 <at>  <at>  -117,6 +117,7  <at>  <at> 
 * Moved variant language links on Cologne Blue and Nostalgia to before the
   login/logout link
 * Fix for parser tests with MySQL 5 in strict mode
+* Added block option "enable autoblocks"

 
 == Languages updated ==
(Continue reading)

tstarling | 1 Nov 2006 08:16
Picon
Favicon

SVN: [17339] trunk/phase3/includes/DefaultSettings.php

Revision: 17339
Author:   tstarling
Date:     2006-10-31 23:16:58 -0800 (Tue, 31 Oct 2006)

Log Message:
-----------
Added callto:// protocol, for Skype

Modified Paths:
--------------
    trunk/phase3/includes/DefaultSettings.php
Modified: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php	2006-11-01 07:13:31 UTC (rev 17338)
+++ trunk/phase3/includes/DefaultSettings.php	2006-11-01 07:16:58 UTC (rev 17339)
 <at>  <at>  -200,7 +200,8  <at>  <at> 
 	'nntp://', //  <at> bug 3808 RFC 1738
 	'worldwind://',
 	'mailto:',
-	'news:'
+	'news:',
+	'callto://', // Skype
 );

 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
tstarling | 1 Nov 2006 09:22
Picon
Favicon

SVN: [17340] trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql

Revision: 17340
Author:   tstarling
Date:     2006-11-01 00:22:05 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
SQL file for autoblock feature

Added Paths:
-----------
    trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql
Added: trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql
===================================================================
--- trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql	                        (rev 0)
+++ trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql	2006-11-01 08:22:05
UTC (rev 17340)
 <at>  <at>  -0,0 +1,3  <at>  <at> 
+-- Add an extra option field "ipb_enable_autoblock" into the ipblocks table. This allows a block to be
placed that does not trigger any autoblocks.
+
+ALTER TABLE /*$wgDBprefix*/ipblocks ADD COLUMN ipb_enable_autoblock bool NOT NULL default '1';

Property changes on: trunk/phase3/maintenance/archives/patch-ipb_optional_autoblock.sql
___________________________________________________________________
Name: svn:eol-style
   + native
tstarling | 1 Nov 2006 12:21
Picon
Favicon

SVN: [17341] trunk/phase3/includes/StreamFile.php

Revision: 17341
Author:   tstarling
Date:     2006-11-01 03:21:09 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
don't cache error pages

Modified Paths:
--------------
    trunk/phase3/includes/StreamFile.php
Modified: trunk/phase3/includes/StreamFile.php
===================================================================
--- trunk/phase3/includes/StreamFile.php	2006-11-01 08:22:05 UTC (rev 17340)
+++ trunk/phase3/includes/StreamFile.php	2006-11-01 11:21:09 UTC (rev 17341)
 <at>  <at>  -6,6 +6,7  <at>  <at> 
 	$stat =  <at> stat( $fname );
 	if ( !$stat ) {
 		header( 'HTTP/1.0 404 Not Found' );
+		header( 'Cache-Control: no-cache' );
 		$encFile = htmlspecialchars( $fname );
 		$encScript = htmlspecialchars( $_SERVER['SCRIPT_NAME'] );
 		echo "<html><body>
tstarling | 1 Nov 2006 12:21
Picon
Favicon

SVN: [17342] trunk/phase3/includes/Skin.php

Revision: 17342
Author:   tstarling
Date:     2006-11-01 03:21:46 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Fixed invalid title condition

Modified Paths:
--------------
    trunk/phase3/includes/Skin.php
Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php	2006-11-01 11:21:09 UTC (rev 17341)
+++ trunk/phase3/includes/Skin.php	2006-11-01 11:21:46 UTC (rev 17342)
 <at>  <at>  -1587,8 +1587,12  <at>  <at> 
 						$href = $link;
 					} else {
 						$title = Title::newFromText( $link );
-						$title = $title->fixSpecialName();
-						$href = $title->getLocalURL();
+						if ( $title ) {
+							$title = $title->fixSpecialName();
+							$href = $title->getLocalURL();
+						} else {
+							$href = 'INVALID-TITLE';
+						}
 					}

 					$bar[$heading][] = array(
(Continue reading)

werdna | 1 Nov 2006 13:06
Picon
Favicon

SVN: [17343] trunk/phase3/includes

Revision: 17343
Author:   werdna
Date:     2006-11-01 04:06:29 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Implement usercontribs module for API.

Modified Paths:
--------------
    trunk/phase3/includes/AutoLoader.php
    trunk/phase3/includes/api/ApiQuery.php
    trunk/phase3/includes/api/ApiQueryBase.php
Modified: trunk/phase3/includes/AutoLoader.php
===================================================================
--- trunk/phase3/includes/AutoLoader.php	2006-11-01 11:21:46 UTC (rev 17342)
+++ trunk/phase3/includes/AutoLoader.php	2006-11-01 12:06:29 UTC (rev 17343)
 <at>  <at>  -256,6 +256,7  <at>  <at> 
 		'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
 		'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
 		'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
+		'ApiQueryContributions' => 'includes/api/ApiQueryContributions.php',
 		'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
 		'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
 		'ApiQueryRecentChanges'=> 'includes/api/ApiQueryRecentChanges.php',

Modified: trunk/phase3/includes/api/ApiQuery.php
===================================================================
--- trunk/phase3/includes/api/ApiQuery.php	2006-11-01 11:21:46 UTC (rev 17342)
+++ trunk/phase3/includes/api/ApiQuery.php	2006-11-01 12:06:29 UTC (rev 17343)
(Continue reading)

werdna | 1 Nov 2006 13:07
Picon
Favicon

SVN: [17344] trunk/phase3/includes/api/ApiQueryContributions.php

Revision: 17344
Author:   werdna
Date:     2006-11-01 04:07:20 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Missing file from last commit

Added Paths:
-----------
    trunk/phase3/includes/api/ApiQueryContributions.php
Added: trunk/phase3/includes/api/ApiQueryContributions.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryContributions.php	                        (rev 0)
+++ trunk/phase3/includes/api/ApiQueryContributions.php	2006-11-01 12:07:20 UTC (rev 17344)
 <at>  <at>  -0,0 +1,158  <at>  <at> 
+<?php
+
+
+/*
+ * Created on Oct 16, 2006
+ *
+ * API for MediaWiki 1.8+
+ *
+ * Copyright (C) 2006 Yuri Astrakhan <FirstnameLastname <at> gmail.com>
+ *
+ * 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.
(Continue reading)

werdna | 1 Nov 2006 14:01
Picon
Favicon

SVN: [17345] trunk/phase3

Revision: 17345
Author:   werdna
Date:     2006-11-01 05:01:50 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Amend Special:Ipblocklist to note when a block has autoblock DISABLED

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/SpecialIpblocklist.php
    trunk/phase3/languages/messages/MessagesEn.php
Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES	2006-11-01 12:07:20 UTC (rev 17344)
+++ trunk/phase3/RELEASE-NOTES	2006-11-01 13:01:50 UTC (rev 17345)
 <at>  <at>  -118,8 +118,8  <at>  <at> 
   login/logout link
 * Fix for parser tests with MySQL 5 in strict mode
 * Added block option "enable autoblocks"
+* Amend Special:Ipblocklist to note when a block has autoblock DISABLED.

-
 == Languages updated ==

 * Bishnupriya Manipuri (bpy)

Modified: trunk/phase3/includes/SpecialIpblocklist.php
===================================================================
(Continue reading)


Gmane