Uyarı!

Sistemimizden daha iyi faydalanabilmek için Üye Olmanız yada Giriş Yapmanız gerekmektedir. yada Şifremi Unuttum tıkla

Pastebin | Pastebin Ekle

instaramioncube decode

p4p4z tarafından ... 20.10.2016 - 16:20
|
			<?php
/**
 *
 * @ IonCube v8.3 Loader By DoraemonPT
 * @ PHP 5.3
 * @ Decoder version : 1.0.0.7
 * @ Author     : DoraemonPT
 * @ Release on : 09.05.2014
 * @ Website    : http://EasyToYou.eu
 *
 **/

class DB {
	function instance() {
		$lwgrptywc = 'pdo';

		if (${$GLOBALS['ytugkvwi']} == null) {
			self::init(  );
			self;
		}

		return $$lwgrptywc;
	}

	function init() {
		$saygkgqdl = 'charset';
		$jdpkykxow = 'pdo';
		$$jdpkykxow = new PDO( 'mysql:host=' . MYSQL_HOST . ';dbname=' . MYSQL_DB, MYSQL_USER, MYSQL_PASS );
		$pdo->exec( 'SET NAMES `' . $$saygkgqdl . '`' );
		$pdo->setAttribute( ATTR_DEFAULT_FETCH_MODE, FETCH_OBJ );
		return ${$GLOBALS['ytugkvwi']};
	}

	function query($query, $bindings = null, &$cache = null) {
		if (is_null( ${$GLOBALS['cftpwin']} )) {
			$jvuwhoric = 'last_stmt';
			$GLOBALS['tjvkbbr'] = 'query';

			if (!$$jvuwhoric = self::instance(  )->query( ${$GLOBALS['tjvkbbr']} )) {
				return false;
				$pgnfmj = 'last_stmt';
				$diunvshxn = 'bindings';
				$bjrdmlpxotjt = 'query';
				$$pgnfmj = self::prepare( $$bjrdmlpxotjt );

				if (!$last_stmt->execute( $$diunvshxn )) {
					return false;
					$GLOBALS;
				}


				if (${['xzycqjrjyd']} == true) {
					self::setExec(  );
					$GLOBALS['xzycqjrjyd'];
					new Cache(  );
				}
			}

			$ = ;
			$cache->_newCache(  );
			${$GLOBALS['jbgxdfwv']};
		}

		return ;
	}

	function getVar($query, $bindings = null, &$cache = null) {
		$GLOBALS['huhulclkn'] = 'stmt';
		$gnqfcarz = 'bindings';

		if (!${$GLOBALS['huhulclkn']} = self::query( ${$GLOBALS['gqjcjdud']}, $$gnqfcarz )) {
			return false;

			if (${$GLOBALS['xzycqjrjyd']} == true) {
				self;
			}

			::setExec(  );
			${$GLOBALS['xzycqjrjyd']} = new Cache(  );
			$cache->_newCache;
		}

		(  );
		return $stmt->fetchColumn(  );
	}

	function getRow($query, $bindings = null, &$cache = null) {

		if (!${$GLOBALS['zqlfrmjcw']} = self::query( ${$GLOBALS['gqjcjdud']}, ${$GLOBALS['cftpwin']} )) {
			return false;
			$GLOBALS['hwgimyrpaj'] = 'cache';

			if (${$GLOBALS['hwgimyrpaj']} == true) {
				self::setExec(  );
				$GLOBALS;
			}

			['uetlkjbomcg'] = 'cache';
			$GLOBALS['uetlkjbomcg'];
		}

		$ = new Cache(  );
		$cache->_newCache(  );
		return $stmt->fetch(  );
	}

	function get($query, $bindings = null, &$cache = null) {
		$GLOBALS['biwrftiywa'] = 'cache';
		$nhzvlocamkag = 'query';
		$GLOBALS['ceqqfiw'] = 'stmt';

		if (!${$GLOBALS['ceqqfiw']} = self::query( $$nhzvlocamkag, ${$GLOBALS['cftpwin']} )) {
			return false;

			if (${$GLOBALS['biwrftiywa']} == true) {
				self::setExec(  );
				$GLOBALS['xzycqjrjyd'];
				Cache;
			}

			new (  );
			$ = ;
			$cache->_newCache(  );
			$GLOBALS['ljhclfdsf'] = 'result';
			${$GLOBALS['tpqkvviowcp']} = array(  );
			foreach (${$GLOBALS['zqlfrmjcw']} as ${$GLOBALS['kphqfev']}) {
				$GLOBALS['tpqkvviowcp'];
				${$GLOBALS['kphqfev']};
			}
		}


		while (true) {
			$[] = ;
		}

		return ${$GLOBALS['ljhclfdsf']};
	}

	function exec($query, $bindings = null, &$cache = null) {
		$GLOBALS['hiltcvakpu'] = 'stmt';
		$mqyofmmq = 'bindings';

		if (!${$GLOBALS['hiltcvakpu']} = self::query( ${$GLOBALS['gqjcjdud']}, $$mqyofmmq )) {
			return false;

			if (${$GLOBALS['xzycqjrjyd']} == true) {
				$GLOBALS['ohpdrigmlk'] = 'cache';
				self::setExec;
			}
		}

		(  );
		${$GLOBALS['ohpdrigmlk']} = new Cache(  );
		$cache->_newCache(  );
		return $stmt->rowCount(  );
	}

	function setExec($query = null, $bindings = null, &$cache = null) {
		if (${$GLOBALS['xzycqjrjyd']} == true) {
			$GLOBALS['ickwvma'] = 'cache';
			${$GLOBALS['ickwvma']} = new Cache(  );
		}

		$cache->_newCache(  );
		return true;
	}

	function insert($query, &$bindings = null) {
		$jixvult = 'bindings';
		$GLOBALS['hlomgcnr'] = 'query';
		$xcewjdbunix = 'stmt';

		if (!$$xcewjdbunix = self::query( ${$GLOBALS['hlomgcnr']}, $$jixvult )) {
			return false;
			self;
		}

		return $pdo->lastInsertId(  );
	}

	function fetchColumn(&$query) {
		${$GLOBALS['gqjcjdud']} = $pdo->prepare( ${$GLOBALS['gqjcjdud']} );
		$query->execute(  );
		${$GLOBALS['rkwvclluxy']} = $query->fetch( FETCH_NUM );
		return ${$GLOBALS['rkwvclluxy']}[0];
	}

	function getLastError() {
		${$GLOBALS['rzbgpihh']} = $last_stmt->errorInfo(  );

		if (${$GLOBALS['rzbgpihh']}[0] == 0) {
			return false;
			$GLOBALS['rzbgpihh'];
		}

		return $;
	}

	function __callStatic($name, &$arguments) {
		$GLOBALS['jeimtxw'] = 'name';
		return call_user_func_array( array( self::instance(  ), ${$GLOBALS['jeimtxw']} ), ${$GLOBALS['nfkpkxdva']} );
	}

	function __setPDO($var, &$value) {
	}
}

class instaAuth {
	protected $_cookieFolder = 'cookies/';
	protected $_cookieExtension = '.selco';
	protected $_useragent = 'Mozilla/5.0 (Linux; Android 4.4.2; HUAWEI MT7-L09 Build/HuaweiMT7-L09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36';
	protected $_proxy = array(  );
	protected $_privateCookie = array(  );
	protected $auth_url = null;
	protected $_cookies = array(  );
	protected $_signed = '6d51fe001d37fae892bfd51b334cf2deaa66dc8822ff37e8d0f45e8883d56061';
	protected $_result = 0;

