mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php
|
|
/**************************************************************************\
|
|
* eGroupWare - Administration *
|
|
* http://www.egroupware.org *
|
|
* -------------------------------------------- *
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
* under the terms of the GNU General Public License as published by the *
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
* option) any later version. *
|
|
\**************************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
class boaclmanager
|
|
{
|
|
var $ui;
|
|
var $so;
|
|
var $public_functions = array(
|
|
'submit' => True
|
|
);
|
|
|
|
function boaclmanager()
|
|
{
|
|
//$this->so = createobject('admin.soaclmanager');
|
|
$this->ui = createobject('admin.uiaclmanager');
|
|
}
|
|
|
|
function submit()
|
|
{
|
|
if ($GLOBALS['cancel'])
|
|
{
|
|
$this->ui->list_apps();
|
|
return False;
|
|
}
|
|
|
|
$location = base64_decode($GLOBALS['location']);
|
|
|
|
$total_rights = 0;
|
|
while (is_array($GLOBALS['acl_rights']) && list(,$rights) = each($GLOBALS['acl_rights']))
|
|
{
|
|
$total_rights += $rights;
|
|
}
|
|
|
|
$GLOBALS['phpgw']->acl->add_repository($GLOBALS['acl_app'], $location, $GLOBALS['account_id'], $total_rights);
|
|
|
|
$this->ui->list_apps();
|
|
}
|
|
|
|
}
|