Difference between revisions of "Extension:EmailToWiki"
From Organic Design wiki
(create from template ready for discussion) |
(notes) |
||
Line 3: | Line 3: | ||
# - 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] | ||
− | + | # - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details | |
+ | |||
+ | # Rather than relying on WikiD to login and update the wiki, | ||
+ | # it can instead use a simpler Perl script which can be run from the crontab and | ||
+ | # 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'; | $wgExtensionFunctions[] = 'wfSetupEmailToWiki'; | ||
$wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic'; | $wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic'; | ||
− | + | ||
$wgExtensionCredits['other'][] = array( | $wgExtensionCredits['other'][] = array( | ||
'name' => 'EmailToWiki', | 'name' => 'EmailToWiki', | ||
Line 18: | Line 24: | ||
'version' => EMAILTOWIKI_VERSION | 'version' => EMAILTOWIKI_VERSION | ||
); | ); | ||
− | + | ||
# Called from $wgExtensionFunctions array when initialising extensions | # Called from $wgExtensionFunctions array when initialising extensions | ||
function wfSetupEmailToWiki() { | function wfSetupEmailToWiki() { | ||
} | } | ||
− | + | ||
?> | ?> |
Revision as of 02:01, 28 May 2007
<?php
- Extension:EmailToWiki
Template:PhpCategory:Extensions created with Template:Extension
- - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
- - Author: User:Nad
- - See http://www.mediawiki.org/wiki/Extension:EmailToWiki for installation and usage details
- Rather than relying on WikiD to login and update the wiki,
- it can instead use a simpler Perl script which can be run from the crontab and
- 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.');
define('EMAILTOWIKI_VERSION','0.0.0, 2007-05-25');
$wgExtensionFunctions[] = 'wfSetupEmailToWiki'; $wgHooks['LanguageGetMagic'][] = 'wfEmailToWikiLanguageGetMagic';
$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 );
- Called from $wgExtensionFunctions array when initialising extensions
function wfSetupEmailToWiki() { }
?>