| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/components/com_nexevocontact/views/loader/ |
Upload File : |
<?php defined("_JEXEC") or die('Restricted access');
/**
@Nexevo Responsive Conact Form
@author Nexevo Technologies <info@nexevo.in>
@link http://www.Nexevo.in
@copyright (C) 2010 - 2011 Nexevo-Extension
@license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
class NexevoContactViewLoader extends JViewLegacy
{
protected $Input;
public function __construct($config = array())
{
parent::__construct($config);
$this->Input = JFactory::getApplication()->input;
}
function display($tpl = null)
{
$owner = $this->Input->get("owner", "");
preg_match('/^[a-z_-]+$/', $owner) or $owner = "";
$method = "_get_" . $owner . "_params_";
$params = $this->{$method}();
$type = $this->Input->get("type", "");
preg_match('/^[a-z_-]+$/', $type) or $type = "";
$root = $this->Input->get("root", "");
preg_match('/^components|media$/', $root) or $root = "components";
$option = $this->Input->get("option", "");
preg_match('/^[a-z_-]+$/', $option) or $option = "";
$view = $this->Input->get("v", "");
preg_match('/^[a-z_-]+$/', $view) or $view = "";
$view = $view ? "/views/" . $view : "";
jimport("nexevocontact.loader." . $type) or die(JText::_("JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND"));
$classname = $type . "Loader";
$loader = new $classname();
$loader->IncludePath = JPATH_SITE . "/{$root}/{$option}" . $view;
$loader->Params = & $params;
$loader->Show();
}
private function _get__params_()
{
return new Joomla\Registry\Registry();
}
private function _get_component_params_()
{
$application = @JFactory::getApplication('site');
$menu = @$application->getMenu();
$params = $menu->getParams(intval($this->Input->get("id", 0)));
return $params;
}
private function _get_module_params_()
{
$db = JFactory::getDbo();
jimport('joomla.database.databasequery');
$query = $db->getQuery(true);
$query->select($db->quoteName('params'));
$query->from($db->quoteName('#__modules'));
$query->where($db->quoteName('id') . '=' . intval($this->Input->get('id', 0)));
$query->where($db->quoteName('module') . '=' . $db->quote('mod_nexevocontact'));
$db->setQuery($query);
$json = $db->loadResult();
$params = new Joomla\Registry\Registry($json);
return $params;
}
}