⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
modules
/
Core
/
Helpers
/
View File Name :
FilterManager.php
<?php namespace Modules\Core\Helpers; class FilterManager extends BaseAction { protected $value = ''; /** * Filters a value. * * @param string $action Name of filter * @param array $args Arguments passed to the filter * * @return string Always returns the value */ public function fire($action, $args) { $this->value = isset($args[0]) ? $args[0] : ''; // get the value, the first argument is always the value if ($this->getListeners()) { $this->getListeners()->where('hook', $action)->each(function ($listener) use ($action, $args) { $parameters = []; $args[0] = $this->value; for ($i = 0; $i < $listener['arguments']; $i++) { $value = $args[$i] ?? null; $parameters[] = $value; } $this->value = call_user_func_array($this->getFunction($listener['callback']), $parameters); }); } return $this->value; } }