diff options
-rw-r--r-- | manifests/web.pp | 4 | ||||
-rw-r--r-- | templates/roundcube/main.inc.php.erb | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/manifests/web.pp b/manifests/web.pp index 27d5798..9c86846 100644 --- a/manifests/web.pp +++ b/manifests/web.pp @@ -8,6 +8,10 @@ class mail::web::virtual inherits websites::setup { case $roundcube_logo { '': { $roundcube_logo = 'null' } } + + case $roundcube_login_info { + '': { $roundcube_login_info = false } + } } include php::imap diff --git a/templates/roundcube/main.inc.php.erb b/templates/roundcube/main.inc.php.erb index aa449d9..5582ce0 100644 --- a/templates/roundcube/main.inc.php.erb +++ b/templates/roundcube/main.inc.php.erb @@ -358,7 +358,7 @@ $rcmail_config['email_dns_check'] = false; // ---------------------------------- // List of active plugins (in plugins/ directory) -$rcmail_config['plugins'] = array(); +$rcmail_config['plugins'] = array('login_info'); // ---------------------------------- // USER INTERFACE @@ -483,6 +483,15 @@ $rcmail_config['upload_progress'] = false; // Setting it to 0, disables the feature. $rcmail_config['undo_timeout'] = 0; +<% if roundcube_login_info != false %> +// Login_info plugin +$rcmail_config['login_info'] = <<<EOT +<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;"> + <%= roundcube_login_info %> +</div> +EOT; +<% end -%> + // ---------------------------------- // ADDRESSBOOK SETTINGS // ---------------------------------- |