| 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/dansnotreville-fr/nice/modules/mod_mymaplocations/ |
Upload File : |
<?php
/*
* @version 4.5.2
* @package com_mymaplocations
* @copyright JoomUnited (C) 2011. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* ***@author Created by JoomUnited (C)
*/
defined('_JEXEC') or die;
jimport('joomla.version');
// import Joomla Categories Library
jimport('joomla.application.categories');
if (!(class_exists('MyMapLocationsHelper'))) {
$helper = JPATH_SITE . '/components/com_mymaplocations/helpers/mymaplocations.php';
if (file_exists($helper)) {
require_once($helper);
}
}
MyMaplocationsHelper::loadLanguage();
$app = JFactory::getApplication();
$param = JComponentHelper::getParams('com_mymaplocations');
$autocomplete_type=$param->get('autocomplete_type',1);
$mode=$param->get('mode',0);
$distances = explode(",", $param->get('distance', '5,10,15,20'));
$distance_type = $param->get('distance_type', 1);
$mitemid = JFactory::getApplication()->input->getString('Itemid');
$filterzip = JFactory::getApplication()->input->getString('searchzip');
$searchpostal=JFactory::getApplication()->input->getString('searchpostal');
$filterradius = JFactory::getApplication()->input->getString('radius');
$geocode = $param->get('geolocation', 1);
if(empty($filterradius))
{
$filterradius=$params->get('radius', -1);
}
$width = $params->get('width', 150);
$component = $params->get('component', 'com_mymaplocations');
$anywhere = $param->get('anywhere', 1);
$distance_hide = $param->get('distance_hide', 1);
$itemid = $params->get('mymenuitem', JFactory::getApplication()->input->getString('Itemid'));
if($itemid=="")
{
$itemid =MyMaplocationsHelper::getMenuId($component);
}
$showcat = $param->get('filter_cat', 0);
$limit=JFactory::getApplication()->input->getString('limit');
if(empty($limit))
{
$limit=$params->get('limit');
}
$filter_catid = JFactory::getApplication()->input->getString('filter_catid');
$globalcolor = $param->get('globalcolor', '#2980b9');
$advsearch="";
if (empty($filter_catid)) {
$filter_catid = $params->get('filter_catid');
}
if($showcat ==1)
{
$category ="";
if($component=="com_k2")
{
$k2catid=JFactory::getApplication()->input->getInt('k2_catid',0);
require_once JPATH_ADMINISTRATOR.'/components/com_k2/models/categories.php';
$categoriesModel = K2Model::getInstance('Categories', 'K2Model');
$categories = array_merge(
array('' => JText::_('JOPTION_SELECT_CATEGORY')), $categoriesModel->categoriesTree()
);
$category =JHTML::_('select.genericlist', $categories, 'k2_catid', 'class="inputbox"', 'value', 'text', $k2catid);
}
else if($component=="com_hikamarket")
{
$category=MyMaplocationsHelper::getHikaCategory();
}
else if($component=="com_zoo")
{
$category=MyMaplocationsHelper::getZooCategory();
}
else if($component=="com_adsmanager")
{
$category=MyMaplocationsHelper::getAdsManagerCategory();
}
else if($component=="com_djclassifieds")
{
$category=MyMaplocationsHelper::getDjClassifiedsCategory();
}
else if($component=="com_jomclassifieds")
{
$category="<div class='adv-search'>".MyMaplocationsHelper::getJomclassifiedsCategory()."</div>";
}
else if($component=="com_ohanah")
{
$category=MyMaplocationsHelper::getOhanahCategory();
}
else if($component=="com_eventbooking")
{
$category=MyMaplocationsHelper::getEventBookingCategory();
}
else if($component=="com_easyblog")
{
$category=MyMaplocationsHelper::getEasyBlogCategory();
}
else if($component=="com_community")
{
$ad=MyMaplocationsHelper::getAdvanceCommunitySearch($component);
if($ad==1)
{
$advsearch=MyMaplocationsHelper::getAdvanceSearchDiv($component);
}
}
else
{
$userId = JFactory::getUser()->id;
$allowedViewLevels = JAccess::getAuthorisedViewLevels($userId);
$options = array_merge(
array('' => JText::_('JOPTION_SELECT_CATEGORY')), JHtml::_('category.options', 'com_mymaplocations',$config = array('filter.published' => array(1),'filter.access' =>$allowedViewLevels,'filter.language' => array('*',JFactory::getLanguage()->getTag()))));
$category = JHTML::_('select.genericlist', $options, 'filter_catid', null, 'value', 'text', $filter_catid);
}
}
require JModuleHelper::getLayoutPath('mod_mymaplocations', $params->get('layout', 'default'));