Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($cmd) && stripos($cmd, "dc") === 0 and $status == "On✔")
- {
- if (strtolower($cmd) == "dc")
- {
- $replyMSG = $update['message']['reply_to_message']['message_id'];
- $check_dc = file_get_contents("https://depositodiferramenta.altervista.org/getDc?username=$replyusername");
- $check_dc = json_decode($check_dc, true);
- $dc = $check_dc['result']["datacenter"];
- if ($replyMSG)
- {
- if ($dc == 1)
- {
- sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc1 (Miami FL)</b>.");
- }
- if ($dc == 2)
- {
- sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc2 (Amsterdam)</b>.");
- }
- if ($dc == 3)
- {
- sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc3 (Miami FL)</b>.");
- }
- if ($dc == 4)
- {
- sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc4 (Amsterdam)</b>.");
- }
- if ($dc == 5)
- {
- sm($chatID, "<b>$replynome</b> @$replyusername fa parte del <b>dc5 (Singapore)</b>.");
- }
- }
- else
- {
- if ($dc == 1)
- {
- sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc1 (Miami FL)</b>.");
- }
- if ($dc == 2)
- {
- sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc2 (Amsterdam)</b>.");
- }
- if ($dc == 3)
- {
- sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc3 (Miami FL)</b>.");
- }
- if ($dc == 4)
- {
- sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc4 (Amsterdam)</b>.");
- }
- if ($dc == 5)
- {
- sm($chatID, "<b>$nome</b> @$username fai parte del <b>dc5 (Singapore)</b>.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement