One Hat Cyber Team
Your IP :
172.69.6.84
Server IP :
188.114.97.7
Server :
Linux advantage-project 5.14.0-503.26.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 19 16:28:19 UTC 2025 x86_64
Server Software :
Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2
PHP Version :
8.3.17
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
phpMyAdmin
/
libraries
/
classes
/
Twig
/
Edit File:
MessageExtension.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Twig; use PhpMyAdmin\Message; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; class MessageExtension extends AbstractExtension { /** * Returns a list of filters to add to the existing list. * * @return TwigFilter[] */ public function getFilters() { return [ new TwigFilter( 'notice', static function (string $string) { return Message::notice($string)->getDisplay(); }, ['is_safe' => ['html']] ), new TwigFilter( 'error', static function (string $string) { return Message::error($string)->getDisplay(); }, ['is_safe' => ['html']] ), new TwigFilter( 'raw_success', static function (string $string) { return Message::rawSuccess($string)->getDisplay(); }, ['is_safe' => ['html']] ), ]; } }
Simpan