Server IP : 49.212.180.16 / Your IP : 18.225.235.215 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/utannto/www/hironaka.biz/wp-content/plugins/wp-file-manager/lib/php/editors/ |
Upload File : |
<?php /** * Abstract class of editor plugins. * * @author Naoki Sawada */ class elFinderEditor { /** * Array of allowed method by request from client side. * * @var array */ protected $allowed = array(); /** * elFinder instance * * @var object elFinder instance */ protected $elfinder; /** * Arguments * * @var array argValues */ protected $args; /** * Constructor. * * @param object $elfinder * @param array $args */ public function __construct($elfinder, $args) { $this->elfinder = $elfinder; $this->args = $args; } /** * Return boolean that this plugin is enabled. * * @return bool */ public function enabled() { return true; } /** * Return boolean that $name method is allowed. * * @param string $name * * @return bool */ public function isAllowedMethod($name) { $checker = array_flip($this->allowed); return isset($checker[$name]); } /** * Return $this->args value of the key * * @param string $key target key * @param string $empty empty value * * @return mixed */ public function argValue($key, $empty = '') { return isset($this->args[$key]) ? $this->args[$key] : $empty; } }