Current Path: > home > codekrsu > > > ameliagraphics.com > wp-content > plugins > wp-user-frontend > includes
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Admin | Directory | - | - | |
Ajax | Directory | - | - | |
Api | Directory | - | - | |
Data | Directory | - | - | |
Fields | Directory | - | - | |
Free | Directory | - | - | |
Frontend | Directory | - | - | |
Hooks | Directory | - | - | |
Integrations | Directory | - | - | |
Log | Directory | - | - | |
Traits | Directory | - | - | |
Widgets | Directory | - | - | |
functions | Directory | - | - | |
upgrades | Directory | - | - | |
API.php | File | 752 bytes | May 12 2025 14:47:56. | |
Admin.php | File | 8331 bytes | May 12 2025 14:47:56. | |
Ajax.php | File | 5162 bytes | March 20 2025 14:31:02. | |
Assets.php | File | 15809 bytes | May 12 2025 14:47:56. | |
Encryption_Helper.php | File | 2280 bytes | February 13 2024 11:27:44. | |
Frontend.php | File | 9999 bytes | October 15 2024 07:05:02. | |
Frontend_Render_Form.php | File | 16496 bytes | June 30 2025 16:27:10. | |
Installer.php | File | 3159 bytes | January 02 2024 16:35:50. | |
Integrations.php | File | 1488 bytes | October 15 2024 07:05:02. | |
Pro_Upgrades.php | File | 2510 bytes | June 30 2025 16:27:10. | |
Render_Form.php | File | 69939 bytes | June 30 2025 16:27:10. | |
Setup_Wizard.php | File | 20226 bytes | March 20 2025 14:31:02. | |
User_Subscription.php | File | 19761 bytes | June 02 2025 07:42:20. | |
WPUF_Privacy.php | File | 24813 bytes | March 19 2025 14:25:12. | |
WPUF_User.php | File | 4200 bytes | March 19 2025 14:25:12. | |
class-field-manager.php | File | 11935 bytes | February 13 2024 11:27:44. | |
class-frontend-render-form.php | File | 38527 bytes | June 30 2025 16:27:10. |
<?php namespace WeDevs\Wpuf; use WeDevs\WpUtils\ContainerTrait; /** * The Admin class which will hold all the starting point of WordPress dashboard admin operations for WPUF * We will initialize all the admin classes from here. * * @since 4.0.0 */ class Admin { use ContainerTrait; public function __construct() { $this->container['admin_welcome'] = new Admin\Admin_Welcome(); $this->container['menu'] = new Admin\Menu(); $this->container['dashboard_metabox'] = new Admin\Dashboard_Metabox(); $this->container['form_template'] = new Admin\Forms\Post\Templates\Form_Template(); $this->container['admin_form'] = new Admin\Forms\Admin_Form(); $this->container['admin_form_handler'] = new Admin\Forms\Admin_Form_Handler(); $this->container['admin_subscription'] = new Admin\Admin_Subscription(); $this->container['admin_installer'] = new Admin\Admin_Installer(); $this->container['settings'] = new Admin\Admin_Settings(); $this->container['forms'] = new Admin\Forms\Form_Manager(); $this->container['gutenberg_block'] = new Frontend\Form_Gutenberg_Block(); $this->container['plugin_upgrade_notice'] = new Admin\Plugin_Upgrade_Notice(); $this->container['posting'] = new Admin\Posting(); $this->container['shortcodes_button'] = new Admin\Shortcodes_Button(); $this->container['tools'] = new Admin\Admin_Tools(); // only free users will see the promotion if ( ! class_exists( 'WP_User_Frontend_Pro' ) ) { $this->container['promotion'] = new Admin\Promotion(); } // dynamic hook. format: "admin_action_{$action}". more details: wp-admin/admin.php add_action( 'admin_action_post_form_template', [ $this, 'create_post_form_from_template' ] ); // enqueue common scripts that will load throughout WordPress dashboard. notice, what's new etc. add_action( 'init', [ $this, 'enqueue_common_scripts' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_cpt_page_scripts' ] ); // block admin access as per wpuf settings add_action( 'admin_init', [ $this, 'block_admin_access' ] ); } /** * Create post form templates depending on the action * * @since 4.0.0 * * @return void */ public function create_post_form_from_template() { $this->container['form_template']->create_post_form_from_template(); } /** * Enqueue the common CSS and JS needed for WordPress admin area * * @since 4.0.0 * * @return void */ public function enqueue_common_scripts() { if ( ! is_admin() ) { return; } wp_enqueue_style( 'wpuf-whats-new' ); wp_enqueue_style( 'wpuf-admin' ); wp_enqueue_style( 'wpuf-sweetalert2' ); wp_enqueue_script( 'wpuf-sweetalert2' ); wp_enqueue_script( 'wpuf-admin' ); $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; $selected_page = [ 'wpuf-post-forms', 'wpuf-profile-forms', 'wpuf_subscription', 'wpuf_transaction', 'wpuf_tools' ]; if ( in_array( $page, $selected_page ) ) { wpuf_load_headway_badge(); } wp_localize_script( 'wpuf-admin', 'wpuf_admin_script', [ 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'wpuf_nonce' ), 'cleared_schedule_lock' => __( 'Post lock has been cleared', 'wp-user-frontend' ), 'asset_url' => WPUF_ASSET_URI, 'admin_url' => admin_url(), 'support_url' => esc_url( 'https://wedevs.com/contact/?utm_source=wpuf-subscription' ), 'version' => WPUF_VERSION, 'pro_version' => defined( 'WPUF_PRO_VERSION' ) ? WPUF_PRO_VERSION : '', 'isProActive' => class_exists( 'WP_User_Frontend_Pro' ), 'protected_shortcodes' => wpuf_get_protected_shortcodes(), 'protected_shortcodes_message' => sprintf( // translators: %1$s is the opening div tag, %2$s is the shortcode [wpuf-registration], %3$s is the opening strong tag, %4$s is the closing strong tag, %5$s is the closing div tag __( '%1$sThis post contains a sensitive short-code %2$s, that may allow others to sign-up with distinguished roles. If unsure, remove the short-code before publishing (recommended) %3$sas this may be exploited as a security vulnerability.%4$s', 'wp-user-frontend' ), '<div style="font-size: 1em; text-align: justify; color: darkgray">', '[wpuf-registration]', '<strong>', '</strong>', '</div>' ), 'upgradeUrl' => esc_url( 'https://wedevs.com/wp-user-frontend-pro/pricing/' ), ] ); } public function enqueue_cpt_page_scripts( $hook_suffix ) { $cpt = [ 'wpuf_subscription', 'post', 'page' ]; if ( in_array( $hook_suffix, [ 'post.php', 'post-new.php' ], true ) ) { wp_enqueue_script( 'wpuf-subscriptions' ); $screen = get_current_screen(); if ( is_object( $screen ) && in_array( $screen->post_type, $cpt, true ) ) { wp_enqueue_script( 'wpuf-subscriptions' ); } } if ( in_array( $hook_suffix, [ 'post.php', 'post-new.php' ], true ) ) { wp_enqueue_script( 'wpuf-upload' ); wp_localize_script( 'wpuf-upload', 'wpuf_upload', [ 'confirmMsg' => __( 'Are you sure?', 'wp-user-frontend' ), 'delete_it' => __( 'Yes, delete it', 'wp-user-frontend' ), 'cancel_it' => __( 'No, cancel it', 'wp-user-frontend' ), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'wpuf_nonce' ), 'plupload' => [ 'url' => admin_url( 'admin-ajax.php' ) . '?nonce=' . wp_create_nonce( 'wpuf-upload-nonce' ), 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ), 'filters' => [ [ 'title' => __( 'Allowed Files', 'wp-user-frontend' ), 'extensions' => '*', ], ], 'multipart' => true, 'urlstream_upload' => true, 'warning' => __( 'Maximum number of files reached!', 'wp-user-frontend' ), 'size_error' => __( 'The file you have uploaded exceeds the file size limit. Please try again.', 'wp-user-frontend' ), 'type_error' => __( 'You have uploaded an incorrect file type. Please try again.', 'wp-user-frontend' ), ], ] ); } } /** * Block user access to admin panel for specific roles * * @global string $pagenow */ public function block_admin_access() { global $pagenow; // bail out if we are from WP Cli if ( defined( 'WP_CLI' ) ) { return; } $access_level = wpuf_get_option( 'admin_access', 'wpuf_general', 'read' ); $valid_pages = [ 'admin-ajax.php', 'admin-post.php', 'async-upload.php', 'media-upload.php' ]; if ( ! current_user_can( $access_level ) && ! in_array( $pagenow, $valid_pages ) ) { // wp_die( __( 'Access Denied. Your site administrator has blocked your access to the WordPress back-office.', 'wpuf' ) ); wp_redirect( home_url() ); exit; } } }
SILENT KILLER Tool