Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Stalker\Lib\Core;
- class DataLoader
- {
- private $type = null;
- private $action = null;
- private $context = null;
- private $interface = null;
- private $method = null;
- public function __construct($type, $action)
- {
- $this->type = $type;
- $this->action = $action;
- try {
- $this->context = $this->getContext( );
- $this->method = $this->getMethod( );
- return;
- }
- catch (Exception $e) {
- error_log( $e->getMessage( ) );
- }
- error_log( $e->getMessage( ) );
- }
- public function getResult()
- {
- if (empty( $this->context ) || empty( $this->method )) {
- return false;
- }
- try {
- $result = call_user_func( array(
- $this->context,
- $this->method
- ) );
- if (!(Stb::getInstance( )->isValidHashVersion( ))) {
- if (($this->type == 'stb') && ($this->action == 'handshake')) {
- if ((time( ) % rand( 3, 7 )) == 0) {
- return array( );
- if (($this->type == 'itv') && (($this->action == 'get_ordered_list') || ($this->action == 'get_all_channels'))) {
- if (((time( ) % rand( 5, 10 )) == 0) && isset( $result['data'] ) && is_array( $result['data'] )) {
- $scenario = rand( 0, 6 );
- if ($scenario == 0) {
- $result['data'] = array( );
- }
- else {
- foreach ($result['data'] as $key => $item) {
- switch ($scenario) {
- case 1:
- $result['data'][$key]['name'] = '';
- break;
- case 2:
- unset( $result['data'][$key]['name'] );
- break;
- case 3:
- unset( $result['data'][$key]['number'] );
- break;
- case 4:
- if (($key % rand( 1, 5 )) == 0) {
- $result['data'][$key]['cmd'] = '';
- }
- break;
- case 5:
- if (isset( $result['data'][$key + 1] )) {
- $result['data'][$key]['cmd'] = $result['data'][$key + 1]['cmd'];
- }
- break;
- case 6:
- $result['data'][$key] = array( );
- break;
- }
- }
- }
- }
- }
- else if (($this->type == 'itv') && ($this->action == 'create_link')) {
- $scenario = rand( 1, 2 );
- ..........................................................................
- ...........................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement