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/dansnotreville-fr/plugins/community/mymaplocations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/dansnotreville-fr/plugins/community/mymaplocations/mymaplocations.php
<?php
/**
 * @version     4.5.2
 * @package     plg_mymaplocations for Joomsocial
 * @copyright   JoomUnited (C) 2011. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * ****@author      joomunited - contact@joomunited.com
 */
defined('_JEXEC') or die('Restricted access');
require_once( JPATH_ROOT .'/components/com_community/libraries/core.php');
if(!class_exists('plgCommunityMyMapLocations'))
{
	class plgCommunityMyMapLocations extends CApplications
	{
		var $_user		= null;
		var $name		= "My Maplocations";
		var $_name 		= 'mymaplocation';

	     function __construct($subject, $config) {
            parent::__construct($subject, $config);
			
	    }
	function onProfileDisplay()
		 {
			require_once(JPATH_SITE .'/components/com_mymaplocations/helpers/mymaplocations.php');
			$lang = JFactory::getLanguage();
			 MyMaplocationsHelper::loadLanguage();
			$config	= CFactory::getConfig();
			$cache = JFactory::getCache('plgCommunityMyMapLocations');
			$mainframe = JFactory::getApplication();
			$caching = $this->params->get('cache', 1);
				if($caching)
				{
					$caching = $mainframe->getCfg('caching');
				}
			       $user = CFactory::getRequestUser();
				$userid = $user->id;
				
			$cache->setCaching($caching);
			$content=$this->_createMMLMap($userid);
			return $content;
				
		 }
		 
		 private function _createMMLMap($userid)
		 {
                     $html="";
			$items[0]=$this->createMMLDATA($userid);
			if(($items[0]->latitude=="255.000000")||($items[0]->longitude=="255.000000"))
			{
				return;
			}
			$width=$this->params->get('viewwidth',"100%");
			$height=$this->params->get('height','400px');
			$zoom=$this->params->get('viewzoom',9);
			$map=$this->params->get('map',0);
			$items[0]->google_maptype = $this->params->get('google_maptype', 'ROADMAP');
			$items[0]->bing_maptype = $this->params->get('bing_maptype', 'road');
			$items[0]->openmapstyle=$this->params->get('openmapstyle', 1);
			$items[0]->map_design=$this->params->get('map_design', 1);
			$items[0]->map_layer=$this->params->get('map_layer',1);
			$items[0]->maplayer_url=$this->params->get('maplayer_url','');

                        $html.="<style type='text/css'>.joms-body .map_canvas { float:inherit !important;}</style>";
						if($map==0)
						{
			$html.="<script type='text/javascript'>jQuery('.joms-tab__bar a').on('click', function() {
				reinitialize_com_community_".$userid."();
			});
			
			
			</script>";
						}
			
                        if(!@include_once(rtrim(JPATH_SITE,'/').'/components/com_mymaplocations/helpers/mymaplocations.php')){
	return;
                        };
												$html.="<style type='text/css'>.joms-main .mmlmap{float:none !important;}</style>";
			$html.=MyMaplocationsHelper::createMap($items, $width,$height, $zoom, $map);
			return $html;
		 
		 }
		 public function createMMLDATA($userid)
		 {
                     if(!@include_once(rtrim(JPATH_SITE,'/').'/components/com_mymaplocations/helpers/mymaplocations.php')){
	return;
                        };
			$config	= CFactory::getConfig();
			$item=new StdClass();
			$user	= CFactory::getUser($userid);
			$item->name=$user->getDisplayName();
			$item->icon=MyMaplocationsHelper::getCommunityLogo($userid);
			$item->logo=$item->icon;
			$item->address=MyMaplocationsHelper::getCommunityAddress($userid);
			$item->component="com_community";
			$item->id=$userid;
			$db = JFactory::getDBO();
			$sql = "SELECT
							".$db->quoteName("latitude").",
							".$db->quoteName("longitude")."
					FROM
							".$db->quoteName("#__community_users")."
					WHERE
							".$db->quoteName("userid")." = (".$db->Quote($userid).")";

			$db->setQuery($sql);
			$row = $db->loadObject();
			$item->latitude=$row->latitude;
			$item->longitude=$row->longitude;
			return $item;
		}
	}
}


Anon7 - 2022
AnonSec Team