PluginProbe
VikBooking Hotel Booking Engine & PMS / trunk
VikBooking Hotel Booking Engine & PMS vtrunk
1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 All 36 releases
vikbooking / admin / views / edittmplfile / view.html.php

view.html.php in VikBooking Hotel Booking Engine & PMS trunk, at admin/views/edittmplfile/view.html.php

43 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage com_vikbooking
5 * @author Alessio Gaggii - e4j - Extensionsforjoomla.com
6 * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 // import Joomla view library
14 jimport('joomla.application.component.view');
15
16 class VikBookingViewEdittmplfile extends JViewVikBooking
17 {
18 public function display($tpl = null)
19 {
20 // This view is usually called within a modal box, so it does not require the toolbar or page title
21
22 $fpath = VikRequest::getString('path', '', 'request', VIKREQUEST_ALLOWRAW);
23 $pdebug = VikRequest::getInt('e4j_debug', '', 'request');
24 $exists = is_file($fpath);
25 if (!$exists) {
26 $fpath = urldecode($fpath);
27 }
28 if (!is_file($fpath) && $pdebug > 0) {
29 //VBO 1.10
30 touch($fpath);
31 } elseif (strpos(basename($fpath), 'config') !== false) {
32 // security patch for VBO 1.10
33 $fpath = '';
34 }
35 $fpath = is_file($fpath) ? $fpath : '';
36
37 $this->fpath = $fpath;
38
39 // Display the template
40 parent::display($tpl);
41 }
42 }
43