Guest User

Untitled

a guest
Sep 15th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function getDecodedString($str)
  15. {
  16. $encryptKeyPosition = getEncryptKeyPosition(substr($str, -2, 1));
  17. $encryptKeyPosition2 = getEncryptKeyPosition(substr($str, -1));
  18. $substring = substr($str, 0, -2);
  19. return trim(utf8_decode(base64_decode(substr($substring, 0, $encryptKeyPosition) . substr($substring, $encryptKeyPosition + $encryptKeyPosition2))));
  20. }
  21.  
  22. function getEncryptKeyPosition($str)
  23. {
  24. return strpos(ALLOWED_CHARACTERS, $str);
  25. }
  26.  
  27. function getEncodedString($str)
  28. {
  29. $encryptKeyPosition = getEncryptKeyPosition(substr($str, -2, 1));
  30. $encryptKeyPosition2 = getEncryptKeyPosition(substr($str, -1));
  31. $encodedString = base64_encode(utf8_encode($str));
  32. $substring = substr($encodedString, 0, $encryptKeyPosition) . substr($encodedString, $encryptKeyPosition + $encryptKeyPosition2);
  33. return $substring . substr(ALLOWED_CHARACTERS, $encryptKeyPosition, 1) . substr(ALLOWED_CHARACTERS, $encryptKeyPosition2, 1);
  34. }
  35.  
  36. function lang()
  37. {
  38. $language_json = file_get_contents('./json/language.json');
  39. return $language_json;
  40. }
  41.  
  42. function getUserData($mac_address)
  43. {
  44. $db = new SQLite3('./.db.db');
  45. $mac_address = strtolower($mac_address);
  46. $ibo_query = $db->query('SELECT * FROM ibo WHERE LOWER(mac_address)="' . $mac_address . '"');
  47. $urls = [];
  48.  
  49. while ($ibo_row = $ibo_query->fetchArray()) {
  50. $urls[] = ['is_protected' => $ibo_row['protection'], 'id' => md5($ibo_row['password']) . 'RTXREBRAND' . $ibo_row['id'], 'url' => $ibo_row['url'] . '/get.php?username=' . $ibo_row['username'] . '&password=' . $ibo_row['password'] . '&type=m3u_plus&output=ts', 'name' => $ibo_row['title'], 'created_at' => '2023-04-15 00:06:09', 'updated_at' => '2023-04-15 00:06:09'];
  51. }
  52.  
  53. return ['urls' => json_encode($urls)];
  54. }
  55.  
  56. function getExpired($mac_address)
  57. {
  58. $db = new SQLite3('./.db.db');
  59. $mac_address = strtolower($mac_address);
  60. .................................................................
  61. ...............................................
  62. ...........................
Add Comment
Please, Sign In to add comment