jimport('joomla.application.component.model'); jimport('joomla.utilities.date'); jimport('joomla.application.component.controller'); JLoader::register('JAVBModel', JPATH_COMPONENT_ADMINISTRATOR . '/models/model.php'); JLoader::register('JAVFController', JPATH_COMPONENT . '/controllers/controller.php'); JLoader::register('JAVBView', JPATH_COMPONENT_ADMINISTRATOR . '/views/view.php'); JTable::addIncludePath(JPATH_SITE . '/administrator/components/com_javoice/tables'); JAVBModel::addIncludePath(JPATH_SITE . '/components/com_javoice/models'); /* Require Helper */ require_once JPATH_SITE . '/components/com_javoice/helpers/jahelper.php'; $GLOBALS['javconfig'] = array(); JAVoiceHelpers::get_config_system(); global $javconfig; require_once JPATH_COMPONENT_SITE . '/asset/cron/cron.php'; if (isset($javconfig['systems']) && $javconfig['systems']->get('is_turn_off_javoice', 0)) { if (!JAVoiceHelpers::check_access()) { return; } } if (!isset($_SESSION['JAV_LAST_VISITED'])) { if (isset($_COOKIE['JAV_LAST_VISITED'])) { $_SESSION['JAV_LAST_VISITED'] = $_COOKIE['JAV_LAST_VISITED']; } else { $_SESSION['JAV_LAST_VISITED'] = strtotime(date("Y-m-d") . " -3 days"); } setcookie('JAV_LAST_VISITED', time()); } if (!defined('JAVOICE_GLOBAL_CSS')) { $mainframe = JFactory::getApplication(); JHTML::stylesheet('components/com_javoice/asset/css/ja.voice.css'); if (file_exists(JPATH_BASE . '/templates/' . $mainframe->getTemplate() . '/css/ja.voice.css')) {