AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/plugins/engagebox/phpscripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/plugins/engagebox/phpscripts/phpscripts.php
<?php

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

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

use Joomla\CMS\Plugin\CMSPlugin;

class plgEngageBoxPHPScripts extends CMSPlugin
{
    /**
     * The box object
     *
     * @var object
     */
    private $box;

    /**
     * Payload sent to the php scripts.
     * 
     * @var  array
     */
    private $payload = [];

    /**
     *  Auto load plugin's language file
     *
     *  @var  boolean
     */
    protected $autoloadLanguage = true;

    /**
     * Add PHP Scripts form into the box editing page
     *
     * @param  object $form
     *
     * @return void
     */
    public function onContentPrepareForm($form)
    {
        if ($form->getName() != 'com_rstbox.item')
        {
            return;
        }

        $form->loadFile(__DIR__ . '/form.xml', false);
    }

    
    /**
     * The BeforeRender event fires before the box's layout is ready.
     *
     * @param  object $box           The box's settings object
     *
     * @return void
     */
    public function onEngageBoxBeforeRender($box)
    {
        $this->box = $box;
        $this->runPHPScript('beforerender');
    }

    /**
     * The AfterRender event fires after the box's layout is ready.
     *
     * @param  string $boxLayout     The box's final HTML output
     * @param  object $box           The box's settings object
     *
     * @return void
     */
    public function onEngageBoxAfterRender(&$boxLayout, $box)
    {
        $this->box = $box;
        $this->payload = ['boxLayout' => &$boxLayout];
        $this->runPHPScript('afterrender');
    }

    /**
     * The Open event fires every time the box opens
     *
     * @param  object $box  The box's settings object
     *
     * @return void
     */
    public function onEngageBoxOpen($box)
    {
        $this->box = $box;
        $this->runPHPScript('open');
    }

    /**
     * Close event fires every time the box closes
     *
     * @param  object $box  The box's settings object
     *
     * @return void
     */
    public function onEngageBoxClose($box)
    {
        $this->box = $box;
        $this->runPHPScript('close');
    }

    /**
     * Run user-defined PHP scripts
     *
     * @param   String  $script   The PHP code to run
     *
     * @return  void
     */
    private function runPHPScript($php_script)
    {
        if (!$php_script = $this->box->params->get('phpscripts.' . $php_script))
        {
            return;
        }

        $this->payload['box'] = $this->box;

        // Run PHP
        (new \NRFramework\Executer($php_script, $this->payload))->run();
    }
    
}

Anon7 - 2022
AnonSec Team