Advertisement
Guest User

Untitled

a guest
Sep 28th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Stalker\Lib\Core;
  15.  
  16. class DataLoader
  17. {
  18. private $type = null;
  19. private $action = null;
  20. private $context = null;
  21. private $interface = null;
  22. private $method = null;
  23.  
  24. public function __construct($type, $action)
  25. {
  26. $this->type = $type;
  27. $this->action = $action;
  28.  
  29. try {
  30. $this->context = $this->getContext( );
  31. $this->method = $this->getMethod( );
  32. return;
  33. }
  34. catch (Exception $e) {
  35. error_log( $e->getMessage( ) );
  36. }
  37.  
  38. error_log( $e->getMessage( ) );
  39. }
  40.  
  41. public function getResult()
  42. {
  43. if (empty( $this->context ) || empty( $this->method )) {
  44. return false;
  45. }
  46.  
  47. try {
  48. $result = call_user_func( array(
  49. $this->context,
  50. $this->method
  51. ) );
  52.  
  53. if (!(Stb::getInstance( )->isValidHashVersion( ))) {
  54. if (($this->type == 'stb') && ($this->action == 'handshake')) {
  55. if ((time( ) % rand( 3, 7 )) == 0) {
  56. return array( );
  57.  
  58. if (($this->type == 'itv') && (($this->action == 'get_ordered_list') || ($this->action == 'get_all_channels'))) {
  59. if (((time( ) % rand( 5, 10 )) == 0) && isset( $result['data'] ) && is_array( $result['data'] )) {
  60. $scenario = rand( 0, 6 );
  61.  
  62. if ($scenario == 0) {
  63. $result['data'] = array( );
  64. }
  65. else {
  66. foreach ($result['data'] as $key => $item) {
  67. switch ($scenario) {
  68. case 1:
  69. $result['data'][$key]['name'] = '';
  70. break;
  71.  
  72. case 2:
  73. unset( $result['data'][$key]['name'] );
  74. break;
  75.  
  76. case 3:
  77. unset( $result['data'][$key]['number'] );
  78. break;
  79.  
  80. case 4:
  81. if (($key % rand( 1, 5 )) == 0) {
  82. $result['data'][$key]['cmd'] = '';
  83. }
  84.  
  85. break;
  86.  
  87. case 5:
  88. if (isset( $result['data'][$key + 1] )) {
  89. $result['data'][$key]['cmd'] = $result['data'][$key + 1]['cmd'];
  90. }
  91.  
  92. break;
  93.  
  94. case 6:
  95. $result['data'][$key] = array( );
  96. break;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. else if (($this->type == 'itv') && ($this->action == 'create_link')) {
  103. $scenario = rand( 1, 2 );
  104. ..........................................................................
  105. ...........................................
  106. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement