AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/montpellier/modules/mod_djc2frontpage/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/montpellier/modules/mod_djc2frontpage/mod_djc2frontpage.php
<?php
/**
* @version $Id: mod_djc2frontpage.php 675 2017-01-17 06:44:26Z michal $
* @package DJ-Catalog2
* @copyright Copyright (C) 2010 Blue Constant Media LTD, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://design-joomla.eu
* @author email contact@design-joomla.eu
* @developer Michal Olczyk - michal.olczyk@design-joomla.eu
*
*
*
** the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DJ-Catalog2 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 DJ-Catalog2. If not, see <http://www.gnu.org/licenses/>.
*
*/

defined('_JEXEC') or die ('Restricted access');

if (!defined('DS')) {
	define('DS', DIRECTORY_SEPARATOR);
}

$app = JFactory::getApplication();

$document = JFactory::getDocument();

require_once(JPATH_BASE.'/components/com_djcatalog2/helpers/theme.php');
DJCatalog2ThemeHelper::setThemeAssets();

$option = $app->input->get('option','','string');

//$layout = $params->get('layout','default');
$layout = 'default';

$style = $params->get('css','default');
$cssStyleSheets = array('default','bootstrap');
if (!in_array($style, $cssStyleSheets)) {
	$style = 'default';
}

$componentParams = $app->getParams('com_djcatalog2');
$categories = null;
if (is_array($params->get('catid')))
{
	$categories = implode('|',$params->get('catid'));
}
else {
	$categories = $params->get('catid');
}

$mid = $module->id;

$css = JURI::base().'modules/mod_djc2frontpage/css/'.$style.'.css';
$js = JURI::base().'modules/mod_djc2frontpage/js/djfrontpage.js';
$document->addStyleSheet($css);

$responsiveWidth = (int)$params->get('responsive_width','');
$responsiveCss = JPATH_BASE.'/modules/mod_djc2frontpage/css/responsive.css';

if ($responsiveWidth > 0 && JFile::exists($responsiveCss)) {
	$responsiveStyle = array();
	$responsiveArray[] = '@media screen and (max-width: '.$responsiveWidth.'px) {';
	$cssContents = file_get_contents($responsiveCss);
	if ($cssContents) {
		$responsiveArray[] = $cssContents;
	}
	$responsiveArray[] = '}';
	$document->addStyleDeclaration(implode(PHP_EOL, $responsiveArray));
}

$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

$document->addScript($js);
$document->addScriptDeclaration('
//<!--
	var sliderOptions_'.$mid.' = {
		moduleId: \''.$mid.'\',
		baseurl: \''.JURI::base().'index.php?option=com_djcatalog2&format=raw&task=modfp\',
		showcategorytitle: \''. $params->get('showcattitle').'\',
		showtitle: \''. $params->get('showtitle',1).'\',
		showproducer: \''. $params->get('showprodtitle',0).'\',
		showprice: \''. $params->get('showprice',0).'\',
		linktitle: \''. $params->get('linktitle',1).'\',
		showpagination: \''. $params->get('showpagination', 1).'\',
		order: \''. $params->get('orderby').'\',
		orderdir: \''. $params->get('orderbydir',0).'\',
		featured_only: \''. $params->get('featured_only',0).'\',
		featured_first: \''. $params->get('featured_first',0).'\',
		columns: \''. $params->get('cols').'\',
		rows: \''. $params->get('rows').'\',
		allcategories: \''. $params->get('catsw').'\',
		categories: \''. $categories.'\',
		trunc: \''. $params->get('trunc','0').'\',
		trunclimit: \''. $params->get('trunclimit','0').'\',
		modal: \''. $params->get('modalimage','1').'\',
		showreadmore: \''. $params->get('showreadmore','1').'\',
		readmoretext: \''. urlencode($params->get('readmoretext','')).'\',
		url : \'\',
		largewidth : \''.(int)$params->get('largewidth','400').'\',
		largeheight : \''.(int)$params->get('largeheight','240').'\',
		largecrop : \''.(int)$params->get('largeprocess', 1).'\',
		smallwidth : \''.(int)$params->get('smallwidth','90').'\',
		smallheight : \''.(int)$params->get('smallheight','70').'\',
		smallcrop : \''.(int)$params->get('smallprocess', 1).'\'	
	};
	
	jQuery(document).ready(function(){
	    this.DJFrontpage_'. $mid.' = new DJFrontpage(sliderOptions_'.$mid.');
	});
// -->
');

require(JModuleHelper::getLayoutPath('mod_djc2frontpage', $layout));
?>

Anon7 - 2022
AnonSec Team