PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/jairosvt/public_html/afmedios.com/modules/mod_comments/
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
Choose File :

Url:
Dir : /home/jairosvt/public_html/afmedios.com/modules/mod_comments/mod_comments.php

<?php defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');

/*
 * Copyright Copyright (C) 2007 Alain Georgette. All rights reserved.
 * License http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 *
 * Mod_comments of !JoomlaComment is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Mod_comments of !JoomlaComment is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 */


?>
<script type='text/javascript'>
function JOSC_viewPost<?php echo $module->id; ?>(contentid, id, itemid)
{
	window.location = 'index.php?option=com_content&task=view&id=' + contentid + (itemid ? ('&Itemid='+itemid) : '') + '&comment_id=' + id + '#josc' + id;
	if (navigator.userAgent.toLowerCase().indexOf("opera") != -1) window.location = '##';
}
</script>
<?php

if (!file_exists($mosConfig_absolute_path."/administrator/components/com_comment/class.config.comment.php")) {
  		echo ("<font color='red'>Please install the joomlacomment component first.</font>");
  		
} else {

	if (!defined('_JOSC_J10') && !defined('_JOSC_J15')) {
		if (version_compare($GLOBALS['_VERSION']->RELEASE, '1.5', '>='))
			DEFINE('_JOSC_J15', true);
		else
			DEFINE('_JOSC_J10', true);
	}
		
	global $option, $mosConfig_absolute_path;
	require_once("$mosConfig_absolute_path/modules/". ( defined('_JOSC_J15') ? "mod_comments/" : "" ) ."mod_comments/mod_comments.class.php");
	
	$mod_comments = new JOSC_mod_comments($params, $module); 

	$html = '';
	switch ($mod_comments->_orderby) {
	    /* M O S T   C O M M E N T E D */
	    case 'mostcommented':
			$html = $mod_comments->mod_commentsGetMostCommented($params);   	
			break;
			
		/* O T H E R S   C O M M E N T S */
	    default :
			$html = $mod_comments->mod_commentsGetOthers($params);  
			break;
	}

	if ($mod_comments->_overlay) {
		/* OVERLAY */ 
		if (defined('_JOSC_J15'))
			$mod_comments->loadOverlib();
		else
			mosCommonHTML::loadOverlib();
	}

?>
	<div class="mod_comments<?php echo $mod_comments->_moduleclass_sfx; ?>" <?php echo $mod_comments->_overflow;?> > <!-- style="overflow: hidden; width: 100%"> -->
		<?php echo $html; ?> 
	</div>
<?php
	unset($mod_comments);
}

?>