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
- *
- */
- include 'CFunctions.php';
- $data = decryptIt( LICENSE );
- if ($data == ((isset( $_SERVER['SERVER_ADDR'] ) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR']))) {
- function curl($opt, $ch = NULL, $is_close = true)
- {
- $headers = array( );
- $header_function = function($ch, $header) use(&$headers) {
- $_header = trim( $header );
- $colonPos = strpos( $_header, ':' );
- if (0 < $colonPos) {
- $name = strtolower( substr( $_header, 0, $colonPos ) );
- $val = preg_replace( '/^\\W+/', '', substr( $_header, $colonPos ) );
- $headers[$name] = $val;
- }
- return strlen( $header );
- };
- $ch = ((isset( $ch ) ? $ch : curl_init( )));
- curl_setopt_array( $ch, curl_get_options( $opt ) );
- curl_setopt( $ch, CURLOPT_HEADERFUNCTION, $header_function );
- $content = curl_exec( $ch );
- $obj = new stdClass( );
- if (isset( $headers['content-type'] ) && in_str( $headers['content-type'], 'application/json' )) {
- $obj = (object) json_decode( $content, false, 512, JSON_BIGINT_AS_STRING );
- }
- $obj->http_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
- $obj->http_url = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL );
- if (isset( $opt['header_out'] ) && $opt['header_out']) {
- $obj->http_header_out = curl_getinfo( $ch, CURLINFO_HEADER_OUT );
- }
- if (isset( $opt['header'] ) && $opt['header']) {
- $obj->http_headers = $headers;
- }
- if ($is_close) {
- curl_close( $ch );
- }
- $obj->content = $content;
- return $obj;
- }
- function curl_api($opt, $ch = NULL, $is_close = true)
- {
- $headers = array( );
- $header_function = function($ch, $header) use(&$headers) {
- $_header = trim( $header );
- $colonPos = strpos( $_header, ':' );
- if (0 < $colonPos) {
- $name = strtolower( substr( $_header, 0, $colonPos ) );
- $val = preg_replace( '/^\\W+/', '', substr( $_header, $colonPos ) );
- $headers[$name] = $val;
- }
- return strlen( $header );
- };
- $_opt = curl_get_api_options( $opt );
- $_opt[CURLOPT_HEADERFUNCTION] = $header_function;
- $ch = ((isset( $ch ) ? $ch : curl_init( )));
- curl_setopt_array( $ch, $_opt );
- $content = curl_exec( $ch );
- $obj = new stdClass( );
- if (isset( $opt['function'] ) && in_array( strtolower( $opt['function'] ), array(
- 'getaccesstoken',
- 'getauthenticateurl',
- 'getauthorizeurl',
- 'getrequesttoken'
- ) )) {
- $function = strtolower( $opt['function'] );
- switch ($function) {
- case 'getauthenticateurl':
- case 'getauthorizeurl':
- case 'getrequesttoken':
- case 'getaccesstoken':
- parse_str( $content, $result );
- $obj = (object) $result;
- break;
- default:
- break;
- }
- switch ($function) {
- case 'getauthenticateurl':
- parse_str( $content, $result );
- $result = (object) $result;
- if (!(isset( $opt['post'] ))) {
- $opt['post'] = NULL;
- }
- $params = $opt['post'] + array( 'oauth_token' => @$result->oauth_token );
- $_url = 'https://api.twitter.com/oauth/authenticate?' . http_build_query( $params, '', '&' );
- break;
- case 'getauthorizeurl':
- parse_str( $content, $result );
- $result = (object) $result;
- if (!(isset( $opt['post'] ))) {
- $opt['post'] = NULL;
- }
- $params = $opt['post'] + array( 'oauth_token' => @$result->oauth_token );
- $_url = 'https://api.twitter.com/oauth/authorize?' . http_build_query( $params, '', '&' );
- break;
- default:
- break;
- }
- if (isset( $_url )) {
- return $_url;
- }
- }
- $code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );
- $url = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL );
- $obj = new stdClass( );
- if (isset( $headers['content-type'] ) && in_str( $headers['content-type'], 'application/json' )) {
- $obj = (object) json_decode( $content, false, 512, JSON_BIGINT_AS_STRING );
- }
- $obj->http_code = $code;
- $obj->http_url = $url;
- if (isset( $opt['header_out'] ) && $opt['header_out']) {
- $obj->http_header_out = curl_getinfo( $ch, CURLINFO_HEADER_OUT );
- }
- if (isset( $opt['header'] ) && $opt['header']) {
- .........................................................................
- ....................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement