GRAYBYTE WORDPRESS FILE MANAGER4209

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/userswp/admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/userswp/admin//class-uwp-admin-menus.php
<?php
/**
 * Setup menus in WP admin.
 *
 * @author   GeoDirectory Team <info@wpgeodirectory.com>
 * @category Admin
 * @package  userswp/Admin
 * @version  1.0.24
 */

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


/**
 * UsersWP_Admin_Menus Class.
 */
class UsersWP_Admin_Menus {

    /**
     * Hook in tabs.
     */
    public function __construct() {
        // Add menus
        add_action( 'admin_menu', array( $this, 'admin_menu' ), 9 );
        add_action( 'admin_menu', array( $this, 'user_types_menu' ), 10 );
	    add_action( 'admin_menu', array( $this, 'tools_menu' ), 80 );
        add_action( 'admin_menu', array( $this, 'status_menu' ), 90 );
        add_action( 'admin_menu', array( $this, 'addons_menu' ), 99 );
    }

    /**
     * Add menu items.
     */
    public function admin_menu() {

        $install_type = uwp_get_installation_type();

        // Proceed if main site or pages on all sites or specific blog id
        $proceed = false;
        $show_builder = false;
        switch ( $install_type ) {
            case 'single':
	        case 'multi_na_all':
	        case 'multi_not_na':
                $proceed = true;
                $show_builder = true;
                break;
            case 'multi_na_site_id':
	            $blog_id = null;
	            if ( defined( 'UWP_ROOT_PAGES' ) ) {
		            $blog_id = UWP_ROOT_PAGES;
	            }

	            $current_blog_id = get_current_blog_id();
	            if ( ! empty( $blog_id ) && is_int( (int)$blog_id ) && $blog_id == $current_blog_id ) {
		            $proceed = true;
		            $show_builder = true;
	            }
                break;
            case 'multi_na_default':
                $is_main_site = is_main_site();
                if ( $is_main_site ) {
                    $proceed = true;
                    $show_builder = true;
                }
                break;
            default:
                $proceed = false;

        }

        if ( ! $proceed ) {
            return;
        }

        add_menu_page(
            __( 'UsersWP Settings', 'userswp' ),
            __( 'UsersWP', 'userswp' ),
            'manage_options',
            'userswp',
            array( 'UsersWP_Admin_Settings', 'output' ),
            'dashicons-groups',
            70
        );

        if ( $show_builder ) {
            add_submenu_page(
                'userswp',
                __( 'Form Builder', 'userswp' ),
                __( 'Form Builder', 'userswp' ),
                'manage_options',
                'uwp_form_builder',
                array( 'UsersWP_Form_Builder', 'output' )
            );
        }
    }

    /**
     * Add menu item.
     */
    public function tools_menu() {
        add_submenu_page(
            'userswp',
            __( 'UsersWP Tools', 'userswp' ),
            __( 'Tools', 'userswp' ),
            'manage_options',
            'uwp_tools',
            array( $this, 'tools_page' )
        );
    }

    /**
     * Add menu item.
     */
    public function user_types_menu() {
        add_submenu_page(
            'userswp',
            __( 'User Types', 'userswp' ),
            __( 'User Types', 'userswp' ),
            'manage_options',
            'uwp_user_types',
            array( $this, 'user_types_page' )
        );
    }

    /**
     * Add menu item.
     */
    public function status_menu() {
        add_submenu_page(
            'userswp',
            __( 'Status', 'userswp' ),
            __( 'Status', 'userswp' ),
            'manage_options',
            'uwp_status',
            array( $this, 'status_page' )
        );
    }

    /**
     * Add menu item.
     */
    public function addons_menu() {
        if ( ! apply_filters( 'uwp_show_addons_page', true ) ) {
            return;
        }

        add_submenu_page(
            'userswp',
            __( 'UsersWP Extensions', 'userswp' ),
            __( 'Extensions', 'userswp' ),
            'manage_options',
            'uwp-addons',
            array( $this, 'addons_page' )
        );
    }

	/**
	 * Init the status page.
	 */
	public function tools_page() {
		UsersWP_Tools::output();
	}

    /**
	 * Init the user types page.
	 */
	public function user_types_page() {
		UsersWP_User_Types::output();
	}

    /**
     * Init the status page.
     */
    public function status_page() {
        UsersWP_Status::output();
    }

    /**
     * Init the status page.
     */
    public function addons_page() {
        $addon_obj = new UsersWP_Admin_Addons();
        $addon_obj->output();
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
assets
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
menus
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
settings
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
tables
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
views
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
inteuuod / inteuuod
0644
class-admin-setup-wizard.php
29.217 KB
June 12 2025 19:00:56
inteuuod / inteuuod
0644
class-admin.php
50.171 KB
June 26 2025 19:42:46
inteuuod / inteuuod
0644
class-uwp-admin-help.php
5.917 KB
June 12 2025 19:00:56
inteuuod / inteuuod
0644
class-uwp-admin-menus.php
4.445 KB
December 12 2024 21:47:10
inteuuod / inteuuod
0644
index.php
0.025 KB
July 27 2017 16:44:24
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF