--- /dev/null
+http://www.std-soft.com/bfaq/52-cat-webmail/107-text-auf-der-login-seite-einblenden.html
--- /dev/null
+<?php\r
+\r
+/* Login_info plugin */\r
+\r
+/*\r
+ http://www.std-soft.com/bfaq/52-cat-webmail/107-text-auf-der-login-seite-einblenden.html\r
+ example: https://www.std-soft.de/webmail (source)\r
+Put your message between the two EOT TAGS:\r
+$rcmail_config['login_info'] = <<<EOT\r
+Your message here\r
+EOT;\r
+*/\r
+$rcmail_config['login_info'] = <<<EOT\r
+<div id="login_info" style="margin-top:3%;margin-left:auto;margin-right:auto;;width:380px;border-radius:10px;padding:10px;-moz-border-radius:10px;background-color:lightgrey;text-align:center;color:red;">\r
+Aus Sicherheitsgründen ist ab hier nur noch ein gesicherter (https) Zugang möglich.<br>\r
+Sollte Ihr Browser <b>vorher</b> einen Fehler oder eine Warnung vor dieser Seite angezeigt \r
+haben, klicken Sie bitte einmalig vor dem Einloggen auf die zwei folgenden Links und \r
+installieren die beiden Zertifikate von <a title="Zertifikate von CAcert" href="http://www.cacert.org/index.php?id=3" target="cacert"><img src="plugins/login_info/CAcert-ssl-security.png" alt="www.cacert.org" style="border-width: 0px;" /></a><br>\r
+<ol>\r
+<li><a href="http://www.cacert.org/certs/root.crt" target="cacert">CAcert Root Zertifikat (Class 1)</a></li>\r
+<li><a href="http://www.cacert.org/certs/class3.crt" target="cacert">CAcert Root Zertifikat (Class 3)</a></li>\r
+</ol>\r
+</div>\r
+EOT;\r
+\r
+?>
\ No newline at end of file
--- /dev/null
+<?php
+
+/**
+ * LoginInfo
+ *
+ * Plugin to add a customized info to the login screen
+ *
+ * @version 1.2
+ * @author Markus Neubauer
+ * @http://www.std-soft.com/bfaq/52-cat-webmail/107-text-auf-der-login-seite-einblenden.html
+ * @example: https://www.std-soft.de/webmail (source)
+ */
+class login_info extends rcube_plugin
+{
+ // only task 'login'
+ public $task = 'login';
+ // we've got no ajax handlers
+ public $noajax = true;
+ // skip frames
+ public $noframe = true;
+
+ function init()
+ {
+ $this->add_hook('template_object_loginform', array($this, 'add_login_info'));
+ }
+
+ public function add_login_info($arg)
+ {
+ $rcmail = rcmail::get_instance();
+ $this->load_config();
+
+ if ( $rcmail->config->get('login_info') )
+ $rcmail->output->add_footer( $rcmail->config->get('login_info') );
+
+ return $arg;
+ }
+}
+
+?>
content => template('mail/roundcube/main.inc.php.erb'),
require => Package['roundcube'],
}
+
+ file { "/var/lib/roundcube/plugins/login_info":
+ ensure => $lsbdistcodename ? {
+ 'lenny' => absent,
+ default => present,
+ },
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => "puppet:///modules/mail/roundcube/plugins/login_info",
+ require => Package['roundcube'],
+ }
}
class mail::web::sympa inherits websites::setup {