2007-02-12 14:50:29 -07:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Setup for ContactPage extension, a special page that implements a contact form
|
|
|
|
* for use by anonymous visitors.
|
|
|
|
*
|
2009-01-11 05:16:13 -07:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2007-02-12 14:50:29 -07:00
|
|
|
* @author Daniel Kinzler, brightbyte.de
|
|
|
|
* @copyright © 2007 Daniel Kinzler
|
|
|
|
* @licence GNU General Public Licence 2.0 or later
|
|
|
|
*/
|
|
|
|
|
2007-02-13 15:33:42 -07:00
|
|
|
if( !defined( 'MEDIAWIKI' ) ) {
|
|
|
|
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
|
|
|
|
die( 1 );
|
|
|
|
}
|
|
|
|
|
2008-02-03 07:37:27 -07:00
|
|
|
$wgExtensionCredits['specialpage'][] = array(
|
|
|
|
'name' => 'ContactPage',
|
2008-05-06 05:59:58 -06:00
|
|
|
'svn-date' => '$LastChangedDate$',
|
|
|
|
'svn-revision' => '$LastChangedRevision$',
|
2008-02-03 07:37:27 -07:00
|
|
|
'author' => 'Daniel Kinzler',
|
|
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:ContactPage',
|
|
|
|
'description' => 'Contact form for visitors',
|
|
|
|
'descriptionmsg' => 'contactpage-desc',
|
2007-02-12 14:50:29 -07:00
|
|
|
);
|
|
|
|
|
2008-02-03 07:37:27 -07:00
|
|
|
$dir = dirname(__FILE__) . '/';
|
|
|
|
$wgExtensionMessagesFiles['ContactPage'] = $dir . 'ContactPage.i18n.php';
|
2008-07-09 11:40:14 -06:00
|
|
|
$wgExtensionAliasesFiles['ContactPage'] = $dir . 'ContactPage.alias.php';
|
|
|
|
|
2008-02-03 07:37:27 -07:00
|
|
|
$wgAutoloadClasses['SpecialContact'] = $dir . 'SpecialContact.php';
|
2007-02-12 14:50:29 -07:00
|
|
|
$wgSpecialPages['Contact'] = 'SpecialContact';
|
|
|
|
|
|
|
|
$wgContactUser = NULL;
|
2008-07-05 15:06:49 -06:00
|
|
|
$wgContactSender = NULL;
|
2007-02-12 14:50:29 -07:00
|
|
|
$wgContactSenderName = 'Contact Form on ' . $wgSitename;
|
2008-07-05 15:20:32 -06:00
|
|
|
|
|
|
|
$wgContactRequireAll = false;
|