| 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/content/ |
Upload File : |
<?php
/**
* No direct access
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* Users Component Controller
*
* @package Joomla
* @subpackage Adapters
* @since 1.5
*/
class ContentController extends Adapters
{
/**
* Save Adapter
*/
function save($groupName)
{
/**
* Checking post of adapter menu
*/
if( !empty($_POST['content']) ){
$post = $_POST['content'];
/**
* Saving site rules
*/
if( !empty($post['Site']) ){
foreach($post['Site'] as $catid => $content){
$extraParams = array(
'$catid' => $catid
);
/**
* Saving rule
*/
$resultRuleSite = $this->saveRule("content","site",$groupName,$content['tasks'],$extraParams);
}
}
/**
* Saving admin rules
*/
if( !empty($post['Admin']) ){
foreach($post['Admin'] as $catid => $content){
$extraParams = array(
'$catid' => $catid
);
/**
* Saving Rule
*/
// MIKE Change site in Admin
$resultRuleAdmin = $this->saveRule("content","admin",$groupName,$content['tasks'],$extraParams);
}
}
/**
* Verify result of save
*/
// MIKE change && in ||
if( $resultRuleAdmin == TRUE || $resultRuleSite == TRUE ){
return true;
}
return false;
}
}
/**
* Delete Adapter
*/
function delete($groupName)
{
$this->deleteRules("com_content","access",$groupName);
$this->deleteRules("com_content","category",$groupName);
}
/**
* Displays a view
*/
function display()
{
parent::display();
}
}