HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/plugins/digimember/system/library/ajax/response.php
<?php

class ncore_AjaxResponse extends ncore_Class
{
    public function error( $msg )
    {
        $this->error = $msg;
    }

    public function success( $msg )
    {
        $this->success = $msg;
    }

    public function setResponseObject( $object )
    {
        $this->prepared_reponse_object = $object;
    }

    public function html( $target_div_id, $html )
    {
        $this->target_div_id = $target_div_id;
        $this->html .= $html;
    }

    public function js( $js )
    {
        if ($this->js) {
            $this->js .= ';';
        }
        $this->js .= $js;
    }

    public function reload( $enable = true)
    {
        $this->must_reload = $enable;
    }

    public function redirect( $url )
    {
        $this->redirect = $url;
    }

    public function output()
    {
        if ($this->prepared_reponse_object)
        {
            die( json_encode( $this->prepared_reponse_object ) );
        }

        $response = new stdClass();

        $response->error = $this->error;
        $response->success = $this->success;
        $response->html = $this->html;
        $response->target_div_id = $this->target_div_id;
        $response->js = $this->js;
        $response->redirect = $this->redirect;
        $response->must_reload = $this->must_reload;

        $html = $this->api->load->model( 'logic/html' );
        $jsOnLoad = $html->getAjaxResponseJs();
        if ($jsOnLoad)
        {
            $response->js .= ";$jsOnLoad";
        }

        $response->html .= $html->getAjaxResponseHtml();

        die( json_encode( $response ) );
    }


    private $error = '';
    private $success = '';
    private $html = '';
    private $js = '';
    private $redirect = '';
    private $target_div_id = '';
    private $must_reload = false;
    private $prepared_reponse_object = false;

}