<?php /** * Compatibility Class * * @file The MainWP Model file * @package HMWP/Compatibility/MainWP * @since 7.1.0 */ defined('ABSPATH') || die('Cheatin\' uh?'); class HMWP_Models_Compatibility_MainWP extends HMWP_Models_Compatibility_Abstract { public function __construct() { if( isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST' ) { if( isset($_SERVER['REQUEST_URI']) && isset($_SERVER['HTTP_USER_AGENT']) ) { $url = untrailingslashit(strtok($_SERVER["REQUEST_URI"], '?')); $agent = $_SERVER['HTTP_USER_AGENT']; $paths = array('wp-admin/admin-ajax.php'); $agents = array('MainWP'); if (HMWP_Classes_Tools::searchInString($url, $paths)) { if(HMWP_Classes_Tools::searchInString($agent, $agents)){ add_filter('hmwp_process_hide_urls', '__return_false'); add_filter('hmwp_process_init', '__return_false'); } } } } } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Abstract.php | File | 1.36 KB | 0644 |
|
AioSecurity.php | File | 1.1 KB | 0644 |
|
Autoptimize.php | File | 649 B | 0644 |
|
Breeze.php | File | 783 B | 0644 |
|
Cmp.php | File | 920 B | 0644 |
|
ConfirmEmail.php | File | 746 B | 0644 |
|
FastestCache.php | File | 538 B | 0644 |
|
FlyingPress.php | File | 433 B | 0644 |
|
Hummingbird.php | File | 788 B | 0644 |
|
JsOptimize.php | File | 633 B | 0644 |
|
LiteSpeed.php | File | 1.44 KB | 0644 |
|
MMaintenance.php | File | 1.34 KB | 0644 |
|
MainWP.php | File | 1.06 KB | 0644 |
|
MemberPress.php | File | 6.17 KB | 0644 |
|
Nitropack.php | File | 508 B | 0644 |
|
Others.php | File | 10.94 KB | 0644 |
|
PowerCache.php | File | 528 B | 0644 |
|
ReallySimpleSsl.php | File | 1.36 KB | 0644 |
|
SiteGuard.php | File | 4.61 KB | 0644 |
|
Squirrly.php | File | 827 B | 0644 |
|
SuperCache.php | File | 418 B | 0644 |
|
TwoFactor.php | File | 1.22 KB | 0644 |
|
UltimateMember.php | File | 5.33 KB | 0644 |
|
W3Total.php | File | 2.54 KB | 0644 |
|
WPFrontendAdmin.php | File | 2.36 KB | 0644 |
|
Woocommerce.php | File | 6.96 KB | 0644 |
|
Wordfence.php | File | 2.07 KB | 0644 |
|
WpDefender.php | File | 662 B | 0644 |
|
WpRocket.php | File | 5.98 KB | 0644 |
|
Wpml.php | File | 733 B | 0644 |
|
Wpum.php | File | 5.16 KB | 0644 |
|
hCaptcha.php | File | 605 B | 0644 |
|
iThemes.php | File | 754 B | 0644 |
|