ProtectedContactPage/ContactPage.php

35 lines
1.1 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.
*
* @package MediaWiki
* @subpackage Extensions
* @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',
'version' => '2008-02-03',
'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';
$wgAutoloadClasses['SpecialContact'] = $dir . 'SpecialContact.php';
2007-02-12 14:50:29 -07:00
$wgSpecialPages['Contact'] = 'SpecialContact';
$wgContactUser = NULL;
$wgContactSender = 'apache@' . $wgServerName;
$wgContactSenderName = 'Contact Form on ' . $wgSitename;