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 :  C:/inetpub/wwwroot/cdc/wp-content/plugins/siteorigin-panels/widgets/widgets/list/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/cdc/wp-content/plugins/siteorigin-panels/widgets/widgets/list//list.php
<?php

class SiteOrigin_Panels_Widget_List extends SiteOrigin_Panels_Widget {
	public function __construct() {
		parent::__construct(
			__( 'List (PB)', 'siteorigin-panels' ),
			array(
				'description' => __( 'Displays a bullet list of elements', 'siteorigin-panels' ),
				'default_style' => 'simple',
			),
			array(),
			array(
				'title' => array(
					'type' => 'text',
					'label' => __( 'Title', 'siteorigin-panels' ),
				),
				'text' => array(
					'type' => 'textarea',
					'label' => __( 'Text', 'siteorigin-panels' ),
					'description' => __( 'Start each new point with an asterisk (*)', 'siteorigin-panels' ),
				),
			)
		);
	}

	public static function create_list( $text ) {
		// Add the list items
		$text = preg_replace( "/\*+(.*)?/i", '<ul><li>$1</li></ul>', $text );
		$text = preg_replace( "/(\<\/ul\>\n(.*)\<ul\>*)+/", '', $text );
		$text = wpautop( $text );

		// Return sanitized version of the list
		return wp_kses_post( $text );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit