Difference between revisions of "Extension:EmailToWiki"

From Organic Design wiki
(notes)
(this script is only needed for version info)
Line 2: Line 2:
 
# Extension:EmailToWiki{{Category:Extensions}}{{php}}{{Category:Extensions created with Template:Extension}}
 
# Extension:EmailToWiki{{Category:Extensions}}{{php}}{{Category:Extensions created with Template:Extension}}
 
# - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
 
# - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
# - Author: [http://www.organicdesign.co.nz/nad User:Nad]
+
# - Author: [http://www.organicdesign.co.nz/nad User:Nad]
 +
# - Started: 2007-05-25
 
# - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
 
# - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
  
# Rather than relying on WikiD to login and update the wiki,
+
# NOTE: This script just adds the version and extension information to Special:version,
# it can instead use a simpler Perl script which can be run from the crontab and
+
#       the actual work is done by EmailToWiki.pl which should be run from the crontab
# use the SimpleForms extension's content query-string option to append the article.
 
# Editing in this way can be restricted to particular categories or IP's
 
  
 
if (!defined('MEDIAWIKI')) die('Not an entry point.');
 
if (!defined('MEDIAWIKI')) die('Not an entry point.');
  
 
define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');
 
define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');
 
$wgExtensionFunctions[]        = 'wfSetupEmailToWiki';
 
$wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic';
 
  
 
$wgExtensionCredits['other'][] = array(
 
$wgExtensionCredits['other'][] = array(
Line 24: Line 20:
 
'version'    => EMAILTOWIKI_VERSION
 
'version'    => EMAILTOWIKI_VERSION
 
);
 
);
 
# Called from $wgExtensionFunctions array when initialising extensions
 
function wfSetupEmailToWiki() {
 
}
 
 
 
?>
 
?>

Revision as of 23:35, 9 June 2007

<?php

  1. Extension:EmailToWiki
Info.svg These are the MediaWiki extensions we're using and/or developing. Please refer to the information on the mediawiki.org wiki for installation and usage details. Extensions here which have no corresponding mediawiki article are either not ready for use or have been superseded. You can also browse our extension code in our local Subversion repository or our GitHub mirror.

Template:PhpCategory:Extensions created with Template:Extension

  1. - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
  2. - Author: User:Nad
  3. - Started: 2007-05-25
  4. - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
  1. NOTE: This script just adds the version and extension information to Special:version,
  2. the actual work is done by EmailToWiki.pl which should be run from the crontab

if (!defined('MEDIAWIKI')) die('Not an entry point.');

define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');

$wgExtensionCredits['other'][] = array( 'name' => 'EmailToWiki', 'author' => 'User:Nad', 'description' => 'Allows emails to be sent to the wiki and added to an existing or new article', 'url' => 'http://www.mediawiki.org/wiki/Extension:EmailToWiki', 'version' => EMAILTOWIKI_VERSION ); ?>