403Webshell
Server IP : 213.136.93.164  /  Your IP : 216.73.216.20
Web Server : Apache
System : Linux m14200.contabo.net 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64
User : ki692510 ( 1047)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ki692510/public_html/wp-content/plugins/WPShapere/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ki692510/public_html/wp-content/plugins/WPShapere/includes/wps-notices.class.php
<?php
/*
 * WPSHAPERE
 * @author   AcmeeDesign
 * @url     http://acmeedesign.com
*/

defined('ABSPATH') || die;

if (!class_exists('WPS_ADMIN_NOTICES_CLASS')) {

    class WPS_ADMIN_NOTICES_CLASS extends WPSHAPERE
    {
        public $aof_options;

        function __construct()
        {
            $this->aof_options = parent::get_wps_option_data(WPSHAPERE_OPTIONS_SLUG);
            add_action('admin_print_scripts', array($this, 'wps_get_admin_notices'), 999);
        }

        function wps_get_admin_notices() {

          global $wp_filter;

          $current_user_role = parent::wps_get_user_role();
          $current_user_id = get_current_user_id();
          $show_admin_notices_for = $this->aof_options['show_admin_notices_for'];
          $wps_privilege_users = (!empty($this->aof_options['privilege_users'])) ? $this->aof_options['privilege_users'] : array();

          if(isset($show_admin_notices_for) && $show_admin_notices_for == 1)
            return;

          if(is_super_admin($current_user_id)) {
            if(isset($show_admin_notices_for) && $show_admin_notices_for == 4) {
              $this->wps_hide_admin_notices();
            }
            elseif(isset($show_admin_notices_for) && $show_admin_notices_for == 2) {
              return;
            }
            elseif(isset($show_admin_notices_for) && $show_admin_notices_for == 3 && !empty($wps_privilege_users) && !in_array($current_user_id, $wps_privilege_users)) {
              $this->wps_hide_admin_notices();
            }

          }
          else {
            $this->wps_hide_admin_notices();
          }

        }

        function wps_hide_admin_notices() {

          global $wp_filter;

          if ( is_user_admin() ) {
            if ( isset( $wp_filter['user_admin_notices'] ) ) {
                unset( $wp_filter['user_admin_notices'] );
            }
          } elseif ( isset( $wp_filter['admin_notices'] ) ) {
              unset( $wp_filter['admin_notices'] );
          }
          if ( isset( $wp_filter['all_admin_notices'] ) ) {
              unset( $wp_filter['all_admin_notices'] );
          }

        }

    }

}

new WPS_ADMIN_NOTICES_CLASS();

Youez - 2016 - github.com/yon3zu
LinuXploit