Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jdonation/libraries/osf/form/field/php.php
Ðазад
<?php use Joomla\CMS\Factory; /** * Form Field class for the Joomla OSF. * Supports a generic list of options. * * @package Joomla.OSF * @subpackage Form */ class OSFFormFieldPHP extends OSFFormFieldList { /** * The form field type. * * @var string */ protected $type = 'PHP'; /** * The query. * * @var string */ protected $query; /** * Method to instantiate the form field object. * * @param JTable $row the table object store form field definitions * @param mixed $value the initial value of the form field * */ public function __construct($row, $value) { parent::__construct($row, $value); $this->query = $row->default_values; } /** * Method to get the custom field options. * Use the query attribute to supply a query to generate the list. * * @return array The field option objects. */ protected function getOptions() { try { $db = Factory::getDbo(); //$db->setQuery($this->query); eval($this->query); //$options = $db->loadObjectlist(); } catch (Exception $e) { $options = array(); } return $options; } protected function getOptionsSimple($field) { try { $db = Factory::getDbo(); eval($this->query); //$db->setQuery($this->query); //$options = $db->loadObjectList(); //print_r($options);die(); } catch (Exception $e) { //echo $e->getMessage();die(); $options = array(); } return $options; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка