$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.216.209
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/devvn-image-hotspot/admin/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/devvn-image-hotspot/admin/inc/settings.php
<?php
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );

add_action( 'admin_init', 'devvn_ihp_register_mysettings' );
function devvn_ihp_register_mysettings() {
    register_setting( 'ihp-options-group','ihp_options', array(
        'sanitize_callback' => 'devvn_ihp_sanitize_options'
    ) );
}

function devvn_ihp_sanitize_options( $input ) {
    $sanitized = array();
    
    if ( isset( $input['popup_type'] ) ) {
        $popup_type = absint( $input['popup_type'] );
        if ( in_array( $popup_type, array( 1, 2 ), true ) ) {
            $sanitized['popup_type'] = $popup_type;
        } else {
            $sanitized['popup_type'] = 1;
        }
    } else {
        $sanitized['popup_type'] = 1;
    }
    
    return $sanitized;
}

add_action( 'admin_menu', 'devvn_ihp_admin_menu' );
function devvn_ihp_admin_menu() {
    add_submenu_page(
        'edit.php?post_type=points_image',
        __( 'Image Hotspot settings', 'devvn-image-hotspot' ),
        __( 'Settings', 'devvn-image-hotspot' ),
        'manage_options',
        'devvn-image-hotspot',
        'devvn_ihp_callback'
    );
}

function devvn_ihp_callback(){
    $popup_type = devvn_get_ihp_options('popup_type');
    ?>
    <div class="wrap">
        <h1><?php esc_html_e('Image Hotspot settings', 'devvn-image-hotspot');?></h1>
        <form method="post" action="options.php" novalidate="novalidate">
            <?php settings_fields( 'ihp-options-group' );?>
            <table class="form-table">
                <tbody>
                <tr>
                    <th scope="row"><label><?php esc_html_e('Popup type on mobile', 'devvn-image-hotspot')?></label></th>
                    <td>
                        <div class="tet_style_radio tet_style_radio_banner">
                            <label style="margin-right: 10px;">
                                <input type="radio" name="ihp_options[popup_type]" value="2" <?php checked('2', $popup_type);?>> <?php esc_html_e('Full Screen', 'devvn-image-hotspot');?>
                            </label>
                            <label>
                                <input type="radio" name="ihp_options[popup_type]" value="1" <?php checked('1', $popup_type);?>> <?php esc_html_e('Normal - Tooltip', 'devvn-image-hotspot');?>
                            </label>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
            <?php do_settings_sections('ihp-options-group'); ?>

            <?php submit_button();?>
        </form>
        <p><strong>Buy me a Coffee to keep me awake :)</strong></p>
        <?php echo devvn_ihotspot_donate_shortcode_callback();//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped	?>
    </div>
<?php
}

function devvn_ihp_action_links( $links, $file ) {
    if ( strpos( $file, 'devvn-image-hotspot.php' ) !== false ) {
        $settings_link = '<a href="' . admin_url( 'edit.php?post_type=points_image&page=devvn-image-hotspot' ) . '" title="'.__('Settings', 'devvn-image-hotspot').'">' . __( 'Settings', 'devvn-image-hotspot' ) . '</a>';
        array_unshift( $links, $settings_link );
    }
    return $links;
}
add_filter( 'plugin_action_links_' . DEVVN_IHOTSPOT_BASENAME, 'devvn_ihp_action_links', 10, 2 );

function devvn_get_ihp_options($name = ''){
    $options = wp_parse_args(get_option('ihp_options'),array(
        'popup_type' => 1,
    ));
    if($name){
        return (isset($options[$name]) && $options[$name]) ? $options[$name] : '';
    }
    return $options;
}

add_filter( 'body_class', 'devvn_ihotspot_body_class' );
function devvn_ihotspot_body_class( $classes ) {
    $popup_type = devvn_get_ihp_options('popup_type');
    if ( $popup_type == 2 ) {
        $classes[] = 'ihp_popup_full';
    }
    return $classes;
}

Youez - 2016 - github.com/yon3zu
LinuXploit