Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: text/html; charset=UTF-8');
- file_put_contents("post.log",print_r($_POST,true));
- $banreas = $_POST["banreas"];
- $steamid = $_POST["steamid"];
- $playeradr = $_POST["playeradr"];
- $playerdata = $_POST["playerbandata"];
- $webhook = $_POST["webhook"];
- if (!$webhook)
- exit("Only post requests!");
- function postToDiscord($message,$webhook)
- {
- $data = array("content" => $message, "username" => "Modern AC");
- $curl = curl_init($webhook);
- curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- return curl_exec($curl);
- }
- if (strpos( $banreas, "verified" ) != true) {
- $message = "```".$banreas."
- SteamID: ".$steamid."
- IP-Address: ".$playeradr."
- Additional data: ".$playerdata."```";
- postToDiscord($message,$webhook);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement