| Server IP : 69.164.203.165 / Your IP : 216.73.216.219 Web Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/matlock/phpmyadmin/libraries/classes/Twig/ |
Upload File : |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* hold PhpMyAdmin\Twig\PhpFunctionsExtension class
*
* @package PhpMyAdmin\Twig
*/
namespace PhpMyAdmin\Twig;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
/**
* Class PhpFunctionsExtension
*
* @package PhpMyAdmin\Twig
*/
class PhpFunctionsExtension extends AbstractExtension
{
/**
* Returns a list of functions to add to the existing list.
*
* @return TwigFunction[]
*/
public function getFunctions()
{
return array(
new TwigFunction('array_search', 'array_search'),
new TwigFunction('bin2hex', 'bin2hex'),
new TwigFunction('htmlentities', 'htmlentities'),
new TwigFunction('md5', 'md5'),
new TwigFunction('preg_quote', 'preg_quote'),
new TwigFunction('preg_replace', 'preg_replace'),
new TwigFunction('strpos', 'strpos'),
new TwigFunction('strstr', 'strstr'),
new TwigFunction('strtotime', 'strtotime'),
);
}
}