HEX
Server: Apache
System: Linux sxb1plmcpnl510113.prod.sxb1.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: acnbijigo78q (10488831)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/acnbijigo78q/public_html/jetk.sa/wp-content/plugins/wpml-import/classes/Helper/Page.php
<?php

namespace WPML\Import\Helper;

class Page {

	/**
	 * @param  string $path
	 *
	 * @return bool
	 */
	public static function isOn( $path ) {
		if ( ! isset( $_SERVER['REQUEST_URI'] ) ) {
			return false;
		}

		if (
			defined( 'DOING_AJAX' )
			&& DOING_AJAX
		) {
			return false;
		}

		if ( false === strpos( $_SERVER['REQUEST_URI'], $path ) ) {
			return false;
		}

		return true;
	}
}