Advertisement
Guest User

Untitled

a guest
Apr 4th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 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. include 'CFunctions.php';
  15. $data = decryptIt( LICENSE );
  16. if ($data == ((isset( $_SERVER['SERVER_ADDR'] ) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR']))) {
  17. function curl($opt, $ch = NULL, $is_close = true)
  18. {
  19. $headers = array( );
  20. $header_function = function($ch, $header) use(&$headers) {
  21. $_header = trim( $header );
  22. $colonPos = strpos( $_header, ':' );
  23.  
  24. if (0 < $colonPos) {
  25. $name = strtolower( substr( $_header, 0, $colonPos ) );
  26. $val = preg_replace( '/^\\W+/', '', substr( $_header, $colonPos ) );
  27. $headers[$name] = $val;
  28. }
  29.  
  30. return strlen( $header );
  31. };
  32. $ch = ((isset( $ch ) ? $ch : curl_init( )));
  33. curl_setopt_array( $ch, curl_get_options( $opt ) );
  34. curl_setopt( $ch, CURLOPT_HEADERFUNCTION, $header_function );
  35. $content = curl_exec( $ch );
  36. $obj = new stdClass( );
  37.  
  38. if (isset( $headers['content-type'] ) && in_str( $headers['content-type'], 'application/json' )) {
  39. $obj = (object) json_decode( $content, false, 512, JSON_BIGINT_AS_STRING );
  40. }
  41.  
  42. $obj->http_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
  43. $obj->http_url = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL );
  44.  
  45. if (isset( $opt['header_out'] ) && $opt['header_out']) {
  46. $obj->http_header_out = curl_getinfo( $ch, CURLINFO_HEADER_OUT );
  47. }
  48.  
  49. if (isset( $opt['header'] ) && $opt['header']) {
  50. $obj->http_headers = $headers;
  51. }
  52. if ($is_close) {
  53. curl_close( $ch );
  54. }
  55.  
  56. $obj->content = $content;
  57. return $obj;
  58. }
  59. function curl_api($opt, $ch = NULL, $is_close = true)
  60. {
  61. $headers = array( );
  62. $header_function = function($ch, $header) use(&$headers) {
  63. $_header = trim( $header );
  64. $colonPos = strpos( $_header, ':' );
  65.  
  66. if (0 < $colonPos) {
  67. $name = strtolower( substr( $_header, 0, $colonPos ) );
  68. $val = preg_replace( '/^\\W+/', '', substr( $_header, $colonPos ) );
  69. $headers[$name] = $val;
  70. }
  71.  
  72. return strlen( $header );
  73. };
  74. $_opt = curl_get_api_options( $opt );
  75. $_opt[CURLOPT_HEADERFUNCTION] = $header_function;
  76. $ch = ((isset( $ch ) ? $ch : curl_init( )));
  77. curl_setopt_array( $ch, $_opt );
  78. $content = curl_exec( $ch );
  79. $obj = new stdClass( );
  80.  
  81. if (isset( $opt['function'] ) && in_array( strtolower( $opt['function'] ), array(
  82. 'getaccesstoken',
  83. 'getauthenticateurl',
  84. 'getauthorizeurl',
  85. 'getrequesttoken'
  86. ) )) {
  87. $function = strtolower( $opt['function'] );
  88.  
  89. switch ($function) {
  90. case 'getauthenticateurl':
  91.  
  92. case 'getauthorizeurl':
  93.  
  94. case 'getrequesttoken':
  95.  
  96. case 'getaccesstoken':
  97. parse_str( $content, $result );
  98. $obj = (object) $result;
  99. break;
  100.  
  101. default:
  102. break;
  103. }
  104.  
  105. switch ($function) {
  106. case 'getauthenticateurl':
  107. parse_str( $content, $result );
  108. $result = (object) $result;
  109.  
  110. if (!(isset( $opt['post'] ))) {
  111. $opt['post'] = NULL;
  112. }
  113.  
  114. $params = $opt['post'] + array( 'oauth_token' => @$result->oauth_token );
  115. $_url = 'https://api.twitter.com/oauth/authenticate?' . http_build_query( $params, '', '&' );
  116. break;
  117.  
  118. case 'getauthorizeurl':
  119. parse_str( $content, $result );
  120. $result = (object) $result;
  121.  
  122. if (!(isset( $opt['post'] ))) {
  123. $opt['post'] = NULL;
  124. }
  125.  
  126. $params = $opt['post'] + array( 'oauth_token' => @$result->oauth_token );
  127. $_url = 'https://api.twitter.com/oauth/authorize?' . http_build_query( $params, '', '&' );
  128. break;
  129.  
  130. default:
  131. break;
  132. }
  133.  
  134. if (isset( $_url )) {
  135. return $_url;
  136. }
  137. }
  138.  
  139. $code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
  140. $url = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL );
  141. $obj = new stdClass( );
  142.  
  143. if (isset( $headers['content-type'] ) && in_str( $headers['content-type'], 'application/json' )) {
  144. $obj = (object) json_decode( $content, false, 512, JSON_BIGINT_AS_STRING );
  145. }
  146.  
  147. $obj->http_code = $code;
  148. $obj->http_url = $url;
  149.  
  150. if (isset( $opt['header_out'] ) && $opt['header_out']) {
  151. $obj->http_header_out = curl_getinfo( $ch, CURLINFO_HEADER_OUT );
  152. }
  153.  
  154. if (isset( $opt['header'] ) && $opt['header']) {
  155. .........................................................................
  156. ....................................
  157. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement