__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2014 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\Table;

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

use Joomla\CMS\Application\ApplicationHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\User\CurrentUserTrait;

class DavcalendarTable extends BasicTable
{
	use CurrentUserTrait;

	/** @var string */
	public $calendarid;

	/** @var int */
	public $access;

	/** @var string */
	public $displayname;

	/** @var string */
	public $uri;

	/** @var string */
	public $principaluri;

	protected string $tableName = 'dpcalendar_caldav_calendarinstances';

	public function store($updateNulls = false)
	{
		if (!$this->calendarid) {
			$obj             = new \stdClass();
			$obj->components = 'VEVENT,VTODO,VJOURNAL';
			$this->getDatabase()->insertObject('#__dpcalendar_caldav_calendars', $obj);
			$this->calendarid = $this->getDatabase()->insertid();
			$this->access     = 1;
		}

		return parent::store($updateNulls);
	}

	public function check(): bool
	{
		// Check for valid name
		if (trim($this->displayname) === '') {
			throw new \Exception(Text::_('COM_DPCALENDAR_LOCATION_ERR_TABLES_TITLE'));
		}

		// Check for existing name
		$query = 'SELECT id FROM #__dpcalendar_caldav_calendarinstances WHERE uri = ' . $this->getDatabase()->quote($this->uri ?: '') .
			" and principaluri = 'principals/" . $this->getCurrentUser()->username . "'";
		$this->getDatabase()->setQuery($query);

		$xid = (int)$this->getDatabase()->loadResult();
		if ($xid && $xid != (int)$this->id) {
			throw new \Exception(Text::_('COM_DPCALENDAR_LOCATION_ERR_TABLES_NAME'));
		}

		if (empty($this->uri)) {
			$this->uri = $this->displayname;
		}

		$this->uri = ApplicationHelper::stringURLSafe($this->uri);
		if (trim(str_replace('-', '', $this->uri)) === '') {
			$this->uri = Factory::getDate()->format("Y-m-d-H-i-s");
		}

		$this->principaluri = 'principals/' . $this->getCurrentUser()->username;

		return true;
	}
}

Filemanager

Name Type Size Permission Actions
BasicTable.php File 1004 B 0664
CountryTable.php File 2.59 KB 0664
CouponTable.php File 3.64 KB 0664
DavcalendarTable.php File 2.06 KB 0664
EventTable.php File 24.24 KB 0664
ExtcalendarTable.php File 6.47 KB 0664
LocationTable.php File 5.72 KB 0664
TaxrateTable.php File 3.08 KB 0664
Filemanager