Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/www/wp-content/plugins/hide-my-wp/models/compatibility/ |
Upload File : |
<?php /** * Compatibility Class * * @file The TwoFactor Model file * @package HMWP/Compatibility/TwoFactor */ defined('ABSPATH') || die('Cheatin\' uh?'); class HMWP_Models_Compatibility_TwoFactor extends HMWP_Models_Compatibility_Abstract { public function hookFrontend() { add_filter('hmwp_files_handle_login', function($url){ if(HMWP_Classes_Tools::getvalue('action') === 'validate_2fa'){ if(isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST' ) { set_transient('hmwp_disable_hide_urls', 1, 60); $response = HMWP_Classes_ObjController::getClass('HMWP_Models_Files')->postRequest($url); if($response){ header("HTTP/1.1 200 OK"); if (!empty($response['headers']) ) { foreach ( $response['headers'] as $header ) { header($header); } } //Echo the html file content echo $response['body']; exit(); } } } }, PHP_INT_MAX, 1); } }