Guest User

Untitled

a guest
Sep 22nd, 2024
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 8.1.0.9
  8. * @ Author : DeZender
  9. * @ Release on : 27.10.2023
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function bot($method, $datas = [])
  15. {
  16. $url = 'https://api.telegram.org/bot' . TOKEN . '/' . $method;
  17. $ch = curl_init();
  18. curl_setopt($ch, CURLOPT_URL, $url);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  20. curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($datas));
  21. $res = curl_exec($ch);
  22.  
  23. if (curl_error($ch)) {
  24. var_dump(curl_error($ch));
  25. }
  26. else {
  27. return json_decode($res);
  28. }
  29. }
  30.  
  31. function excerpt($phrase, $parts)
  32. {
  33. $pieces = explode(' ', $phrase);
  34. return implode(' ', array_splice($pieces, 0, $parts));
  35. }
  36.  
  37. function get_web_page($url)
  38. {
  39. $options = [CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => '', CURLOPT_USERAGENT => 'spider', CURLOPT_AUTOREFERER => true, CURLOPT_CONNECTTIMEOUT => 120, CURLOPT_TIMEOUT => 120, CURLOPT_MAXREDIRS => 10];
  40. $ch = curl_init($url);
  41. curl_setopt_array($ch, $options);
  42. $content = curl_exec($ch);
  43. curl_close($ch);
  44. return $content;
  45. }
  46.  
  47. function isAdmin()
  48. {
  49. global $userid;
  50. $admins = file_get_contents('admins.php');
  51.  
  52. if (preg_match('/' . $userid . '/', $admins)) {
  53. return true;
  54. }
  55. else {
  56. return false;
  57. }
  58. }
  59.  
  60. function sendlcmsg($token, $msg, $url)
  61. {
  62. $keyboard = [];
  63. $keyboard[] = [
  64. ['text' => '✅ثبت کد لایسنس', 'url' => $url]
  65. ............................................................................
  66. .............................................
  67. ..................
Advertisement
Add Comment
Please, Sign In to add comment