コード例 #1
0
/**
 * Main Module File
 *
 * @package         Cache Cleaner
 * @version         4.0.4
 *
 * @author          Peter van Westen <*****@*****.**>
 * @link            http://www.nonumber.nl
 * @copyright       Copyright © 2015 NoNumber All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */
defined('_JEXEC') or die;
/**
 * Module that cleans cache
 */
// return if NoNumber Framework plugin is not installed
jimport('joomla.filesystem.file');
if (!JFile::exists(JPATH_PLUGINS . '/system/nnframework/nnframework.php')) {
    return;
}
// return if NoNumber Framework plugin is not enabled
$nnframework = JPluginHelper::getPlugin('system', 'nnframework');
if (!isset($nnframework->name)) {
    return;
}
// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';
$helper = new ModCacheCleaner();
$helper->render();
コード例 #2
0
<?php

/**
 * @package         Cache Cleaner
 * @version         5.2.0
 * 
 * @author          Peter van Westen <*****@*****.**>
 * @link            http://www.regularlabs.com
 * @copyright       Copyright © 2016 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */
defined('_JEXEC') or die;
echo ModCacheCleaner::render($params);