| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_noixacl/adapters/access/ |
Upload File : |
<?php
/**
* No Direct Access
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
class PluginAccess extends Adapters
{
function administrator(){
$mainframe = JFactory::getApplication();
$acl = JFactory::getACL();
$user = JFactory::getUser();
$option = JRequest::getCMD('option');
if( $acl->acl_check($option,'administrator.block','users',$user->get('usertype')) )
{
$mainframe->redirect('index.php', JText::_('You dont have permission to access'));
}
}
function site(){
$mainframe = JFactory::getApplication();
$acl = JFactory::getACL();
$user = JFactory::getUser();
$option = JRequest::getCMD('option');
if( $acl->acl_check($option,'site.block','users',$user->get('usertype')) )
{
$mainframe->redirect('index.php', JText::_('You dont have permission to access'));
}
}
}