403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/GXEngine/Services/System/Http/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXEngine/Services/System/Http//HttpContextReader.inc.php
<?php
/* --------------------------------------------------------------
   HttpContextReader.inc.php 2017-02-06
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2017 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

MainFactory::load_class('HttpContextReaderInterface');

/**
 * Class HttpContextReader
 *
 * @category   System
 * @package    Http
 * @implements HttpContextReaderInterface
 */
class HttpContextReader implements HttpContextReaderInterface
{
    /**
     * Returns the controller name for current http request context.
     *
     * @param HttpContextInterface $httpContext Object which holds information about the current http context.
     *
     * @return string Name of controller for the current http context.
     */
    public function getControllerName(HttpContextInterface $httpContext)
    {
        $doValue      = (string)$httpContext->getGetItem('do');
        $doPartsArray = explode('/', $doValue);
        
        return $doPartsArray[0];
    }
    
    
    /**
     * Returns the name of the action method for the current http context.
     *
     * @param \HttpContextInterface $httpContext Object which holds information about the current http context.
     *
     * @return string Name of action method for the current http context.
     */
    public function getActionName(HttpContextInterface $httpContext)
    {
        $doValue      = (string)$httpContext->getGetItem('do');
        $doPartsArray = explode('/', $doValue);
        if (count($doPartsArray) < 2) {
            return '';
        }
        
        return $doPartsArray[1];
    }
    
    
    /**
     * Returns an array which represents the global $_GET variable of the current http context.
     *
     * @param HttpContextInterface $httpContext Object which holds information about the current http context.
     *
     * @return array Which holds information equal to the global $_GET variable in an object oriented layer.
     */
    public function getQueryParameters(HttpContextInterface $httpContext)
    {
        return $httpContext->getGetArray();
    }
    
    
    /**
     * Returns an array which represents the global $_POST variable of the current http context.
     *
     * @param HttpContextInterface $httpContext Object which holds information about the current http context.
     *
     * @return array Which holds information equal to the global $_POST variable in an object oriented layer.
     */
    public function getPostData(HttpContextInterface $httpContext)
    {
        return $httpContext->getPostArray();
    }
    
    
    /**
     * Returns an array which represents the global $_SERVER variable of the current http context.
     *
     * @param HttpContextInterface $httpContext Object which holds information about the current http context.
     *
     * @return array Array which hold information equal to the global $_SERVER variable in an object oriented layer.
     */
    public function getServerData(HttpContextInterface $httpContext)
    {
        return $httpContext->getServerArray();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit