%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/plugins/everything_in_everyway/cookie_policy/form/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/plugins/everything_in_everyway/cookie_policy/form/fields/pwebbutton.php
<?php
/**
 * @package     pwebbox
 * @version 	1.0.0
 *
 * @copyright   Copyright (C) 2018 Perfect Web. All rights reserved. http://www.perfect-web.co
 * @license     GNU General Public Licence http://www.gnu.org/licenses/gpl-3.0.html
 */

defined('_JEXEC') or die('Restricted access');

jimport('joomla.form.formfield');

class JFormFieldPwebButton extends JFormField
{
    protected $type = 'PwebButton';

    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     * @since	1.6
     */
    protected function getInput()
    {
        // Get mod_pwebbox id from extensions table.
        $db = JFactory::getDbo();

        $query = $db->getQuery(true);

        $query
                ->select($db->quoteName('extension_id'))
                ->from($db->quoteName('#__extensions'))
                ->where($db->quoteName('element') . ' = ' . $db->quote('mod_pwebbox'));

        $db->setQuery($query);

        try
        {
                $result = $db->loadResult();
        }
        catch (Exception $e)
        {
                echo $e->getMessage();
        }

        $icon = '';
        // For J!2.5 integration.
        if (is_file(JPATH_ROOT.'/media/jui/css/icomoon.css'))
        {
            $icon = '<i class="icon-plus icon-white"></i> ';
        }

        $html = '';
        if (!empty($result))
        {
            $onclick = 'onclick="location.href=\'index.php?option=com_modules&task=module.add&eid=' . $result . '#plugin-cookie_policy\'"';

            $html   = '<button ' . $onclick . ' type="button" class="btn btn-success hasTooltip" id="pweb_plugin_create_instance" title="' . JText::_('PLG_PWEBBOX_CREATE_INSTANCE_DESC') . '">'
                        . $icon . JText::_('PLG_PWEBBOX_CREATE_INSTANCE_LABEL')
                    . '</button>';
        }
        else
        {
            $app = JFactory::getApplication();

            $app->enqueueMessage(JText::_('PLG_PWEBBOX_MODULE_NOT_INSTALLED'), 'warning');
        }

        return $html;
    }

}

Anon7 - 2022
AnonSec Team