403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/customizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/customizer/validators.php
<?php
/**
 * Validate multiple select field
 *
 * @package Graphene
 * @since 2.0
 */
function graphene_validate_multiple_select( $input ){
	if ( ! is_array( $input ) ) $input = array();
	foreach ( $input as $key => $value ) {
		$input[$key] = sanitize_text_field( $value );
	}
	
	return $input;
}


/**
 * Validate multiple checkboxes
 * 
 * @package Graphene
 * @since 2.0
 */
function graphene_validate_multiple_checkboxes( $input ){
	$multi_values = ! is_array( $input ) ? explode( ',', $input ) : $input;
    return ! empty( $multi_values ) ? array_map( 'sanitize_text_field', $multi_values ) : array();
}


/**
 * Validate JSON values and convert to array
 * 
 * @package Graphene
 * @since 2.0
 */
function graphene_validate_json( $input ){
	$input = ( ! is_array( $input ) ) ? json_decode( $input, true ) : $input;
    return $input;
}


/**
 * Validate custom css
 * 
 * @package Graphene
 * @since 2.0
 */
function graphene_validate_css( $input ){
	$input = wp_filter_nohtml_kses( wp_strip_all_tags( $input ) );
	return $input;
}


/**
 * Validate floating numbers
 * 
 * @package Graphene
 * @since 2.0
 */
function graphene_validate_numeric( $input ){
	if ( ! is_numeric( $input ) ) $input = '';
	return $input;
}

Youez - 2016 - github.com/yon3zu
LinuXploit