# vikbooking/1.6.5/admin/views/edittmplfile/view.html.php

VikBooking Hotel Booking Engine &amp; PMS, version 1.6.5. 43 lines.

- Page: https://pluginprobe.com/plugins/vikbooking/1.6.5/code/admin/views/edittmplfile/view.html.php
- Raw: https://pluginprobe.com/plugins/vikbooking/1.6.5/raw/admin/views/edittmplfile/view.html.php
- Modified: 2023-11-13T11:01:42+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.6.5/code/admin/views/edittmplfile/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 VikBookingViewEdittmplfile extends JViewVikBooking
{
	public function display($tpl = null)
	{
		// This view is usually called within a modal box, so it does not require the toolbar or page title
		
		$fpath = VikRequest::getString('path', '', 'request', VIKREQUEST_ALLOWRAW);
		$pdebug = VikRequest::getInt('e4j_debug', '', 'request');
		$exists = is_file($fpath);
		if (!$exists) {
			$fpath = urldecode($fpath);
		}
		if (!is_file($fpath) && $pdebug > 0) {
			//VBO 1.10
			touch($fpath);
		} elseif (strpos(basename($fpath), 'config') !== false) {
			// security patch for VBO 1.10
			$fpath = '';
		}
		$fpath = is_file($fpath) ? $fpath : '';
		
		$this->fpath = $fpath;
		
		// Display the template
		parent::display($tpl);
	}
}

```
