source: companies/celepar/admin/inc/class.boaclmanager.inc.php @ 763

Revision 763, 1.4 KB checked in by niltonneto, 15 years ago (diff)

Importação inicial do Expresso da Celepar

Line 
1<?php
2        /**************************************************************************\
3        * eGroupWare - Administration                                              *
4        * http://www.egroupware.org                                                *
5        * --------------------------------------------                             *
6        *  This program is free software; you can redistribute it and/or modify it *
7        *  under the terms of the GNU General Public License as published by the   *
8        *  Free Software Foundation; either version 2 of the License, or (at your  *
9        *  option) any later version.                                              *
10        \**************************************************************************/
11
12
13        class boaclmanager
14        {
15                var $ui;
16                var $so;
17                var $public_functions = array(
18                        'submit' => True
19                );
20
21                function boaclmanager()
22                {
23                        //$this->so = createobject('admin.soaclmanager');
24                        $this->ui = createobject('admin.uiaclmanager');
25                }
26
27                function submit()
28                {
29                        if ($GLOBALS['cancel'])
30                        {
31                                $this->ui->list_apps();
32                                return False;
33                        }
34
35                        $location = base64_decode($GLOBALS['location']);
36
37                        $total_rights = 0;
38                        while (is_array($GLOBALS['acl_rights']) && list(,$rights) = each($GLOBALS['acl_rights']))
39                        {
40                                $total_rights += $rights;
41                        }
42
43                        $GLOBALS['phpgw']->acl->add_repository($GLOBALS['acl_app'], $location, $GLOBALS['account_id'], $total_rights);
44
45                        $this->ui->list_apps();
46                }
47
48        }
Note: See TracBrowser for help on using the repository browser.