helmo / roundcube-maintenance-banner

Roundcube Maintenance Banner plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

roundcube-maintenance-banner

Roundcube Maintenance Banner plugin

Code inspired by https://github.com/dharmann/info_banner

License: GPL3+

Functionality

Using the config, set the maintenance period. This will have the following effect:

  • Up to $config['maintenance_pre'] seconds before $config['maintenance_start'], a banner announcing the maintenance will be shown. This banner will be shown both on the login screen and as a notification in the main roundcube interface (only once per session).
  • Between $config['maintenance_start'] and $config['maintenance_end'], a banner announcing that the maintenance is taking place will be shown. The login form will also be hidden.
  • If $config['maintenance_light'] is set to true, the banner text will be different, and the login form will not be hidden.
  • By setting $config['maintenance_post'], a banner text can be shown after the maintenance period ends.

Customization

  • config.inc.php.dist contains a config template. Copy to config.inc.php and adjust as needed.
  • localization/<locale>.inc contains the Announcement messages
  • skins/default/maintenance.css contains the style for the #maintbanner element.

About

Roundcube Maintenance Banner plugin

License:GNU General Public License v3.0


Languages

Language:PHP 93.7%Language:JavaScript 4.0%Language:CSS 2.3%