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/register-screen-options.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
$args = array(
	'display_function' => 'ninja_forms_screen_option_tabs',
	'save_function' => 'ninja_forms_save_screen_option_tabs',
	'page' => 'ninja-forms'
);
//ninja_forms_register_screen_option('tabs', $args);

function ninja_forms_screen_option_tabs(){
	global $ninja_forms_tabs, $ninja_forms_sidebars;
	$current_tab = ninja_forms_get_current_tab();
	$current_page = $_REQUEST['page'];
	$opt = nf_get_settings();
	if(isset($ninja_forms_tabs[$current_page]) AND is_array($ninja_forms_tabs[$current_page])){
		?>
		<div class="tabs-prefs">
			<h5>Show These Tabs</h5>
			<?php
			foreach($ninja_forms_tabs[$current_page] as $slug => $tab){
				if(!isset($opt['screen_options']['tab'][$slug]['visible']) OR $opt['screen_options']['tab'][$slug]['visible'] == 1){
					$checked = 'checked = "checked"';
				}else{
					$checked = '';
				}
			?>
			<input type="hidden" name="ninja-forms-tab[<?php echo $slug;?>]" value="0">
			<label for="ninja-forms-tab-<?php echo $slug;?>"><input class="hide-tab-tog" name="ninja-forms-tab[<?php echo $slug;?>]" type="checkbox" id="ninja-forms-tab-<?php echo $slug;?>" value="1" <?php echo $checked;?> ><?php echo $tab['name'];?></label>
			<?php
			}
			?>
			<br class="clear">
		</div>
		<?php if(isset($ninja_forms_sidebars[$current_page][$current_tab]) AND is_array($ninja_forms_sidebars[$current_page][$current_tab])){?>
			<div class="sidebar-prefs">
				<h5>Show These Sidebars</h5>
				<?php
				foreach($ninja_forms_sidebars[$current_page][$current_tab] as $slug => $sidebar){
					if(!isset($opt['screen_options']['tab'][$current_tab]['sidebars'][$slug]['visible']) OR $opt['screen_options']['tab'][$current_tab]['sidebars'][$slug]['visible'] == 1){
						$checked = 'checked = "checked"';
					}else{
						$checked = '';
					}
				?>
				<input type="hidden" name="ninja-forms-sidebar[<?php echo $slug;?>]" value="0">
				<label for="ninja-forms-sidebar-<?php echo $slug;?>"><input class="hide-sidebar-tog" name="ninja-forms-sidebar[<?php echo $slug;?>]" type="checkbox" id="ninja-forms-sidebar-<?php echo $slug;?>" value="1" <?php echo $checked;?> ><?php echo $sidebar['name'];?></label>
				<?php
				}
				?>
				<br class="clear">
			</div>
		<?php
		}
	}
}

function ninja_forms_save_screen_option_tabs(){
	$current_tab = ninja_forms_get_current_tab();
	$current_page = $_REQUEST['page'];
	$opt = nf_get_settings();
	if(is_array($_POST['ninja-forms-tab'])){
		foreach($_POST['ninja-forms-tab'] as $slug => $val){
			$opt['screen_options']['tab'][$slug]['visible'] = $val;
		}
	}
	if(is_array($_POST['ninja-forms-sidebar'])){
		foreach($_POST['ninja-forms-sidebar'] as $slug => $val){
			$opt['screen_options']['tab'][$current_tab]['sidebars'][$slug]['visible'] = $val;
		}
	}
	update_option('ninja_forms_settings', $opt);
}

Youez - 2016 - github.com/yon3zu
LinuXploit