? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/modules/mod_slideshowck/elements/
File Upload :
Current File : /home/admin/public_html/old/modules/mod_slideshowck/elements/ckmediapreview.php

<?php

/**
 * @copyright	Copyright (C) 2011 Cedric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * @license		GNU/GPL
 * */
// no direct access
defined('_JEXEC') or die('Restricted access');

class JFormFieldCkmediapreview extends JFormField {

    protected $type = 'Ckmediapreview';

    protected function getInput() {
        $source = $this->element['source'];
        echo "<script>
        window.addEvent('domready', function() {
            $('".$this->id."').src = '".JURI::root()."'+$('jform_params_".$source."').value;
            $('jform_params_".$source."').addEvent('change', function() {
                $('".$this->id."').src = '".JURI::root()."'+$('jform_params_".$source."').value;
            });
        });
        </script>";

        $path = 'modules/mod_beautifulck/elements/jscolor/';
        JHTML::_('script', 'jscolor.js', $path);
        $styles = $this->element['styles'];
        $html = '';
        // $html .= '<img src="' . $this->getPathToImages() . '/images/color.png" />';
        $html.= '<div style="clear:both;border:7px solid white;border-radius:5px;box-shadow:#000 0px 0px 3px;width:64px;height:64px;overflow:hidden;"><img id="'.$this->id.'" src="test.png" style="width:64px;height:64px;margin:0;" /></div>';
        return $html;
    }

    protected function getPathToImages() {
        $localpath = dirname(__FILE__);
        $rootpath = JPATH_ROOT;
        $httppath = trim(JURI::root(), "/");
        $pathtoimages = str_replace("\\", "/", str_replace($rootpath, $httppath, $localpath));
        return $pathtoimages;
    }

    protected function getLabel() {
        return '';
    }

}


T1KUS90T
  root-grov@210.1.60.28:~$