__FILE__, 'name' => 'ContactPage', 'author' => 'Daniel Kinzler', 'url' => 'https://www.mediawiki.org/wiki/Extension:ContactPage', 'descriptionmsg' => 'contactpage-desc', ); // Set up the new special page $dir = __DIR__ . '/'; $wgExtensionMessagesFiles['ContactPage'] = $dir . 'ContactPage.i18n.php'; $wgExtensionMessagesFiles['ContactPageAliases'] = $dir . 'ContactPage.alias.php'; $wgAutoloadClasses['SpecialContact'] = $dir . 'ContactPage_body.php'; $wgAutoloadClasses['EmailContactForm'] = $dir . 'ContactPage_body.php'; $wgSpecialPages['Contact'] = 'SpecialContact'; # Configuration // Name of a registered wiki user who will receive the mails $wgContactUser = null; // Email address used as the sender of the contact email, if the visitor does // not supply an email address. Defaults to $wgEmergencyContact. $wgContactSender = null; // The name to be used with $wgContactSender. // This will be shown in the recipient's email program $wgContactSenderName = 'Contact Form on ' . $wgSitename; // If true, users will be required to supply a name and an email address // on Special:Contact. $wgContactRequireAll = false; // If true, the form will include a checkbox offering to put the IP address of the submitter in the subject line $wgContactIncludeIP = false;