HEX
Server: nginx/1.24.0
System: Linux iZm5eic9piryinoecjybjoZ 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: www (1000)
PHP: 8.2.28
Disabled: 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
Upload Files
File: /www/wwwroot/h3.iyingtaos.cn/wp-content/plugins/bulk-delete/include/users/class-bd-users-page.php
<?php
/**
 * Bulk Delete Users Page.
 * Shows the list of modules that allows you to delete users.
 *
 * @since   5.5
 *
 * @author  Sudar
 *
 * @package BulkDelete\Users
 */
defined( 'ABSPATH' ) || exit; // Exit if accessed directly

/**
 * Delete Users Page.
 *
 * @since 5.5
 */
class BD_Users_Page extends BD_Page  {
	/**
	 * Make this class a "hybrid Singleton".
	 *
	 * @static
	 *
	 * @since 5.5
	 */
	public static function factory() {
		static $instance = false;

		if ( ! $instance ) {
			$instance = new self;
		}

		return $instance;
	}

	/**
	 * Initialize and setup variables.
	 *
	 * @since 5.5
	 */
	protected function initialize() {
		$this->page_slug  = 'bulk-delete-users';
		$this->item_type  = 'users';
		$this->capability = 'delete_users';

		$this->label = array(
			'page_title' => __( 'Bulk Delete Users', 'bulk-delete' ),
			'menu_title' => __( 'Bulk Delete Users', 'bulk-delete' ),
		);

		$this->messages = array(
			'warning_message'      => __( 'WARNING: Users deleted once cannot be retrieved back. Use with caution.', 'bulk-delete' ),
		);

		add_filter( 'plugin_action_links', array( $this, 'add_plugin_action_links' ), 10, 2 );
	}

	/**
	 * Adds setting links in plugin listing page.
	 * Based on http://striderweb.com/nerdaphernalia/2008/06/wp-use-action-links/.
	 *
	 * @param array  $links List of current links
	 * @param string $file  Plugin filename
	 *
	 * @return array $links Modified list of links
	 */
	public function add_plugin_action_links( $links, $file ) {
		$this_plugin = plugin_basename( Bulk_Delete::$PLUGIN_FILE );

		if ( $file == $this_plugin ) {
			$delete_users_link = '<a href="admin.php?page=' . $this->page_slug . '">' . __( 'Bulk Delete Users', 'bulk-delete' ) . '</a>';
			array_unshift( $links, $delete_users_link ); // before other links
		}

		return $links;
	}

	/**
	 * Add Help tabs.
	 *
	 * @since 5.5
	 *
	 * @param mixed $help_tabs
	 */
	protected function add_help_tab( $help_tabs ) {
		$overview_tab = array(
			'title'    => __( 'Overview', 'bulk-delete' ),
			'id'       => 'overview_tab',
			'content'  => '<p>' . __( 'This screen contains different modules that allows you to delete users or schedule them for deletion.', 'bulk-delete' ) . '</p>',
			'callback' => false,
		);
		$help_tabs['overview_tab'] = $overview_tab;

		return $help_tabs;
	}
}

BD_Users_Page::factory();