HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/linde/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.2
*/

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 ) );
				} else {
					// If none of these cases match, just return -- it's an unusual setup
					return;
				}
			}

			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' );
}