FS-Mod/FSMail/SpecialFSMail.php

66 lines
1.9 KiB
PHP

<?php
/**
* Special:Mail, a special page that implements a FS Mail interface.
*
* @file
* @ingroup Extensions
* @author Björn Kinscher
* @copyright © 2009 Björn Kinscher
* @modified 2019 Bennet Bleßmann
* @license GNU General Public Licence 2.0 or later
*/
if( !defined( 'MEDIAWIKI' ) ) {
echo( "not a valid entry point.\n" );
die( 1 );
}
/**
* Provides the contact form
* @ingroup SpecialPage
*/
class SpecialFSMail extends SpecialPage {
/**
* Constructor
*/
public function __construct() {
parent::__construct( 'Mail' , 'fsmail-fsarchive');
}
/**
* Main execution function
*
* @param $par Mixed: Parameters passed to the page
*/
public function execute( $par ) {
$this->checkPermissions();
global $wgFSLoginKey;
$out = $this->getOutput();
//wfLoadExtensionMessages( 'FSMailPage' );
$out->setPageTitle( wfMessage( 'fsmailpage-title' ) );
$out->addHTML( "<h2>Webmailzugang zum persönlichen Konto</h2><p><a href=\"https://www.fs-infmath.uni-kiel.de/mail\">Webmailzugang zum persönlichen Konto.</a></p><br />" );
$authCode = md5(date('Ymd') . $wgFSLoginKey);
$out->addHTML( "<h2>Webmailzugang zum Archiv</h2>
<form action=\"https://www.fs-infmath.uni-kiel.de/webmail/\" method=\"POST\">
<input type=\"hidden\" name=\"_autologin\" value=\"1\" />
<input type=\"hidden\" name=\"auth\" value=\"$authCode\" />
<input type=\"submit\" value=\"Archiv öffnen\" />
</form>
<br />
<p>Hinweis: Das Archiv ist nicht vollständig (insb. alles im Ordner \"old\"). Vollständiger ist das mbox-Archiv (/home/fsmails/omail{,.mbox}; ggf. Technikmenschen fragen).</p>
<br />
" );
$out->addHTML( "<h2>Siehe auch</h2><ul><li><a href=\"https://www.fs-infmath.uni-kiel.de/wiki/HowTo:E-Mail\">HowTo:E-Mail</a></li></ul>" );
}
}