Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.8.3
  8. * @ Author : DeZender
  9. * @ Release on : 12.03.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class Xbot_functions
  15. {
  16. static public $disabled_functions = [];
  17. static private $last_checked = [];
  18. static private $license_checked = false;
  19. static public $show_links = [];
  20.  
  21. static public function write_loaded_functions($count, $switch)
  22. {
  23. global $language;
  24.  
  25. if ($count == 1) {
  26. if ($switch == 1) {
  27. return $language['core']['plugins'][1];
  28. }
  29. else if ($switch == 2) {
  30. return $language['core']['events'][1];
  31. }
  32. else {
  33. return $language['core']['commands'][1];
  34. }
  35. }
  36. else if (((5 <= $count) || ($count == 0)) && ($language['which'] != 'eng')) {
  37. if ($switch == 1) {
  38. return $language['core']['plugins'][3];
  39. }
  40. else if ($switch == 2) {
  41. return $language['core']['events'][3];
  42. }
  43. else {
  44. return $language['core']['commands'][3];
  45. }
  46. }
  47. else if ($switch == 1) {
  48. return $language['core']['plugins'][2];
  49. }
  50. else if ($switch == 2) {
  51. return $language['core']['events'][2];
  52. }
  53. else {
  54. return $language['core']['commands'][2];
  55. }
  56. }
  57.  
  58. static public function check_numeric_connect($cfg, $name)
  59. {
  60. global $language;
  61. global $logs_manager;
  62. $good = true;
  63.  
  64. if (!is_numeric($cfg['query_port'])) {
  65. $logs_manager::write_info($name . 'Query port' . $language['core']['misconfigured']);
  66. $good = false;
  67. }
  68.  
  69. if (!is_numeric($cfg['port'])) {
  70. $logs_manager::write_info($name . 'Port' . $language['core']['misconfigured']);
  71. $good = false;
  72. }
  73.  
  74. if (!is_numeric($cfg['default_channel'])) {
  75. $logs_manager::write_info($name . 'Bot default channel' . $language['core']['misconfigured']);
  76. $good = false;
  77. }
  78.  
  79. return $good;
  80. }
  81.  
  82. static public function success(array $output)
  83. {
  84. return $output[__FUNCTION__];
  85. }
  86.  
  87. static public function convert_to_seconds($interval)
  88. {
  89. $interval['days'] = $interval['days'] + ($interval['weeks'] * 7);
  90. $interval['hours'] = $interval['hours'] + ($interval['days'] * 24);
  91. $interval['minutes'] = $interval['minutes'] + ($interval['hours'] * 60);
  92. return $interval['seconds'] + ($interval['minutes'] * 60);
  93. }
  94.  
  95. static public function if_can($event, $date1, $date2, $interval)
  96. {
  97. global $event_info;
  98.  
  99. if (!self::$license_checked) {
  100. global $version;
  101. global $logs_manager;
  102. global $name;
  103. global $language;
  104. global $addons;
  105. require 'license.php';
  106.  
  107. if ($addons != '') {
  108. $to_add = '&addons=' . $addons;
  109. }
  110. else {
  111. $to_add = '';
  112. ...........................................................
  113. ........................................
  114. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement