示例#1
0
<?php

/**
 * Joomla! component MageBridge
 *
 * @author Yireo (info@yireo.com)
 * @package MageBridge
 * @copyright Copyright 2012
 * @license GNU Public License
 * @link http://www.yireo.com
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;
// Initialize the ACLs
MageBridgeAclHelper::init();
/*
 * Helper for encoding and encrypting
 */
class MageBridgeAclHelper
{
    /*
     * Initialize the helper-class
     *
     * @param mixed $string
     * @return string
     */
    public static function init()
    {
        // Joomla! 1.5 ACLs
        if (MageBridgeHelper::isJoomla15() == true) {
            $auth = JFactory::getACL();