Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.217.137
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : 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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/ninja-forms/deprecated/includes/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/ninja-forms/deprecated/includes/admin/display-screen-options.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

function ninja_forms_load_screen_options_tab() {
	global $ninja_forms_help_screen_tabs, $ninja_forms_screen_options;
	$current_tab = ninja_forms_get_current_tab();
	$current_page = esc_html( $_REQUEST['page'] );
    $screen = get_current_screen();

	if(isset($ninja_forms_help_screen_tabs['_universal_'])){
		foreach($ninja_forms_help_screen_tabs['_universal_'] as $key => $tab){
			$screen->add_help_tab( array(
				'id'      => $key, // This should be unique for the screen.
				'title'   => $tab['title'],
				'callback' => $tab['content'],
				// Use 'callback' instead of 'content' for a function callback that renders the tab content.
			) );
		}
	}

	if(isset($ninja_forms_help_screen_tabs[$current_page]['_universal_'])){
		foreach($ninja_forms_help_screen_tabs[$current_page]['_universal_'] as $key => $tab){
			$screen->add_help_tab( array(
				'id'      => $key, // This should be unique for the screen.
				'title'   => $tab['title'],
				'callback' => $tab['content'],
				// Use 'callback' instead of 'content' for a function callback that renders the tab content.
			) );
		}
	}

	if(isset($ninja_forms_help_screen_tabs[$current_page][$current_tab])){
		foreach($ninja_forms_help_screen_tabs[$current_page][$current_tab] as $key => $tab){
			$screen->add_help_tab( array(
				'id'      => $key, // This should be unique for the screen.
				'title'   => $tab['title'],
				'callback' => $tab['content'],
				// Use 'callback' instead of 'content' for a function callback that renders the tab content.
			) );
		}
	}

	if(isset($ninja_forms_screen_options['_universal_']) OR isset($ninja_forms_screen_options[$current_page]['_universal_']) OR isset($ninja_forms_screen_options[$current_page][$current_tab]) ){
		add_filter('screen_layout_columns', 'ninja_forms_display_screen_options');
		$screen->add_option('ninja_forms', '');
	}
}

function ninja_forms_display_screen_options($content){
	global $ninja_forms_help_screen_tabs, $ninja_forms_screen_options;
	$current_page = esc_html( $_REQUEST['page'] );
	$current_tab = ninja_forms_get_current_tab();
	ninja_forms_update_screen_options();

	if(isset($ninja_forms_screen_options['_universal_']) OR isset($ninja_forms_screen_options[$current_page]['_universal_']) OR isset($ninja_forms_screen_options[$current_page][$current_tab])){

		if(isset($ninja_forms_screen_options['_universal_'])){
			foreach($ninja_forms_screen_options['_universal_'] as $option){
				$display_function = $option['display_function'];
				$arguments = func_get_args();
				array_shift($arguments); // We need to remove the first arg ($function_name)
				call_user_func_array($display_function, $arguments);
			}
		}

		if(isset($ninja_forms_screen_options[$current_page]['_universal_'])){
			foreach($ninja_forms_screen_options[$current_page]['_universal_'] as $option){
				$display_function = $option['display_function'];
				$arguments = func_get_args();
				array_shift($arguments); // We need to remove the first arg ($function_name)
				call_user_func_array($display_function, $arguments);
			}
		}

		if(isset($ninja_forms_screen_options[$current_page][$current_tab])){
			foreach($ninja_forms_screen_options[$current_page][$current_tab] as $option){
				$display_function = $option['display_function'];
				$arguments = func_get_args();
				array_shift($arguments); // We need to remove the first arg ($function_name)
				call_user_func_array($display_function, $arguments);
			}
		}

		?>
		<br class="clear">
		<input type="hidden" name="ninja_forms_save_screen_options" value="1">
		<?php wp_nonce_field('ninja_forms_update_options'); ?>
		<input name="Submit" type="submit" class="button-primary" value="<?php _e( 'Save Options', 'ninja-forms' ); ?>">
		<?php
	}
}

function ninja_forms_update_screen_options(){
	global $ninja_forms_screen_options;
	$current_tab = ninja_forms_get_current_tab();
	if(isset($_POST['_wpnonce'])){
		$nonce = $_POST['_wpnonce'];
	}else{
		$nonce = '';
	}
	if(!empty($_POST) AND $_POST['ninja_forms_save_screen_options'] == 1 AND wp_verify_nonce($nonce, 'ninja_forms_update_options') AND check_admin_referer( 'ninja_forms_update_options', '_wpnonce' )){
		if(!empty($ninja_forms_screen_options) AND is_array($ninja_forms_screen_options)){
			//print_r($ninja_forms_screen_options);
			if(isset($ninja_forms_screen_options['_universal_']) AND is_array($ninja_forms_screen_options['_universal_'])){
				foreach($ninja_forms_screen_options['_universal_'] as $slug => $option){
					$save_function = $option['save_function'];
					$arguments = func_get_args();
					array_shift($arguments); // We need to remove the first arg ($function_name)
					call_user_func_array($save_function, $arguments);
				}
			}
			if(isset($ninja_forms_screen_options[$current_tab]) AND is_array($ninja_forms_screen_options[$current_tab])){
				foreach($ninja_forms_screen_options[$current_tab] as $slug => $option){
					$save_function = $option['save_function'];
					$arguments = func_get_args();
					array_shift($arguments); // We need to remove the first arg ($function_name)
					call_user_func_array($save_function, $arguments);
				}
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit