/**
* Get the IV size for the cipher.
*
* @return int
*/
protected function getIvSize()
{
return mcrypt_get_iv_size($this->cipher, $this->mode);
}
/**
* Get the IV size for the cipher.
*
* @return int
*/
protected function getIvSize()
{
return mcrypt_get_iv_size($this->cipher, $this->mode);
}
* Encrypt the given value.
*
* @param string $value
* @return string
*/
public function encrypt($value)
{
$iv = mcrypt_create_iv($this->getIvSize(), $this->getRandomizer());
$value = base64_encode($this->padAndMcrypt($value, $iv));
* @param \Symfony\Component\HttpFoundation\Response $response
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function encrypt(Response $response)
{
foreach ($response->headers->getCookies() as $key => $c)
{
$encrypted = $this->encrypter->encrypt($c->getValue());
$response->headers->setCookie($this->duplicate($c, $encrypted));
* @param \Symfony\Component\HttpFoundation\Request $request
* @param int $type
* @param bool $catch
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
}
{
$this->app = $app;
$this->middlewares = $middlewares;
}
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
return $this->app->handle($request, $type, $catch);
}
* @param \Symfony\Component\HttpFoundation\Request $request
* @return void
*/
public function run(SymfonyRequest $request = null)
{
$request = $request ?: $this['request'];
$response = with($stack = $this->getStackedClient())->handle($request);
$response->send();
| Once we have the application, we can simply call the run method, | which will execute the request and send the response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have whipped up for them. | */ $app->run();
| Key | Value |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TZ | Asia/Kolkata |
| REDIRECT_HANDLER | application/x-httpd-ea-php74 |
| REDIRECT_STATUS | 200 |
| UNIQUE_ID | aXC1HPaeqD2EjgFSR7M1igAAAUs |
| SCRIPT_URL | /index.php/login |
| SCRIPT_URI | http://portal.hamstechconnect.com/index.php/login |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_HOST | portal.hamstechconnect.com |
| HTTP_VIA | 1.1 squid-proxy-5b5d847c96-lfmq4 (squid/6.13) |
| HTTP_X_FORWARDED_FOR | 10.1.7.53 |
| HTTP_CACHE_CONTROL | max-age=259200 |
| HTTP_CONNECTION | keep-alive |
| SERVER_SIGNATURE | |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | portal.hamstechconnect.com |
| SERVER_ADDR | 172.105.43.192 |
| SERVER_PORT | 80 |
| REMOTE_ADDR | 216.73.216.185 |
| DOCUMENT_ROOT | /home/portalhams/public_html/ |
| REQUEST_SCHEME | http |
| CONTEXT_PREFIX | /cgi-sys |
| CONTEXT_DOCUMENT_ROOT | /usr/local/cpanel/cgi-sys/ |
| SERVER_ADMIN | webmaster@portal.hamstechconnect.com |
| SCRIPT_FILENAME | /home/portalhams/public_html/index.php |
| REMOTE_PORT | 27759 |
| REDIRECT_URL | /index.php/login |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /index.php/login |
| SCRIPT_NAME | /index.php |
| PATH_INFO | /login |
| PATH_TRANSLATED | /home/portalhams/public_html/login |
| ORIG_PATH_INFO | /index.php/login |
| ORIG_SCRIPT_NAME | /cgi-sys/ea-php74 |
| ORIG_SCRIPT_FILENAME | /usr/local/cpanel/cgi-sys/ea-php74 |
| ORIG_PATH_TRANSLATED | /home/portalhams/public_html/index.php/login |
| PHP_SELF | /index.php/login |
| REQUEST_TIME_FLOAT | 1768994076.5928 |
| REQUEST_TIME | 1768994076 |
| argv | Array ( ) |
| argc | 0 |