summaryrefslogtreecommitdiff
path: root/files/roundcube/plugins/login_info/login_info.php
blob: 865e8a39820d0390e5a007d483bfd5055f6d14fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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;
	}
}

?>