3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * Dashboard page for managing Access Control.
21 * For initial version, this page only contains static links - so this class is empty for now.
23 class CRM_Admin_Page_Access
extends CRM_Core_Page
{
28 public function run() {
29 $config = CRM_Core_Config
::singleton();
31 switch ($config->userFramework
) {
33 $this->assign('ufAccessURL', url('admin/people/permissions'));
37 $this->assign('ufAccessURL', url('admin/user/permissions'));
41 //condition based on Joomla version; <= 2.5 uses modal window; >= 3.0 uses full page with return value
42 if (version_compare(JVERSION
, '3.0', 'lt')) {
43 JHTML
::_('behavior.modal');
44 $url = $config->userFrameworkBaseURL
. 'index.php?option=com_config&view=component&component=com_civicrm&tmpl=component';
45 $jparams = 'rel="{handler: \'iframe\', size: {x: 875, y: 550}, onClose: function() {}}" class="modal"';
47 $this->assign('ufAccessURL', $url);
48 $this->assign('jAccessParams', $jparams);
51 $uri = (string) JUri
::getInstance();
52 $return = urlencode(base64_encode($uri));
53 $url = $config->userFrameworkBaseURL
. 'index.php?option=com_config&view=component&component=com_civicrm&return=' . $return;
55 $this->assign('ufAccessURL', $url);
56 $this->assign('jAccessParams', '');
61 $this->assign('ufAccessURL', CRM_Utils_System
::url('civicrm/admin/access/wp-permissions', 'reset=1'));