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': case 'beat': // Manual Heartbeat $heartbeat = new aecHeartbeat(); $heartbeat->beat(); echo "wolves teeth"; break; case 'copycoupon': $db = JFactory::getDBO(); foreach ($id as $pid) { $c = explode('.', $pid);