Beispiel #1
0
 * @subpackage Main Backend
 * @copyright 2006-2015 Copyright (C) David Deutsch
 * @author David Deutsch <*****@*****.**> & Team AEC - http://www.valanx.org
 * @license GNU/GPL v.3 http://www.gnu.org/licenses/gpl.html or, at your option, any later version
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
global $aecConfig;
$app = JFactory::getApplication();
require_once JPATH_SITE . '/components/com_acctexp/acctexp.class.php';
require_once JPATH_SITE . '/administrator/components/com_acctexp/admin.acctexp.class.php';
require_once JPATH_SITE . '/administrator/components/com_acctexp/admin.acctexp.html.php';
$langlist = array('com_acctexp' => JPATH_ADMINISTRATOR, 'com_acctexp.iso4217' => JPATH_ADMINISTRATOR);
xJLanguageHandler::loadList($langlist);
JLoader::register('JPaneTabs', JPATH_LIBRARIES . '/joomla/html/pane.php');
xJACLhandler::adminBlock($aecConfig->cfg['adminaccess'], $aecConfig->cfg['manageraccess']);
$entity = trim(aecGetParam('entity', 'central'));
$task = trim(aecGetParam('task', 'index'));
$id = aecGetParam('id', null);
if (!is_null($id) && !is_array($id)) {
    $id = array($id);
}
$db = JFactory::getDBO();
// Auto Heartbeat renew every one hour to make sure that the admin gets a view as recent as possible
$heartbeat = new aecHeartbeat();
$heartbeat->backendping();
if (empty($option)) {
    $option = aecGetParam('option', '0');
}
switch (strtolower($task)) {
    case 'heartbeat':