HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/libraries/smartslider3/src/Framework/Form/Element/Upload.php
<?php

namespace Nextend\Framework\Form\Element;

use Nextend\Framework\Asset\Js\Js;
use Nextend\Framework\Form\AbstractField;
use Nextend\Framework\View\Html;

class Upload extends AbstractField {

    protected $class = 'n2-form-element-file ';

    protected function fetchElement() {

        $html = '';
        $html .= '<div class="n2_field_chooser__label"></div>';
        $html .= Html::tag('a', array(
            'href'  => '#',
            'class' => 'n2_field_chooser__choose'
        ), '<i class="ssi_16 ssi_16--plus"></i>');

        $html .= Html::tag('input', array(
            'type'         => 'file',
            'id'           => $this->fieldID,
            'name'         => $this->getFieldName(),
            'value'        => $this->getValue(),
            'autocomplete' => 'off'
        ), false, false);

        Js::addInline('new N2Classes.FormElementUpload("' . $this->fieldID . '");');

        return Html::tag('div', array(
            'class' => 'n2_field_chooser n2_field_upload '
        ), $html);
    }
}