	function _login($username, $password, &$app_login = null) {
		$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

		if (0 < count( $this->_proxy )) {
			$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

			if (file_exists( $_cookie )) {
				unlink( $_cookie );
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
				$selco = curl_init(  );
				$options = array( CURLOPT_URL => 'https://www.instagram.com/login/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					CURLOPT_PROXYTYPE;
				}
			}
		}

		$options[] = 'HTTP';
		curl_setopt_array( $selco, $options );
		$query = curl_exec( $selco );
		$parse = explode( '"csrf_token":"', $query );
		$parse = explode( '"}', $parse[1] );
		$csrf_token = $parse[0];

		if (!$csrf_token) {
			throw new Exception( 'Error: login() - Login URL hatalı' );
			$post_string = array( 'username' => trim( $username ), 'password' => trim( $password ) );
			$post_string = http_build_query( $post_string, '', '&' );
			array( 'Accept: */*', 'Accept-Language: tr;q=1', 'Origin:https://www.instagram.com', 'Referer:https://www.instagram.com/accounts/login/ajax/?targetO1rigin=https%3A%2F%2Finstagram.com', 'X-CSRFToken:' . $csrf_token, 'X-Instagram-AJAX:1', 'X-Requested-With:XMLHttpRequest', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip );
		}

		$header_login = array( 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
		$options = array( CURLOPT_URL => 'https://www.instagram.com/accounts/login/ajax/', CURLOPT_REFERER => 'https://www.instagram.com/accounts/login/', CURLOPT_HTTPHEADER => $header_login, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $post_string );

		if (!empty( $$randomProxy )) {
			$options[CURLOPT_PROXY] = $randomProxy;
			$options[CURLOPT_PROXYTYPE] = 'HTTP';
			curl_setopt_array( $selco, $options );
			$json = curl_exec( $selco );
			$json = json_decode( $json );
			curl_close( $selco );

			if (( isset( $json->authenticated ) && $json->authenticated )) {
				$selco = curl_init(  );
				$options = array( CURLOPT_URL => 'https://www.instagram.com/accounts/edit/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header_login, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					curl_setopt_array;
					$selco;
					$options;
				}
			}
		}

		(  );
		$page = curl_exec( $selco );
		curl_close( $selco );
		$parse = explode( '"id":"', $page );
		$parse = explode( '"}', $parse[1] );
		$user_id = $parse[0];
		preg_match( '/<option value="([^<]+)" selected="selected">([^<]+)<\/option>/', $page, $gender );
		array( 'login' => true, 'data' => array( 'id' => $user_id, 'username' => $username, 'gender' => intval( $gender[1] ), 'cookie' => $_cookie ) );

		if (empty( $$code )) {
			$result = ( array( 'code' => (true ? $code : null) ) );
			return json_decode( $result );
			curl_close( $selco );
			unlink( $_cookie );
		}

		throw new Exception( 'Error: login() - Kullanıcı adı veya paralo geçersiz.' );
	}

	function _login2($username, $password, &$app_login = null) {
		$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

		if (0 < count( $this->_proxy )) {
			$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

			if (file_exists( $_cookie )) {
				unlink( $_cookie );
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
				$selco = curl_init(  );
				$options = array( CURLOPT_URL => 'https://instagram.com/login/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					curl_setopt_array( $selco, $options );
					$query = curl_exec( $selco );
					$parse = explode( '"csrf_token":"', $query );
					$parse = explode( '"}', $parse[1] );
					$csrf_token = $parse[0];

					if (!$csrf_token) {
						throw new Exception( 'Error: login() - Login URL hatalı' );
						$post_string = array( 'username' => trim( $username ), 'password' => trim( $password ) );
						$post_string = http_build_query( $post_string, '', '&' );
						array( 'Accept: */*', 'Accept-Language: tr;q=1', 'Origin:https://instagram.com', 'Referer:https://instagram.com/accounts/login/ajax/?targetO1rigin=https%3A%2F%2Finstagram.com', 'X-CSRFToken:' . $csrf_token, 'X-Instagram-AJAX:1', 'X-Requested-With:XMLHttpRequest', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip );
					}
				}

				$header_login = array( 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
				$options = array( CURLOPT_URL => 'https://instagram.com/accounts/login/ajax/', CURLOPT_REFERER => 'https://www.instagram.com/accounts/login/', CURLOPT_HTTPHEADER => $header_login, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $post_string );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					curl_setopt_array( $selco, $options );
					$json = curl_exec( $selco );
					$json = json_decode( $json );
					curl_close( $selco );

					if (( isset( $json->authenticated ) && $json->authenticated )) {
						$selco = curl_init(  );
						array( CURLOPT_URL => 'https://instagram.com/accounts/edit/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header_login, CURLOPT_USERAGENT => $this->_useragent );
					}
				}
			}
		}

		$options = array( CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true );

		if (!empty( $$randomProxy )) {
			$options[CURLOPT_PROXY] = $randomProxy;
			$options[CURLOPT_PROXYTYPE] = 'HTTP';
			curl_setopt_array( $selco, $options );
			$page = curl_exec( $selco );
			curl_close( $selco );
			$parse = explode( '"id":"', $page );
			$parse = explode( '"}', $parse[1] );
			$user_id = $parse[0];
			preg_match( '/<option value="([^<]+)" selected="selected">([^<]+)<\/option>/', $page, $gender );

			if ($app_login === true) {
				if ($this->auth_url) {
					array( 'accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'accept-encoding:gzip, deflate', 'accept-language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4', 'cache-control:max-age=0', 'content-length:68', 'content-type:application/x-www-form-urlencoded', 'origin:https://www.instagram.com', 'referer:' . $this->auth_url, 'upgrade-insecure-requests:1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip );
				}

				'HTTP_CACHE_INFO:' . $fake_ip;
			}

			$header_app = array( , 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
			$selco = curl_init(  );
			$options = array( CURLOPT_URL => $this->auth_url, CURLOPT_REFERER => $this->auth_url, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_POST => true, CURLOPT_POSTFIELDS =>  . 'csrfmiddlewaretoken=' . $csrf_token . '&allow=Authorize', CURLOPT_COOKIESESSION => true, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HTTPHEADER => $header_app, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => true, CURLOPT_HEADER => true, CURLOPT_FOLLOWLOCATION => true );

			if (!empty( $$randomProxy )) {
				$options[CURLOPT_PROXY] = $randomProxy;
				$options[CURLOPT_PROXYTYPE] = 'HTTP';
				curl_setopt_array( $selco, $options );
				$page = curl_exec( $selco );
				print_r( $csrf_token );
				print_r( $page );
				curl_close( $selco );
				$tokenAl = explode( 'Location', $page );
				$tokenAl = explode( 'Pragma:', $tokenAl[1] );
				$tokenAl = $tokenAl[0];
				$code = str_replace( array( ': ' ), null, trim( $tokenAl ) );
				return null;
				throw new Exception( 'Error: login() - Uygulama girişi için {auth_url} tanımlaması yapılmalı.' );
				return null;
				curl_close( $selco );
			}
		}

		unlink( $_cookie );
		throw new Exception( 'Error: login() - Kullanıcı adı veya paralo geçersiz.' );
	}

	function _login_old($username, $password, &$app_login = null) {
		$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

		if (0 < count( $this->_proxy )) {
			$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

			if (file_exists( $_cookie )) {
				unlink( $_cookie );
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
				$selco = curl_init(  );
				$options = array( CURLOPT_URL => 'https://www.instagram.com/accounts/login/?force_classic_login', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_FOLLOWLOCATION => true, CURLOPT_RETURNTRANSFER => true );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					curl_setopt_array( $selco, $options );
					$page = curl_exec( $selco );
				}


				if (!preg_match( '/<form method="POST" id="login-form" class="adjacent".*?<\/form>/is', $page, $form )) {
					throw new Exception( 'Error: login() - Login giriş hatalı, zaten giriş yapılmış olabilir.' );
					preg_match;
				}
			}
		}


		if (!( '/action="([^"]+)"/i', $form[0], $action )) {
			throw new Exception( 'Error: login() - Login URL hatalı' );
			$url2 = $action[1];
			$count = preg_match_all( '/<input type="hidden"\s*name="([^"]*)"\s*value="([^"]*)"/i', $form[0], $hiddenFields );
			$postFields = array(  );
			$i = 619;

			if ($i < $count) {
				$postFields[$hiddenFields[1][$i]] = $hiddenFields[2][$i];
				++$i;
			}
		}
		else {
			( $selco, $options );
			$page = curl_exec( $selco );
			curl_close( $selco );
			$fileCookie = file_get_contents( $_cookie );

			if (stripos( $fileCookie, 'sessionid' ) === false) {
				unlink( $_cookie );
				throw new Exception( 'Error: login() - Kullanıcı adı veya paralo geçersiz.' );
				$cut = explode( 'ds_user_id', $fileCookie );
				$user_id = trim( $cut[1] );
				preg_match( '/<option value="([^<]+)" selected="selected">([^<]+)<\/option>/', $page, $gender );

				if ($app_login === true) {
					if ($this->auth_url) {
						preg_match( '/csrftoken.*?instagram.com/si', $fileCookie, $token );
						$token = str_replace( array( 'instagram.com', 'csrftoken', '#HttpOnly_i.', '	', '
', ' ' ), null, $token[0] );

						$selco = curl_init(  );
						array( CURLOPT_URL => $this->auth_url, CURLOPT_REFERER => 'https://www.instagram.com/accounts/login/?force_classic_login', CURLOPT_POST => true );
						CURLOPT_POSTFIELDS;
							. 'csrfmiddlewaretoken=' . $token . '&allow=Authorize';
					}
				}
			}
		}

		$options = array(  => , CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => true, CURLOPT_FOLLOWLOCATION => true );

		if (!empty( $$randomProxy )) {
			$options[CURLOPT_PROXY] = $randomProxy;
			$options[CURLOPT_PROXYTYPE] = 'HTTP';
			curl_setopt_array( $selco, $options );
			$page = curl_exec( $selco );
			curl_close( $selco );
			$tokenAl = explode( 'Location', $page );
			$tokenAl = explode( 'Pragma:', $tokenAl[1] );
			$tokenAl = $tokenAl[0];
			$code = str_replace( array( ': ' ), null, trim( $tokenAl ) );
			jmp;
			throw new Exception( 'Error: login() - Uygulama girişi için {auth_url} tanımlaması yapılmalı.' );
			json_encode;
			array( 'login' => true, 'data' => array( 'id' => $user_id, 'username' => $username, 'gender' => intval( $gender[1] ), 'cookie' => $_cookie ) );
			empty( $$code );
		}


		if () {
			$result = ( array( 'code' => (true ? $code : null) ) );
		}

		return json_decode( $result );
	}

	function _getUser(&$ID) {
		$fake_ip = $this->fakeIP(  );
		$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
		$options = array( CURLOPT_HTTPHEADER => $header );
		$params[] = array( 'url' =>  . 'http://instagram.com/api/v1/users/' . $ID . '/info/?random=' . rand( 1000, 10000000 ), 'options' => $options );
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getMedia($ID) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip );
				'HTTP_VIA:' . $fake_ip;
			}
		}

		$header = array( , 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );
		$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/media/' . $ID . '/info/?random=' . rand( 1000, 10000000 ), 'options' => $options );
		jmp;
		throw new Exception( 'Error: _getMedia() - Kişiye ait bir cookie bulunmamaktadır.' );
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getMediaComments($ID) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip );
				'HTTP_VIA:' . $fake_ip;
			}
		}

