CoreFiles by mySites.guru
mod_privacy_status.php43 lines, 1,671 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
5925f2e834222f86d1745dfc0a9cb3fd
sha1
d67dcd88b516d7bbdbbb5fc524e53a904069a32a
sha256
1c188f6027f0a32958ea977be37cb549f946b068ca7410384dc8fd498b2d9894
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_privacy_dashboard
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\Component\Privacy\Administrator\Helper\PrivacyHelper;

// Only super user can view this data
if (!Factory::getUser()->authorise('core.admin'))
{
	return;
}

// Boot component to ensure HTML helpers are loaded
Factory::getApplication()->bootComponent('com_privacy');

// Load the privacy component language file.
$lang = Factory::getLanguage();
$lang->load('com_privacy', JPATH_ADMINISTRATOR, null, false, true)
	|| $lang->load('com_privacy', JPATH_ADMINISTRATOR . '/components/com_privacy', null, false, true);

HTMLHelper::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/helpers/html');

JLoader::register('ModPrivacyStatusHelper', __DIR__ . '/helper.php');

$privacyPolicyInfo      = ModPrivacyStatusHelper::getPrivacyPolicyInfo();
$requestFormPublished   = ModPrivacyStatusHelper::getRequestFormPublished();
$privacyConsentPluginId = PrivacyHelper::getPrivacyConsentPluginId();
$sendMailEnabled        = (bool) Factory::getConfig()->get('mailonline', 1);
$numberOfUrgentRequests = ModPrivacyStatusHelper::getNumberUrgentRequests();
$urgentRequestDays      = (int) ComponentHelper::getParams('com_privacy')->get('notify', 14);

require ModuleHelper::getLayoutPath('mod_privacy_status', $params->get('layout', 'default'));

The same content is in 2 releases, Joomla 4.0.0-alpha11 to 4.0.0-alpha12. See them all, or every version of this file.