Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace PHPDaemon\Applications\GibsonREST; /** * @package GibsonREST * @subp..
Decoded Output download
<?php
namespace PHPDaemon\Applications\GibsonREST;
/**
* @package GibsonREST
* @subpackage Base
*
* @author Vasily Zorin <[email protected]>
*/
class App extends \PHPDaemon\Core\AppInstance
{
public $gibson;
/**
* Constructor.
* @return void
*/
public function init()
{
$this->gibson = \PHPDaemon\Clients\Gibson\Pool::getInstance($this->config->gibsonname->value);
}
/**
* Creates Request.
* @param object Request.
* @param object Upstream application instance.
* @return Request Request.
*/
public function beginRequest($req, $upstream)
{
return new Request($this, $upstream, $req);
}
/**
* Setting default config options
* Overriden from AppInstance::getConfigDefaults
* Uncomment and return array with your default options
* @return array|false
*/
protected function getConfigDefaults()
{
return [
'gibson-name' => '',
'auth' => 0,
'username' => 'admin',
'password' => 'gibson',
'credver' => 1,
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace PHPDaemon\Applications\GibsonREST;
/**
* @package GibsonREST
* @subpackage Base
*
* @author Vasily Zorin <[email protected]>
*/
class App extends \PHPDaemon\Core\AppInstance
{
public $gibson;
/**
* Constructor.
* @return void
*/
public function init()
{
$this->gibson = \PHPDaemon\Clients\Gibson\Pool::getInstance($this->config->gibsonname->value);
}
/**
* Creates Request.
* @param object Request.
* @param object Upstream application instance.
* @return Request Request.
*/
public function beginRequest($req, $upstream)
{
return new Request($this, $upstream, $req);
}
/**
* Setting default config options
* Overriden from AppInstance::getConfigDefaults
* Uncomment and return array with your default options
* @return array|false
*/
protected function getConfigDefaults()
{
return [
'gibson-name' => '',
'auth' => 0,
'username' => 'admin',
'password' => 'gibson',
'credver' => 1,
];
}
}
Function Calls
None |
Stats
MD5 | 0aa8bf8f84ec2aa140c8693dff84b366 |
Eval Count | 0 |
Decode Time | 97 ms |