uawdijnntqw1x1x1
IP : 104.23.243.223
Hostname : vps-ebe98236
Kernel : Linux vps-ebe98236 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
html
/
Joomla
/
b2748
/
..
/
libraries
/
gantry5
/
..
/
regularlabs
/
fields
/
languages.php
/
/
<?php /** * @package Regular Labs Library * @version 23.1.9739 * * @author Peter van Westen <info@regularlabs.com> * @link http://regularlabs.com * @copyright Copyright © 2023 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper as JHtml; use Joomla\Registry\Registry; use RegularLabs\Library\Field; if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php')) { return; } require_once JPATH_LIBRARIES . '/regularlabs/autoload.php'; class JFormFieldRL_Languages extends Field { public $type = 'Languages'; public function getAjaxRaw(Registry $attributes) { $name = $attributes->get('name', $this->type); $id = $attributes->get('id', strtolower($name)); $value = $attributes->get('value', []); $size = $attributes->get('size'); $multiple = $attributes->get('multiple'); $options = $this->getLanguages($value); return $this->selectListSimple($options, $name, $value, $id, $size, $multiple); } public function getLanguages($value) { $langs = JHtml::_('contentlanguage.existing'); if ( ! is_array($value)) { $value = [$value]; } $options = []; foreach ($langs as $lang) { if (empty($lang->value)) { continue; } $options[] = (object) [ 'value' => $lang->value, 'text' => $lang->text . ' [' . $lang->value . ']', 'selected' => in_array($lang->value, $value), ]; } return $options; } protected function getInput() { $size = (int) $this->get('size'); $multiple = $this->get('multiple'); return $this->selectListSimpleAjax( $this->type, $this->name, $this->value, $this->id, compact('size', 'multiple') ); } }
/var/www/html/Joomla/b2748/../libraries/gantry5/../regularlabs/fields/languages.php