403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.243.196
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/Calendar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/fcs/administrator/components/com_dpcalendar/src/Calendar/ExternalCalendar.php
<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2024 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\Calendar;

use Joomla\CMS\User\User;
use Joomla\Registry\Registry;

class ExternalCalendar extends Calendar implements ExternalCalendarInterface
{
	private string $pluginName  = '';
	private string $systemName  = '';
	private int $access_content = 1;
	private ?string $syncDate   = null;
	private ?string $syncToken  = null;
	private bool $forceColor    = true;

	protected string $assetName = 'extcalendar';

	public function __construct(string $id, string $title, User $user)
	{
		parent::__construct($id, $title, $user);

		$this->setCanBook(false);
		$this->setCanEditOwn(false);
	}

	public function getPluginName(): string
	{
		return $this->pluginName;
	}

	public function setPluginName(string $pluginName): void
	{
		$this->pluginName = $pluginName;
	}

	public function getSystemName(): string
	{
		return $this->systemName;
	}

	public function setSystemName(string $systemName): void
	{
		$this->systemName = $systemName;
	}

	public function getAccessContent(): int
	{
		return $this->access_content;
	}

	public function setAccessContent(int $access): void
	{
		$this->access_content = $access;
	}

	public function getSyncDate(): ?string
	{
		return $this->syncDate;
	}

	public function setSyncDate(?string $syncDate): void
	{
		$this->syncDate = $syncDate;
	}

	public function getSyncToken(): ?string
	{
		return $this->syncToken;
	}

	public function setSyncToken(?string $syncToken): void
	{
		if ($syncToken === '') {
			$syncToken = null;
		}

		$this->syncToken = $syncToken;
	}

	public function forceColor(): bool
	{
		return $this->forceColor;
	}

	public function setForceColor(bool $forceColor): void
	{
		$this->forceColor = $forceColor;
	}

	public function setParams(Registry $params): void
	{
		parent::setParams($params);

		// We need to validate as it can also be a string false
		$this->setCanCreate($this->canCreate() && filter_var($this->getParams()->get('action-create', false), FILTER_VALIDATE_BOOLEAN));
		$this->setCanEdit($this->canEdit() && filter_var($this->getParams()->get('action-edit', false), FILTER_VALIDATE_BOOLEAN));
		$this->setCanDelete($this->canDelete() && filter_var($this->getParams()->get('action-delete', false), FILTER_VALIDATE_BOOLEAN));
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit