ftimme
2012-04-25 c56ca0d827134a1062d5a7df13fb848fd2f39335
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
40
41
42
43
44
45
46
47
48
49
50
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
 
/******************************************
* Begin Form configuration
******************************************/
 
$list_def_file = "list/mail_user.list.php";
 
/******************************************
* End Form configuration
******************************************/
 
//* Check permissions for module
$app->auth->check_module_permissions('mail');
 
$app->load('listform_actions');
 
 
class list_action extends listform_actions {
    
    function onShow() {
        global $app,$conf;
        
        $app->uses('getconf');
        $global_config = $app->getconf->get_global_config('mail');
        
        if($global_config['mailboxlist_webmail_link'] == 'y') {
            $app->tpl->setVar('mailboxlist_webmail_link',1);
        } else {
            $app->tpl->setVar('mailboxlist_webmail_link',0);
        }
 
    if($global_config["enable_custom_login"] == "y") {
        $app->tpl->setVar("enable_custom_login", 1);
    } else {
        $app->tpl->setVar("enable_custom_login", 0);
    }
        
        parent::onShow();
    }
    
}
 
$list = new list_action;
$list->onLoad();
 
 
?>