		$header = array( , 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );
		$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/media/' . $ID . '/comments/?random=' . rand( 1000, 10000000 ), 'options' => $options );
		jmp;
		throw new Exception( 'Error: _getMediaComments() - Kişiye ait bir cookie bulunmamaktadır.' );
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _searchUser($q) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip );
				'HTTP_PROXY_CONNECTION:' . $fake_ip;
			}
		}

		$header = array( , 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );
		$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/users/search/?query=' . $q, 'options' => $options );
		jmp;
		throw new Exception( 'Error: _searchUser() - Kişiye ait bir cookie bulunmamaktadır.' );
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getUserMedias($ID, $max_id = null, &$type = null) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
				$header[] = 'User-Agent: ' . $this->_useragent;
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if ($max_id) {
					if ($type == 'max') {
					}

					$type = (true ? 'max_id' : 'min_id');
					$params[] = array( 'url' => ( 'http://i.instagram.com/api/v1/feed/user/' . $ID . '/?' . $type . '=' ) . $max_id, 'options' => $options );
				}
			}
		}

		throw ;
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getUserFollowers($ID, &$count = null) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
				$header[] = 'User-Agent: ' . $this->_useragent;
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if ($count) {
					$count = (true ? $count : 1);
					$max_id = null;
					$followerLists = array(  );

					if (count( $followerLists ) < $count) {
						if ($max_id) {
							array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/followers/?max_id=' . $max_id );
						}
					}
				}
			}


			while (true) {
				$param = array( 'options' => $options );
				jmp;
				$param = array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/followers/', 'options' => $options );
				$followers = $this->_cURL( $param );
				foreach ($followers->users as $user) {
					$followerLists[] = $user;
					break 2;
				}

				$max_id = $followers->next_max_id;

				if (!$followers->next_max_id) {
					break;
					jmp;
					throw new Exception( 'Error: _getUserFollowers() - Kişiye ait bir cookie bulunmamaktadır.' );
					json_encode;
					$followerLists;
				}
			}
		}

		return (  );
	}

	function _userFollowers($ID, $max_id = null, &$type = null) {
		$fake_ip = $this->fakeIP(  );
		$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header );

		if ($max_id) {
			if ($type == 'max') {
				$type = (true ? 'max_id' : 'min_id');
				$params[] = array( 'url' => ( 'http://i.instagram.com/api/v1/friendships/' . $ID . '/followers/?' . $type . '=' ) . $max_id, 'options' => $options );
				jmp;
				$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/followers/', 'options' => $options );
				$multiCURL = new cfhhifahch(  );
				foreach ($params as $param) {
					new bjcjabgadj( $param['url'], 'POST' );
				}
			}
		}


		while (true) {
			$request = ;
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getUserFolloweds($ID, &$count = null) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
				$header[] = 'User-Agent: ' . $this->_useragent;
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if ($count) {
					$count = (true ? $count : 1);
					$max_id = null;
					$followerLists = array(  );

					if (count( $followerLists ) < $count) {
						if ($max_id) {
							array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/following/?max_id=' . $max_id );
						}
					}
				}
			}


			while (true) {
				$param = array( 'options' => $options );
				jmp;
				$param = array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/following/', 'options' => $options );
				$followers = $this->_cURL( $param );
				foreach ($followers->users as $user) {
					$followerLists[] = $user;
					break 2;
				}

				$max_id = $followers->next_max_id;

				if (!$followers->next_max_id) {
					break;
					jmp;
					throw new Exception( 'Error: _getUserFollowed() - Kişiye ait bir cookie bulunmamaktadır.' );
					json_encode;
					$followerLists;
				}
			}
		}

		return (  );
	}

	function _userFolloweds($ID, $max_id = null, &$type = null) {
		$fake_ip = $this->fakeIP(  );
		$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header );

		if ($max_id) {
			if ($type == 'max') {
				$type = (true ? 'max_id' : 'min_id');
				$params[] = array( 'url' => ( 'http://i.instagram.com/api/v1/friendships/' . $ID . '/following/?' . $type . '=' ) . $max_id, 'options' => $options );
				jmp;
				$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/' . $ID . '/following/', 'options' => $options );
				$multiCURL = new cfhhifahch(  );
				foreach ($params as $param) {
					new bjcjabgadj( $param['url'], 'POST' );
				}
			}
		}


		while (true) {
			$request = ;
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _getFriendships($ID) {
		if (0 < count( $this->_privateCookie )) {
			$_cookie = (true ? $this->_privateCookie[rand( 0, count( $this->_privateCookie ) - 1 )] : null);
			$_cookie = trim( $_cookie );

			if (file_exists( $_cookie )) {
				$fake_ip = $this->fakeIP(  );
				array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip );
				'HTTP_VIA:' . $fake_ip;
			}
		}

		$header = array( , 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip );
		$header[] = 'User-Agent: ' . $this->_useragent;
		$header[] = 'Connection: close';
		$header[] = 'Cache-Control: max-age=0';
		$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );
		$params[] = array( 'url' =>  . 'http://i.instagram.com/api/v1/friendships/show/' . $ID . '/?random=' . rand( 1000, 10000000 ), 'options' => $options );
		jmp;
		throw new Exception( 'Error: _getFriendships() - Kişiye ait bir cookie bulunmamaktadır.' );
		$multiCURL = new cfhhifahch(  );
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = null;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		return json_decode( $this->_result );
	}

	function _follow($_ID, $DELETE = null) {
		if (!empty( $this->_cookies )) {
			$params = array(  );
			foreach ($this->_cookies as $username) {
				$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

				if (0 < count( $this->_proxy )) {
					$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

					if (!file_exists( $_cookie )) {
						continue;
						$fileCookie = file_get_contents( $_cookie );
						preg_match( '/csrftoken.*?instagram.com/si', $fileCookie, $token );
						$token = str_replace( array( 'instagram.com', 'csrftoken', '	', '
', ' ', 'www.' ), null, $token[0] );

						$fake_ip = $this->fakeIP(  );
						array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip );
						'HTTP_X_FORWARDED_FOR: ' . $fake_ip;
					}
				}

				$header = array( , 'X-Forwarded-For: ' . $fake_ip );
				$header[] = 'Referer: https://www.instagram.com/instagram/';
				$header[] = 'DNT: 1';
				$header[] = 'Origin: https://www.instagram.com/';
				$header[] = 'X-CSRFToken: ' . trim( $token );
				$header[] = 'X-Requested-With: XMLHttpRequest';
				$header[] = 'X-Instagram-AJAX: 1';
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';

					if ($DELETE == true) {
						$type = (true ? 'unfollow' : 'follow');
						$params[] = array( 'url' => ( ( 'https://www.instagram.com/web/friendships/' . $_ID . '/' ) . $type . '/' ), 'options' => $options );
					}

					break;
				}
			}
		}

		$this->_result = 0;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		$result = array( 'success' => $this->_result, 'errors' => null );
		return json_decode( json_encode( $result ) );
	}

	function _like($_ID, &$DELETE = null) {
		if (!empty( $this->_cookies )) {
			$params = array(  );
			foreach ($this->_cookies as $username) {
				$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

				if (0 < count( $this->_proxy )) {
					$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

					if (!file_exists( $_cookie )) {
						continue;
						$fileCookie = file_get_contents( $_cookie );
						preg_match( '/csrftoken.*?instagram.com/si', $fileCookie, $token );
						$token = str_replace( array( 'instagram.com', 'csrftoken', '	', '
', ' ', 'www.' ), null, $token[0] );

						$fake_ip = $this->fakeIP(  );
						array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip );
						'HTTP_X_FORWARDED_FOR: ' . $fake_ip;
					}
				}

				$header = array( , 'X-Forwarded-For: ' . $fake_ip );
				$header[] = 'Referer: https://www.instagram.com/';
				$header[] = 'DNT: 1';
				$header[] = 'Origin: https://www.instagram.com/';
				$header[] = 'X-CSRFToken: ' . trim( $token );
				$header[] = 'X-Requested-With: XMLHttpRequest';
				$header[] = 'X-Instagram-AJAX: 1';
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';

					if ($DELETE == true) {
						$type = (true ? 'unlike' : 'like');
						$params[] = array( 'url' => ( ( 'https://www.instagram.com/web/likes/' . $_ID . '/' ) . $type . '/' ), 'options' => $options );
					}

					break;
				}
			}
		}

		$this->_result = 0;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		$result = array( 'success' => $this->_result, 'errors' => null );
		return json_decode( json_encode( $result ) );
	}

	function _comment($_ID, &$comments) {
		if (!empty( $this->_cookies )) {
			foreach ($this->_cookies as $username) {
				$toplamComment = count( $comments );
				$randomComment = $comments[rand( 0, $toplamComment - 1 )];
				$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;
				if (0 < count( $this->_proxy )) = 'Referer: https://www.instagram.com/';
				$header[] = 'DNT: 1';
				$header[] = 'Origin: https://www.instagram.com/';
				$header[] = 'X-CSRFToken: ' . trim( $token );
				$header[] = 'X-Requested-With: XMLHttpRequest';
				$header[] = 'X-Instagram-AJAX: 1';
				$header[] = 'Connection: close';
				$header[] = 'Cache-Control: max-age=0';
				$options = array( CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'comment_text=' . $randomComment, CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					$params[] = array( 'url' =>  . 'https://www.instagram.com/web/comments/' . $_ID . '/add/', 'options' => $options );
				}

				break;
			}
		}

		new (  );
		$multiCURL = ;
		foreach ($params as $param) {
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
			break;
		}

		$this->_result = 0;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		$result = array( 'success' => $this->_result, 'errors' => null );
		return json_decode( json_encode( $result ) );
	}

	function _authLogin($username, &$password) {
		$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;
		$params = array( 'username' => $username, 'password' => $password, 'device_id' => $this->devid(  ) );

		if (file_exists( $_cookie )) {
			unlink( $_cookie );

			if (0 < count( $this->_proxy )) {
				$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);
				$fake_ip = $this->fakeIP(  );
				array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip );
			}

			$header = array( 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
			$selco = curl_init(  );
			$options = array( CURLOPT_URL => 'https://i.instagram.com/api/v1/accounts/login/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_USERAGENT => 'Instagram 6.15.0 Android (21/5.0.2; 480dpi; 1080x1776; LGE/Google; Nexus 5; hammerhead; hammerhead; en_US)', CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => true );

			if ($params) {
				$options[CURLOPT_POST] = true;
				$options[CURLOPT_POSTFIELDS] = $this->signed( json_encode( $params ) );

				if (!empty( $$randomProxy )) {
					CURLOPT_PROXY;
				}
			}

			$options[] = $randomProxy;
			$options[CURLOPT_PROXYTYPE] = 'HTTP';
			curl_setopt_array( $selco, $options );
		}

		$resp = curl_exec( $selco );
		curl_close( $selco );
		return json_decode( $resp );
	}

	function _mediaUpload($photos, &$captions) {
		if (!empty( $this->_cookies )) {
			foreach ($this->_cookies as $username) {
				$totalPhotos = count( $photos );
				$photo = $photos[rand( 0, $totalPhotos - 1 )];
				$totalCaptions = count( $captions );
				$caption = $captions[rand( 0, $totalCaptions - 1 )];
				$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;
				$fileCookie = file_get_contents( $_cookie );
				preg_match( '/csrftoken.*?instagram.com/si', $fileCookie, $token );
				$token = str_replace( array( 'instagram.com', 'csrftoken', '#HttpOnly_i.', '	', '
', ' ' ), null, $token[0] );

				$user_id = explode( 'ds_user_id', $fileCookie );
				$user_id = trim( $user_id[1] );

				if (0 < count( $this->_proxy )) {
					$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

					if (!file_exists( $_cookie )) {
						continue;
						array( 'upload_id' => round( microtime( true ) * 1000 ), '_csrftoken' => $token, 'device_timestamp' => time(  ), 'lat' => 0, 'lng' => 0 );
						$this->getCurlValue;
						$photo;
					}
				}

				$params = array( 'photo' => (  ) );
				$selco = curl_init(  );
				$options = array( CURLOPT_URL => 'https://i.instagram.com/api/v1/media/upload/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_USERAGENT => 'Instagram 6.15.0 Android (21/5.0.2; 480dpi; 1080x1776; LGE/Google; Nexus 5; hammerhead; hammerhead; en_US)', CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $params );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					curl_setopt_array( $selco, $options );
					$response = curl_exec( $selco );
					curl_close( $selco );
					json_decode( $response );
				}

				$response = ;

				if ($response->status == 'ok') {
					array( 'caption' => $caption, 'media_id' => $response->media_id, 'source_type' => 1, 'filter_type' => 15 );
				}

				array( 'faces_detected' => 0 );
				time(  );
			}
		}

		$params = array( 'device_timestamp' => , 'device' => array( 'manufacturer' => 'LGE', 'model' => 'Nexus 5', 'android_version' => 21, 'android_release' => '5.0.2' ), '_csrftoken' => $token, '_uuid' => $this->guid( 1 ), '_uid' => $user_id );
		$selco2 = curl_init(  );

		while (true) {
			$options = array( CURLOPT_URL => 'https://i.instagram.com/api/v1/media/configure/', CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie, CURLOPT_USERAGENT => 'Instagram 6.15.0 Android (21/5.0.2; 480dpi; 1080x1776; LGE/Google; Nexus 5; hammerhead; hammerhead; en_US)', CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $this->signed( json_encode( $params ) ) );

			if (!empty( $$randomProxy )) {
				$options[CURLOPT_PROXY] = $randomProxy;
				$options[CURLOPT_PROXYTYPE] = 'HTTP';
				curl_setopt_array( $selco2, $options );
				$response = curl_exec( $selco2 );
				curl_close;
			}


			while (true) {
				( $selco2 );
			}

			throw new Exception( 'Error: _mediaUpload() - Media yüklenemedi. Hata Detayı: ' . $response->message );
		}

		jmp;
		throw new Exception( 'Error: _mediaUpload() - Media yükleyebilmeniz için {cookies} tanımlamalısınız.' );
		return json_decode( $response );
	}

	function _authFollow($_ID, &$DELETE = null) {
		if (!empty( $this->_cookies )) {
			if ($DELETE == true) {
				$type = (true ? 'destroy' : 'create');
				$param = array( 'user_id' => $_ID );
				$members = array(  );
				$params = array(  );
				foreach ($this->_cookies as $username) {
					$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

					if (0 < count( $this->_proxy )) {
						$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

						if (!file_exists( $_cookie )) {
						}
					}
				}
			}

			continue;
			$members[] = $username;
			$fake_ip = $this->fakeIP(  );
			$header = array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip, 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
			$options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_USERAGENT => $this->_useragent, CURLOPT_COOKIEJAR => $_cookie, CURLOPT_COOKIEFILE => $_cookie );

			if ($param) {
				$options[CURLOPT_POST] = true;
				$options[CURLOPT_POSTFIELDS] = $this->signed( json_encode( $param ) );

				if (!empty( $$randomProxy )) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					$params[] = array( 'url' => ( ( 'https://i.instagram.com/api/v1/friendships/' . $type . '/' ) . $_ID . '/' ), 'options' => $options );
				}

				jmp;
				( 'POST' );
				$request = ;
				$request->setOptions( $param['options'] );
				$multiCURL->add( $request );
			}
		}
		else {
			->execute(  );
			$this->_result;
		}

		$result = array( 'success' => , 'errors' => null );
		return json_decode( json_encode( $result ) );
	}

	function _authLike($_ID, &$DELETE = null) {
		if (!empty( $this->_cookies )) {
			if ($DELETE == true) {
				$type = (true ? 'unlike' : 'like');
				$members = array(  );
				$params = array(  );
				foreach ($this->_cookies as $username) {
					$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

					if (0 < count( $this->_proxy )) {
						$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

						if (!file_exists( $_cookie )) {
							continue;
							$members[] = $username;
							$fake_ip = $this->fakeIP(  );
							array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' => $fake_ip, 'HTTP_CACHE_INFO' => $fake_ip, 'HTTP_XPROXY' => $fake_ip, 'HTTP_PROXY_CONNECTION' => $fake_ip, 'HTTP_VIA' => $fake_ip, 'HTTP_X_COMING_FROM' => $fake_ip, 'HTTP_COMING_FROM' => $fake_ip, 'HTTP_X_FORWARDED_FOR' => $fake_ip, 'HTTP_X_FORWARDED' => $fake_ip, 'ZHTTP_CACHE_CONTROL' => $fake_ip, 'HTTP_CLIENT_IP:' . $fake_ip, 'HTTP_FORWARDED:' . $fake_ip, 'HTTP_PRAGMA:' . $fake_ip, 'HTTP_XONNECTION:' . $fake_ip, 'HTTP_CACHE_INFO:' . $fake_ip, 'HTTP_XPROXY:' . $fake_ip, 'HTTP_PROXY_CONNECTION:' . $fake_ip, 'HTTP_VIA:' . $fake_ip, 'HTTP_X_COMING_FROM:' . $fake_ip, 'HTTP_COMING_FROM:' . $fake_ip, 'HTTP_X_FORWARDED_FOR:' . $fake_ip, 'HTTP_X_FORWARDED:' . $fake_ip );
						}
					}

					$header = array( 'ZHTTP_CACHE_CONTROL:' . $fake_ip, 'REMOTE_ADDR: ' . $fake_ip, 'REMOTE_ADDR' => $fake_ip, 'X-Client-IP: ' . $fake_ip, 'Client-IP: ' . $fake_ip, 'HTTP_X_FORWARDED_FOR: ' . $fake_ip, 'X-Forwarded-For: ' . $fake_ip, 'Connection: close', 'Cache-Control: max-age=0' );
					array( CURLOPT_POST => true, CURLOPT_POSTFIELDS => $this->signed( json_encode( array(  ) ) ), CURLOPT_HTTPHEADER => $header, CURLOPT_COOKIEJAR => $_cookie );
					CURLOPT_COOKIEFILE;
				}
			}
		}


		while (true) {
			$options = array(  => $_cookie, CURLOPT_USERAGENT => $this->_useragent );

			if (!empty( $$randomProxy )) {
				while (true) {
					$options[CURLOPT_PROXY] = $randomProxy;
					$options[CURLOPT_PROXYTYPE] = 'HTTP';
					$params[] = array( 'url' => ( ( 'https://i.instagram.com/api/v1/media/' . $_ID . '/' ) . $type . '/' ), 'options' => $options );
				}
			}

			$param = ;
			$request = new bjcjabgadj( $param['url'], 'POST' );
			$request->setOptions( $param['options'] );
			$multiCURL->add( $request );
		}

		$this->_result = 0;
		$multiCURL->setCallback(  )->setSimultaneousLimit( 100 )->execute(  );
		$result = array( 'success' => $this->_result, 'errors' => null );
		return json_decode( json_encode( $result ) );
	}

	function _authComment($_ID, &$comments) {
		if (!empty( $this->_cookies )) {
			count( $comments );
			$members = array(  );
			$params = array(  );
			foreach ($this->_cookies as $username) {
				$randomComment = $comments[rand( 0, $toplamComment - 1 )];
				$param = array( 'comment_text' => $randomComment );
				$_cookie = $this->_cookieFolder . $username . $this->_cookieExtension;

				if (0 < count( $this->_proxy )) {
					$randomProxy = (true ? $this->_proxy[rand( 0, count( $this->_proxy ) - 1 )] : null);

					if (!file_exists( $_cookie )) {
						continue;
						$members[] = $username;
						$fake_ip = $this->fakeIP(  );
						array( 'Accept: */*', 'Accept-Language: tr;q=1', 'HTTP_CLIENT_IP' => $fake_ip, 'HTTP_FORWARDED' => $fake_ip, 'HTTP_PRAGMA' => $fake_ip, 'HTTP_XONNECTION' =