# vikbooking/1.8.16/admin/views/trkconfig/view.html.php

VikBooking Hotel Booking Engine &amp; PMS, version 1.8.16. 50 lines.

- Page: https://pluginprobe.com/plugins/vikbooking/1.8.16/code/admin/views/trkconfig/view.html.php
- Raw: https://pluginprobe.com/plugins/vikbooking/1.8.16/raw/admin/views/trkconfig/view.html.php
- Modified: 2026-10-01T16:23:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/vikbooking/1.8.16/code/admin/views/trkconfig/view.html.php#L10-L20`.

```php
<?php
/**
 * @package     VikBooking
 * @subpackage  com_vikbooking
 * @author      Alessio Gaggii - e4j - Extensionsforjoomla.com
 * @copyright   Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 * @link        https://vikwp.com
 */

defined('ABSPATH') or die('No script kiddies please!');

// import Joomla view library
jimport('joomla.application.component.view');

class VikBookingViewTrkconfig extends JViewVikBooking
{
	public function display($tpl = null)
	{
		// Set the toolbar
		$this->addToolBar();

		// require the tracker class
		VikBooking::getTracker(true);
		//

		$trksettings = VikBookingTracker::loadSettings();
		
		$this->trksettings = $trksettings;
		
		// Display the template
		parent::display($tpl);
	}

	/**
	 * Sets the toolbar
	 */
	protected function addToolBar()
	{
		JToolBarHelper::title(JText::translate('VBMAINTRACKINGSTITLE'), 'vikbooking');
		if (JFactory::getUser()->authorise('core.edit', 'com_vikbooking')) {
			JToolBarHelper::apply( 'savetrkconfigstay', JText::translate('VBSAVE'));
			JToolBarHelper::save( 'savetrkconfig', JText::translate('VBSAVECLOSE'));
			JToolBarHelper::spacer();
		}
		JToolBarHelper::cancel( 'canceltrk', JText::translate('VBBACK'));
		JToolBarHelper::spacer();
	}
}

```
