Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. <?php
  2. if (isset($cmd) && stripos($cmd, "dc") === 0 and $status == "On✔")
  3. {
  4. if (strtolower($cmd) == "dc")
  5. {
  6. $replyMSG = $update['message']['reply_to_message']['message_id'];
  7. $check_dc = file_get_contents("https://depositodiferramenta.altervista.org/getDc?username=$replyusername");
  8. $check_dc = json_decode($check_dc, true);
  9. $dc = $check_dc['result']["datacenter"];
  10. if ($replyMSG)
  11. {
  12. if ($dc == 1)
  13. {
  14. sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc1 (Miami FL)</b>.");
  15. }
  16. if ($dc == 2)
  17. {
  18. sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc2 (Amsterdam)</b>.");
  19. }
  20. if ($dc == 3)
  21. {
  22. sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc3 (Miami FL)</b>.");
  23. }
  24. if ($dc == 4)
  25. {
  26. sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc4 (Amsterdam)</b>.");
  27. }
  28. if ($dc == 5)
  29. {
  30. sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc5 (Singapore)</b>.");
  31. }
  32. }
  33. else
  34. {
  35. if ($dc == 1)
  36. {
  37. sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc1 (Miami FL)</b>.");
  38. }
  39. if ($dc == 2)
  40. {
  41. sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc2 (Amsterdam)</b>.");
  42. }
  43. if ($dc == 3)
  44. {
  45. sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc3 (Miami FL)</b>.");
  46. }
  47. if ($dc == 4)
  48. {
  49. sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc4 (Amsterdam)</b>.");
  50. }
  51. if ($dc == 5)
  52. {
  53. sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc5 (Singapore)</b>.");
  54. }
  55. }
  56. }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement