403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
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 :  C:/inetpub/wwwroot/cdc/wp-content/plugins/recent-posts-widget-extended/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/cdc/wp-content/plugins/recent-posts-widget-extended/includes/helpers.php
<?php
/**
 * Function helper
 *
 * @package Recent Posts Extended
 */

/**
 * Display list of tags for widget.
 */
function rpwe_tags_list() {

	// Arguments.
	$args = array(
		'number' => 99,
	);

	// Allow dev to filter the arguments.
	$args = apply_filters( 'rpwe_tags_list_args', $args );

	// Get the tags.
	$tags = get_terms( 'post_tag', $args );

	return $tags;
}

/**
 * Display list of categories for widget.
 */
function rpwe_cats_list() {

	// Arguments.
	$args = array(
		'number' => 99,
	);

	// Allow dev to filter the arguments.
	$args = apply_filters( 'rpwe_cats_list_args', $args );

	// Get the cats.
	$cats = get_terms( 'category', $args );

	return $cats;
}

/**
 * Validate boolean value
 *
 * @param string $input User input.
 * @return bool
 */
function rpwe_string_to_boolean( $input ) {
	$allowed_strings = array( '0', '1', 'true', 'false' );
	if ( in_array( $input, $allowed_strings, true ) ) {
		return filter_var( $input, FILTER_VALIDATE_BOOLEAN );
	} else {
		return false;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit