Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/plugins/image-optimization/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/plugins/image-optimization/classes/locale.php
<?php

namespace ImageOptimization\Classes;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Locale {
	private $original_locale;

	public function set_utf_locale( int $category = LC_CTYPE ) {
		setlocale( $category, 'en_US.UTF-8' );
	}

	public function get_locale( int $category = LC_CTYPE ) {
		return setlocale( $category, 0 );
	}

	public function reset_to_original( int $category = LC_CTYPE ) {
		return setlocale( $category, $this->original_locale );
	}

	public function __construct() {
		$this->original_locale = $this->get_locale();
	}
}

Spamworldpro Mini