} protected function invalidPayload($data) { return !is_array($data) || !isset($data['iv']) || !isset($data['value']) || !isset($data['mac']); } protected function getIvSize() { return mcrypt_get_iv_size($this->cipher, $this->mode); } protected function getRandomizer()
} protected function invalidPayload($data) { return !is_array($data) || !isset($data['iv']) || !isset($data['value']) || !isset($data['mac']); } protected function getIvSize() { return mcrypt_get_iv_size($this->cipher, $this->mode); } protected function getRandomizer()
protected $block = 16; public function __construct($key) { $this->key = (string) $key; } public function encrypt($value) { $iv = mcrypt_create_iv($this->getIvSize(), $this->getRandomizer()); $value = base64_encode($this->padAndMcrypt($value, $iv)); $mac = $this->hash($iv = base64_encode($iv), $value);
$decrypted[$key] = $this->encrypter->decrypt($value); } return $decrypted; } 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)); }
public function __construct(HttpKernelInterface $app, Encrypter $encrypter) { $this->app = $app; $this->encrypter = $encrypter; } public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch)); } protected function decrypt(Request $request)
public function __construct(HttpKernelInterface $app, array $middlewares) { $this->app = $app; $this->middlewares = $middlewares; } public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { return $this->app->handle($request, $type, $catch); } public function terminate(Request $request, Response $response)
if ($this->isBooted()) { $this->fireAppCallbacks(array($callback)); } } public function run(SymfonyRequest $request = null) { $request = $request ?: $this['request']; $response = with($stack = $this->getStackedClient())->handle($request); $response->send(); $stack->terminate($request, $response);
| 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 |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://epns.nottingham.ac.uk/reset-password |
HTTP_HOST | admin.epns.nottingham.ac.uk |
HTTP_X_FORWARDED_PORT | 80 |
HTTP_X_FORWARDED_FOR | 34.227.191.136 |
HTTP_CONNECTION | close |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
SERVER_SIGNATURE | <address>Apache/2.4.38 (Debian) Server at admin.epns.nottingham.ac.uk Port 80</address> |
SERVER_SOFTWARE | Apache/2.4.38 (Debian) |
SERVER_NAME | admin.epns.nottingham.ac.uk |
SERVER_ADDR | 10.42.35.193 |
SERVER_PORT | 80 |
REMOTE_ADDR | 10.42.118.185 |
DOCUMENT_ROOT | /app/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /app/public |
SERVER_ADMIN | [no address given] |
SCRIPT_FILENAME | /app/public/index.php |
REMOTE_PORT | 55144 |
REDIRECT_URL | /password/remind |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /password/remind |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711622384.333 |
REQUEST_TIME | 1711622384 |
argv | Array ( ) |
argc | 0 |
Key | Value |
MONGO_USERNAME | deep |
MAIL_PORT | 25 |
MAIL_DRIVER | smtp |
SSO_HOME | https://epns.nottingham.ac.uk |
MONGO_PASSWORD | V3ryS3cr3t |
HOSTNAME | deep-admin-1 |
PHP_VERSION | 7.4.1 |
APACHE_CONFDIR | /etc/apache2 |
PHP_INI_DIR | /usr/local/etc/php |
GPG_KEYS | 42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312 |
PHP_LDFLAGS | -Wl,-O1 -Wl,--hash-style=both -pie |
SOLR_HOST | solr |
ANALYTICS_CLIENT_ID | 778131392351-embva6gfbdm6cvr3to2vvcdkua9u91tm.apps.googleusercontent.com |
PWD | /run/s6/services/apache2 |
CACHE_DRIVER | file |
SOLR_PORT | 8983 |
APACHE_LOG_DIR | /var/log/apache2 |
LANG | C |
APP_KEY | NjKOBfMs6XV5NF3IMB1Yps6XoXPu8NPs |
APP_ENV | production |
APP_DEBUG | false |
APP_URL | https://admin.epns.nottingham.ac.uk |
PHP_SHA256 | 561bb866bdd509094be00f4ece7c3543ec971c4d878645ee81437e291cffc762 |
MONGO_HOST | mongodb-primary |
APACHE_PID_FILE | /var/run/apache2/apache2.pid |
PHPIZE_DEPS | autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
SOLR_CORE | deep |
PHP_URL | https://www.php.net/get/php-7.4.1.tar.xz/from/this/mirror |
APACHE_RUN_GROUP | www-data |
MONGO_PORT | 27017 |
APACHE_LOCK_DIR | /var/lock/apache2 |
PHP_EXTRA_CONFIGURE_ARGS | --with-apxs2 --disable-cgi |
SHLVL | 0 |
PHP_CFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
SOLR_PATH | /solr |
APACHE_RUN_DIR | /var/run/apache2 |
ANALYTICS_CERT_PATH | /google_analytics/DeepGoogleAnalytics-05ba1f427ef4.p12 |
APACHE_ENVVARS | /etc/apache2/envvars |
SESSION_DRIVER | file |
SSO_LOCATION | https://epns.nottingham.ac.uk/member |
MONGO_DB | deep |
APACHE_RUN_USER | www-data |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
PHP_EXTRA_BUILD_DEPS | apache2-dev |
MAIL_HOST | smtp.nottingham.ac.uk |
ANALYTICS_SERVICE_EMAIL | 778131392351-embva6gfbdm6cvr3to2vvcdkua9u91tm@developer.gserviceaccount.com |
S6_OVERLAY_VERSION | 1.11.0.1 |
PHP_ASC_URL | https://www.php.net/get/php-7.4.1.tar.xz.asc/from/this/mirror |
PHP_CPPFLAGS | -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |