ProtectedContactPage/ContactPage.php

40 lines
1.2 KiB
PHP
Raw Normal View History

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.
*
* @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 );
}
$wgExtensionCredits['specialpage'][] = array(
'name' => 'ContactPage',
'svn-date' => '$LastChangedDate$',
'svn-revision' => '$LastChangedRevision$',
'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
);
$dir = dirname(__FILE__) . '/';
$wgExtensionMessagesFiles['ContactPage'] = $dir . 'ContactPage.i18n.php';
$wgExtensionAliasesFiles['ContactPage'] = $dir . 'ContactPage.alias.php';
$wgAutoloadClasses['SpecialContact'] = $dir . 'SpecialContact.php';
2007-02-12 14:50:29 -07:00
$wgSpecialPages['Contact'] = 'SpecialContact';
$wgContactUser = NULL;
$wgContactSender = NULL;
2007-02-12 14:50:29 -07:00
$wgContactSenderName = 'Contact Form on ' . $wgSitename;
$wgContactRequireAll = false;