Всем привет!
Помогите пожалуйста с плагином freegator, у меня не работает cron.feedgator.php
Запускаю
сайт.ру/administrator/components/com_feedgator/cron.feedgator.php
ни чего не происходит.
Что может быть?
Как правильно запустить freegator чтоб крон работал?
define( '_JEXEC', 1 );
require_once(JPATH_BASE.'/includes/defines.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/framework.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/helper.php' );
require_once(JPATH_ADMINISTRATOR.'/includes/toolbar.php' );
define('JPATH_BASE', substr(__FILE__,0,strrpos(__FILE__, DS.'administrator')));
echo 'go';
$mainframe = JFactory::getApplication('site');
$mainframe->initialise();
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/controller.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/factory.feedgator.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/helpers/feedgator.helper.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/helpers/feedgator.utility.php');
if(file_exists(JPATH_ROOT.'/plugins/system/addkeywords.php')) {
require_once(JPATH_ROOT.'/plugins/system/addkeywords.php');
}
FeedgatorUtility::profiling('Start cron');
define('SPIE_CACHE_AGE', 60*10);
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/inc/simplepie/simplepie131.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_feedgator/inc/simplepie/overrides.php');
FeedgatorUtility::profiling('Loaded SimplePie');
JRequest::setVar('task','cron','get');
JRequest::setVar(JUtility::getToken(),'1','get');
$jlang = JFactory::getLanguage();
// Back-end translation
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, 'en-GB', true);
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, $jlang->getDefault(), true);
$jlang->load('com_feedgator', JPATH_ADMINISTRATOR, null, true);
$config = array('base_path'=>JPATH_ADMINISTRATOR.'/components/com_feedgator');
$controller = new FeedgatorController($config);
$controller->import('all');
FeedgatorUtility::profiling('End');
echo 'Import finished';