__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace WPForms\Pro\Admin\Entries;

/**
 * Class Handler.
 *
 * @since 1.8.3
 */
class Handler {

	/**
	 * Init.
	 *
	 * @since 1.8.3
	 */
	public function init() {

		// Check if the current page is the entries page.
		if ( ! wpforms_is_admin_page( 'entries' ) ) {
			return;
		}

		$this->maybe_redirect();
	}

	/**
	 * Maybe redirect to the entries list page.
	 *
	 * @since 1.8.3
	 */
	public function maybe_redirect() {

		// Redirect to the entries page if the current page is not valid.
		if ( ! $this->is_valid_entries_page() ) {
			wp_safe_redirect( admin_url( 'admin.php?page=wpforms-entries' ) );
			exit;
		}
	}

	/**
	 * Check if the current entries page is valid.
	 *
	 * @since 1.8.3
	 *
	 * @return bool
	 */
	protected function is_valid_entries_page() {

		$url_args = $this->get_entries_page_args();

		// Check if the page is the entries list page.
		if ( empty( $url_args ) || empty( $url_args['view'] ) ) {
			return true;
		}

		$available_views = [
			'list',
			'edit',
			'print',
			'details',
			'survey',
		];

		return in_array( sanitize_key( $url_args['view'] ), $available_views, true );
	}

	/**
	 * Get entries page arguments.
	 *
	 * @since 1.8.3
	 *
	 * @return array
	 */
	protected function get_entries_page_args() {

		$current_url = wpforms_current_url();
		$url_query   = wp_parse_url( $current_url, PHP_URL_QUERY );
		$url_args    = wp_parse_args( $url_query );

		// Remove the page argument. Empty page argument means that the current page is the entries list page.
		unset( $url_args['page'] );

		return $url_args;
	}
}

Filemanager

Name Type Size Permission Actions
Ajax Folder 0750
Export Folder 0750
Overview Folder 0750
Table Folder 0750
Edit.php File 50.88 KB 0640
FilterSearch.php File 4.93 KB 0640
Handler.php File 1.54 KB 0640
Helpers.php File 1.23 KB 0640
ListTable.php File 57.47 KB 0640
Page.php File 37.58 KB 0640
PageOptions.php File 1.86 KB 0640
PrintPreview.php File 14.27 KB 0640
Filemanager