Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.149.251.22
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/so-widgets-bundle/base/inc/shapes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/so-widgets-bundle/base/inc/shapes//shapes.php
<?php
if ( ! class_exists( 'SiteOrigin_Widget_Image_Shapes' ) ) {
	class SiteOrigin_Widget_Image_Shapes {
		public $shapes = array();
		
		public function __construct() {
			add_action( 'init', array( $this, 'setup_shapes' ) );
		}

		public static function single() {
			static $single;

			return empty( $single ) ? $single = new self() : $single;
		}

		public function setup_shapes() {
			$this->shapes = apply_filters(
				'siteorigin_widgets_image_shapes',
				array(
					'circle' => __( 'Circle', 'so-widgets-bundle' ),
					'oval' => __( 'Oval', 'so-widgets-bundle' ),
					'triangle' => __( 'Triangle', 'so-widgets-bundle' ),
					'square' => __( 'Square', 'so-widgets-bundle' ),
					'diamond' => __( 'Diamond', 'so-widgets-bundle' ),
					'rhombus' => __( 'Rhombus', 'so-widgets-bundle' ),
					'parallelogram' => __( 'Parallelogram', 'so-widgets-bundle' ),
					'pentagon' => __( 'Pentagon', 'so-widgets-bundle' ),
					'hexagon' => __( 'Hexagon', 'so-widgets-bundle' ),
				)
			);
		}

		function get_shapes() {
			return $this->shapes;
		}

		public function is_valid_shape( $shape ) {
			if (
				! empty( $this->shapes ) &&
				! empty( $shape ) &&
				isset( $this->shapes[ $shape ] )
			) {
				return true;
			}

			return false;
		}

		public function get_image_shape( $shape ) {
			if (
				$this->is_valid_shape( $shape ) &&
				$shape != 'custom'
			) {
				$file = wp_normalize_path(
					apply_filters(
						'siteorigin_widgets_image_shape_file_path',
						plugin_dir_path( __FILE__ ) . 'images/',
						$shape
					)
				) . $shape . '.svg';
				if ( file_exists( $file ) ) {
					return wp_normalize_path(
						apply_filters(
							'siteorigin_widgets_image_shape_file_url',
							plugin_dir_url( __FILE__ ) . 'images/',
							$shape
						)
					) . $shape . '.svg';
				}
			}
			return false;
		}
	}
	SiteOrigin_Widget_Image_Shapes::single();
}

Youez - 2016 - github.com/yon3zu
LinuXploit