PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/public_html/afmediosc/modules/mod_janews_fp/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/public_html/afmediosc/modules/mod_janews_fp/mod_janews_fp.php |
<?php
/*
# ------------------------------------------------------------------------
# JA News Frontpage module for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
// no direct access
defined ( '_JEXEC' ) or die ( 'Restricted access' );
require_once (dirname ( __FILE__ ) . DS . 'helpers'. DS . 'helper.php');
$files = JFolder::files(dirname ( __FILE__ ) . DS . 'helpers'. DS.'adapter');
if($files){
foreach ($files as $file){
require_once (dirname ( __FILE__ ) . DS . 'helpers'. DS. 'adapter' . DS . $file);
}
}
$helper = new modJaNewsFrontpageHelper ( $module, $params );
$theme = $helper->get('themes', 'default');
if (JRequest::getBool ('janews_fp_ajax')) {
if(JRequest::getInt('moduleid')!=$module->id) return;
$count = JRequest::getInt('count', 1);
if(!$count) $count = 1;
$limitstart = (int)$helper->get('more_article', 5)*$count + ((int)$helper->get('numberofheadlinenews', 10)-(int)$helper->get('more_article', 5));
$helper->set('limitstart', $limitstart);
$helper->set('limit', (int)$helper->get('more_article', 6));
$helper->_load ($params);
$flagMore = -1;
}
if (!defined ('_MODE_JAMODNEWSFP_ASSETS_')) {
define ('_MODE_JAMODNEWSFP_ASSETS_', 1);
JHTML::stylesheet('style.css','modules/'.$module->module.'/assets/css/');
if (is_file(JPATH_SITE.DS.'templates'.DS.$mainframe->getTemplate().DS.'css'.DS.$module->module.".css"))
JHTML::stylesheet($module->module.".css", 'templates/'.$mainframe->getTemplate().'/css/');
JHTML::_('behavior.mootools');
JHTML::_('behavior.tooltip');
if(file_exists(JPATH_SITE.DS.'modules/'.$module->module.'/assets/js/script.js'))
JHTML::script('script.js','modules/'.$module->module.'/assets/js/');
}
if (!defined ('_MODE_JAMODNEWSFP_ASSETS_'.$theme)) {
define ('_MODE_JAMODNEWSFP_ASSETS_'.$theme, 1);
if (is_file(JPATH_SITE.DS.'modules'.DS.$module->module.DS.'tmpl'.DS.$theme.DS."style.css"))
JHTML::stylesheet("style.css", 'modules/'.$module->module.'/tmpl/'.$theme.'/');
if (is_file(JPATH_SITE.DS.'templates'.DS.$mainframe->getTemplate().DS.'html'.DS.$module->module.DS.$theme.DS."style.css"))
JHTML::stylesheet("style.css", 'templates/'.$mainframe->getTemplate().'/html/'.$module->module.'/'.$theme.'/');
}
global $mainframe;
$cache_id = '';
$use_cache = 1;//$mainframe->getCfg("caching");
if ( $params->get('jacache') == "1" && $use_cache == "1") {
$options = array(
'lifetime' => (int)($params->get( 'jacache_time', 30 ) * 60),
'caching' => true,
);
jimport('joomla.cache.cache');
$cache = new JCache($options);
/* Make cache id */
$cache_id = $helper->_makeId($params, $module->id);
if($cache_id!=''){
$oldlen = strlen(ob_get_contents());
}
if($helper->check_cache($cache, $cache_id, $module->module)){
if(JRequest::getBool('janews_fp_ajax'))
exit;
return;
}
}
$helper->_load ($params);
$rows = $helper->articles;
if (JRequest::getBool ('janews_fp_ajax')) {
$path = JModuleHelper::getLayoutPath ( $module->module, $theme.'/blog_links' );
ob_clean();
require ($path);
/* Set cache */
if ( $params->get('jacache') == "1" && $use_cache == "1") {
$maincontent = substr(ob_get_contents(), $oldlen);
if($maincontent){
$cache->store($maincontent, $cache_id, $module->module);
}
}
exit;
}
else{
$path = JModuleHelper::getLayoutPath ( $module->module, $theme.'/blog' );
if (file_exists ( $path )) {
require ($path);
/* Set cache */
if ( $params->get('jacache') == "1" && $use_cache == "1") {
$maincontent = substr(ob_get_contents(), $oldlen);
if($maincontent){
$cache->store($maincontent, $cache_id, $module->module);
}
}
}
}
?>