[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/inc/ -> class.boaclmanager.inc.php (source)

   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      /* $Id: class.boaclmanager.inc.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14      class boaclmanager
  15      {
  16          var $ui;
  17          var $so;
  18          var $public_functions = array(
  19              'submit' => True
  20          );
  21  
  22  		function boaclmanager()
  23          {
  24              //$this->so =& CreateObject('admin.soaclmanager');
  25              $this->ui =& CreateObject('admin.uiaclmanager');
  26          }
  27  
  28  		function submit()
  29          {
  30              if ($GLOBALS['cancel'])
  31              {
  32                  $this->ui->list_apps();
  33                  return False;
  34              }
  35  
  36              $location = base64_decode($GLOBALS['location']);
  37  
  38              $total_rights = 0;
  39              while (is_array($GLOBALS['acl_rights']) && list(,$rights) = each($GLOBALS['acl_rights']))
  40              {
  41                  $total_rights += $rights;
  42              }
  43  
  44              $GLOBALS['egw']->acl->add_repository($GLOBALS['acl_app'], $location, $GLOBALS['account_id'], $total_rights);
  45  
  46              $this->ui->list_apps();
  47          }
  48  
  49      }


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7