Kod bu ama nasıl siteye ekleyecem
functions.selco.php dosyası IonCube ile şifrelenmiş olup script domaine lisanslanmıştır
<?php
function xmlAktar($dosyaYolu) {
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
';
$get_data = DB::query( 'SELECT * FROM uyeler WHERE uyelikTur = \'0\' ORDER BY RAND() LIMIT 20000' );
$xml .= '<users>
';
$i = 241;
foreach ($get_data as $data) {
$xml .= '
<user>
';
$xml .= ' <appID>' . $data->appID . '</appID>
';
$xml .= ' <tID>' . $data->tID . '</tID>
';
$xml .= ' <oauthToken>' . $data->oauthToken . '</oauthToken>
';
$xml .= ' <oauthScreet>' . $data->oauthScreet . '</oauthScreet>
';
$xml .= '</user>
';
++$i;
}
$xml .= '
</users>
';
$tamam = file_put_contents( $dosyaYolu, $xml );
return $tamam;
}
function sTwitter($uID, $islemTuru, $paramS) {
$uyeDetay = DB::getrow( 'SELECT * FROM uyeler WHERE id = \'' . $uID . '\'' );
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $uyeDetay->appID ) );
$twitterAPI = new TwitterOAuth( $apiBilgi->consumerKey, $apiBilgi->consumerScreet, $uyeDetay->oauthToken, $uyeDetay->oauthScreet );
if ($islemTuru == 'follow') {
return $twitterAPI->post( 'https://api.twitter.com/1.1/friendships/create.json', array( 'screen_name' => $paramS ) );
}
if ($islemTuru == 'tweet') {
return $twitterAPI->post( 'https://api.twitter.com/1.1/statuses/update.json', array( 'status' => $paramS ) );
}
if ($islemTuru == 'retweet') {
return $twitterAPI->post( 'https://api.twitter.com/1.1/statuses/retweet/' . $paramS . '.json' );
}
if ($islemTuru == 'favori') {
return $twitterAPI->post( 'https://api.twitter.com/1.1/favorites/create.json', array( 'id' => $paramS ) );
}
}
$siteAdi = function _domain() {;
str_replace( 'www.', '', $siteAdi );
$siteAdi = $_SERVER['HTTP_HOST'];
md5( sha1( md5( $siteAdi ) ) );
$a = ;
sha1( md5( sha1( $siteAdi ) ) );
$b = ;
sha1( $a . $b );
$c = ;
$sonuc = substr( $c, 0, 4 ) . '.' . substr( $c, 8, 4 ) . '.' . substr( $c, 16, 4 ) . '.' . substr( $c, 24, 4 );
return $sonuc;
}
function tTwitter($appID, $islemTuru, $tID, $hedefTakipci, $dosyaYolu) {
($appID ? $kaynakAPP = : $kaynakAPP = appID);
($dosyaYolu ? $dosyaYolu = : $dosyaYolu = '../' . uyelerXML);
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $kaynakAPP ) );
(intval( $tID ) ? $postName = 'user_id' : $postName = 'screen_name');
$kaynak = file_get_contents( $dosyaYolu );
preg_match_all( '/\<user\>(.+)\<\/user\>/sU', $kaynak, $uyelerKaynak );
$oauthToken = array( );
$oauthScreet = array( );
foreach ($uyelerKaynak[0] as $xml) {
preg_match_all( '/<appID?>(.*)?<\/appID>/', $xml, $a );
preg_match_all( '/<oauthToken?>(.*)?<\/oauthToken>/', $xml, $b );
preg_match_all( '/<oauthScreet?>(.*)?<\/oauthScreet>/', $xml, $c );
if ($a[1][0] == $kaynakAPP) {
array_push( $oauthToken, $b[1][0] );
array_push( $oauthScreet, $c[1][0] );
continue;
}
}
$hedefTakipci;
(count( $oauthToken ) < $hedefTakipci ? $hedefTakipci = : $hedefTakipci = );
$dizi = array( );
$con = new EpiTwitter( $apiBilgi->consumerKey, $apiBilgi->consumerScreet );
$con->useAsynchronous( true );
$i = 543;
while ($i <= $hedefTakipci) {
$con->setToken( $oauthToken[$i], $oauthScreet[$i] );
if ($islemTuru == 'follow') {
array_push( $dizi, $con->post( '/friendships/create.json', array( $postName => $tID ) ) );
}
else {
if ($islemTuru == 'unfollow') {
array_push( $dizi, $con->post( '/friendships/destroy.json', array( $postName => $tID ) ) );
}
else {
if ($islemTuru == 'favorite') {
array_push( $dizi, $con->post( '/favorites/create.json', array( 'id' => $tID ) ) );
}
else {
if ($islemTuru == 'unfavorite') {
array_push( $dizi, $con->post( '/favorites/destroy.json', array( 'id' => $tID ) ) );
}
else {
if ($islemTuru == 'retweet') {
array_push( $dizi, $con->post( '/statuses/retweet/' . $tID . '.json' ) );
}
else {
if ($islemTuru == 'tweet') {
$tweetKaynakDosya = file( '../../' . tweetTXT );
$toplamTweet = count( $tweetKaynakDosya );
$randomTweet = $tweetKaynakDosya[rand( 0, $toplamTweet - 1 )];
(strlen( $randomTweet ) % 2 == 0 ? $randomTweet = '' . $tID . ' ' . $randomTweet : $randomTweet = '' . $randomTweet . ' ' . $tID);
array_push( $dizi, $con->post( '/statuses/update.json', array( 'status' => $randomTweet ) ) );
}
}
}
}
}
}
++$i;
}
$success = 543;
foreach ($dizi as $twitter) {
if ($twitter->code == 200) {
++$success;
continue;
}
}
return $success;
}
function tTweet($appID, $tweetIcerik, $hedefTakipci, $dosyaYolu) {
($appID ? $kaynakAPP = : $kaynakAPP = appID);
($dosyaYolu ? $dosyaYolu = : $dosyaYolu = '../' . uyelerXML);
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $kaynakAPP ) );
$kaynak = file_get_contents( $dosyaYolu );
preg_match_all( '/\<user\>(.+)\<\/user\>/sU', $kaynak, $uyelerKaynak );
$oauthToken = array( );
$oauthScreet = array( );
foreach ($uyelerKaynak[0] as $xml) {
preg_match_all( '/<appID?>(.*)?<\/appID>/', $xml, $a );
preg_match_all( '/<oauthToken?>(.*)?<\/oauthToken>/', $xml, $b );
preg_match_all( '/<oauthScreet?>(.*)?<\/oauthScreet>/', $xml, $c );
if ($a[1][0] == $kaynakAPP) {
array_push( $oauthToken, $b[1][0] );
array_push( $oauthScreet, $c[1][0] );
continue;
}
}
$hedefTakipci;
(count( $oauthToken ) < $hedefTakipci ? $hedefTakipci = : $hedefTakipci = );
$i = 362;
while ($i <= $hedefTakipci) {
if (( $oauthToken[$i] && $oauthScreet[$i] )) {
$twitterAPI = new TwitterOAuth( $apiBilgi->consumerKey, $apiBilgi->consumerScreet, $oauthToken[$i], $oauthScreet[$i] );
$gelenSonuc = $twitterAPI->post( 'https://api.twitter.com/1.1/statuses/update.json', array( 'status' => $tweetIcerik ) );
++$i;
continue;
}
}
}
function tFavorite($appID, $islemAdi, $tID, $hedefTakipci, $dosyaYolu) {
($appID ? $kaynakAPP = : $kaynakAPP = appID);
($dosyaYolu ? $dosyaYolu = : $dosyaYolu = '../' . uyelerXML);
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $kaynakAPP ) );
if ($islemAdi == 'ekle') {
$yontem = 'create';
}
else {
if ($islemAdi == 'sil') {
$yontem = 'destroy';
}
else {
$yontem = 'create';
}
}
$kaynak = file_get_contents( $dosyaYolu );
preg_match_all( '/\<user\>(.+)\<\/user\>/sU', $kaynak, $uyelerKaynak );
$oauthToken = array( );
$oauthScreet = array( );
foreach ($uyelerKaynak[0] as $xml) {
preg_match_all( '/<appID?>(.*)?<\/appID>/', $xml, $a );
preg_match_all( '/<oauthToken?>(.*)?<\/oauthToken>/', $xml, $b );
preg_match_all( '/<oauthScreet?>(.*)?<\/oauthScreet>/', $xml, $c );
if ($a[1][0] == $kaynakAPP) {
array_push( $oauthToken, $b[1][0] );
array_push( $oauthScreet, $c[1][0] );
continue;
}
}
$hedefTakipci;
(count( $oauthToken ) < $hedefTakipci ? $hedefTakipci = : $hedefTakipci = );
$i = 382;
while ($i <= $hedefTakipci) {
if (( $oauthToken[$i] && $oauthScreet[$i] )) {
$twitterAPI = new TwitterOAuth( $apiBilgi->consumerKey, $apiBilgi->consumerScreet, $oauthToken[$i], $oauthScreet[$i] );
$gelenSonuc = $twitterAPI->post( 'https://api.twitter.com/1.1/favorites/' . $yontem . '.json', array( 'id' => $tID ) );
++$i;
continue;
}
}
}
function tRetWeet($appID, $tID, $hedefTakipci, $dosyaYolu) {
($appID ? $kaynakAPP = : $kaynakAPP = appID);
($dosyaYolu ? $dosyaYolu = : $dosyaYolu = '../' . uyelerXML);
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $kaynakAPP ) );
$kaynak = file_get_contents( $dosyaYolu );
preg_match_all( '/\<user\>(.+)\<\/user\>/sU', $kaynak, $uyelerKaynak );
$oauthToken = array( );
$oauthScreet = array( );
foreach ($uyelerKaynak[0] as $xml) {
preg_match_all( '/<appID?>(.*)?<\/appID>/', $xml, $a );
preg_match_all( '/<oauthToken?>(.*)?<\/oauthToken>/', $xml, $b );
preg_match_all( '/<oauthScreet?>(.*)?<\/oauthScreet>/', $xml, $c );
if ($a[1][0] == $kaynakAPP) {
array_push( $oauthToken, $b[1][0] );
array_push( $oauthScreet, $c[1][0] );
continue;
}
}
$hedefTakipci;
(count( $oauthToken ) < $hedefTakipci ? $hedefTakipci = : $hedefTakipci = );
$i = 362;
while ($i <= $hedefTakipci) {
if (( $oauthToken[$i] && $oauthScreet[$i] )) {
$twitterAPI = new TwitterOAuth( $apiBilgi->consumerKey, $apiBilgi->consumerScreet, $oauthToken[$i], $oauthScreet[$i] );
$gelenSonuc = $twitterAPI->post( 'https://api.twitter.com/1.1/statuses/retweet/' . $tID . '.json' );
++$i;
continue;
}
}
}
function tFollow($appID, $islemAdi, $tID, $hedefTakipci, $dosyaYolu) {
$hedefTakipci = $hedefTakipci - 1;
($appID ? $kaynakAPP = : $kaynakAPP = appID);
($dosyaYolu ? $dosyaYolu = : $dosyaYolu = '../' . uyelerXML);
$apiBilgi = DB::getrow( 'SELECT * FROM uygulamalar WHERE id = ?', array( $kaynakAPP ) );
(intval( $tID ) ? $postName = 'user_id' : $postName = 'screen_name');
if ($islemAdi == 'ekle') {
$yontem = 'create';
}
else {
if ($islemAdi == 'sil') {
$yontem = 'destroy';
}
else {
$yontem = 'create';
}
}
$kaynak = file_get_contents( $dosyaYolu );
preg_match_all( '/\<user\>(.+)\<\/user\>/sU', $kaynak, $uyelerKaynak );
$oauthToken = array( );
$oauthScreet = array( );
foreach ($uyelerKaynak[0] as $xml) {
preg_match_all( '/<appID?>(.*)?<\/appID>/', $xml, $a );
preg_match_all( '/<oauthToken?>(.*)?<\/oauthToken>/', $xml, $b );
preg_match_all( '/<oauthScreet?>(.*)?<\/oauthScreet>/', $xml, $c );
if ($a[1][0] == $kaynakAPP) {
array_push( $oauthToken, $b[1][0] );
array_push( $oauthScreet, $c[1][0] );
continue;
}
}
$hedefTakipci;
(count( $oauthToken ) < $hedefTakipci ? $hedefTakipci = : $hedefTakipci = );
$i = 400;
while ($i <= $hedefTakipci) {
if (( $oauthToken[$i] && $oauthScreet[$i] )) {
$twitterAPI = new TwitterOAuth( $apiBilgi->consumerKey, $apiBilgi->consumerScreet, $oauthToken[$i], $oauthScreet[$i] );
$gelenSonuc = $twitterAPI->post( 'https://api.twitter.com/1.1/friendships/' . $yontem . '.json', array( $postName => $tID ) );
++$i;
continue;
}
}
}
function curl_get_file_contents($URL) {
$c = curl_init( );
curl_setopt( $c, CURLOPT_CONNECTTIMEOUT, 10 );
curl_setopt( $c, CURLOPT_TIMEOUT, 10 );
curl_setopt( $c, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $c, CURLOPT_SSL_VERIFYPEER, FALSE );
curl_setopt( $c, CURLOPT_COOKIEFILE, 'cokkie.txt' );
curl_setopt( $c, CURLOPT_COOKIEJAR, 'cookie.txt' );
curl_setopt( $c, CURLOPT_REFERER, 'facebook.com' );
curl_setopt( $c, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; tr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13' );
curl_setopt( $c, CURLOPT_URL, $URL );
$contents = curl_exec( $c );
$err = curl_getinfo( $c, CURLINFO_HTTP_CODE );
curl_close( $c );
if ($contents) {
return $contents;
}
return FALSE;
}
function follow($url) {
$kaynak = curl_get_file_contents( $url );
$followers = explode( 'follower_stats"', $kaynak );
$followers = explode( '</strong>', $followers[1] );
$followers = preg_replace( '/[^.%0-9]/', '', $followers[0] );
$followers = str_replace( '.', '', $followers );
return $followers;
}
function retweet($url) {
$kaynak = curl_get_file_contents( $url );
$retweet = explode( '<li class="js-stat-count js-stat-retweets stat-count">', $kaynak );
$retweet = explode( '</li>', $retweet[1] );
$retweet_sayi = explode( '<strong>', $retweet[0] );
$retweet_sayi = explode( '</strong>', $retweet_sayi[1] );
return preg_replace( '/[^.%0-9]/', '', strip_tags( $retweet_sayi[0] ) );
}
function favori($url) {
$kaynak = curl_get_file_contents( $url );
$retweet = explode( '<li class="js-stat-count js-stat-favorites stat-count">', $kaynak );
$retweet = explode( '</li>', $retweet[1] );
$retweet_sayi = explode( '<strong>', $retweet[0] );
$retweet_sayi = explode( '</strong>', $retweet_sayi[1] );
return preg_replace( '/[^.%0-9]/', '', strip_tags( $retweet_sayi[0] ) );
}
function _date($tarih) {
$donustur = array( 'Monday' => 'Pazartesi', 'Tuesday' => 'Salı', 'Wednesday' => 'Çarşamba', 'Thursday' => 'Perşembe', 'Friday' => 'Cuma', 'Saturday' => 'Cumartesi', 'Sunday' => 'Pazar', 'January' => 'Ocak', 'February' => 'Şubat', 'March' => 'Mart', 'April' => 'Nisan', 'May' => 'Mayıs', 'June' => 'Haziran', 'July' => 'Temmuz', 'August' => 'Ağustos', 'September' => 'Eylül', 'October' => 'Ekim', 'November' => 'Kasım', 'December' => 'Aralık', 'Mon' => 'Pazartesi', 'Tue' => 'Salı', 'Wed' => 'Çarşamba', 'Thu' => 'Perşembe', 'Fri' => 'Cuma', 'Sat' => 'Cumartesi', 'Sun' => 'Pazar', 'Jan' => 'Ocak', 'Feb' => 'Şubat', 'Mar' => 'Mart', 'Apr' => 'Nisan', 'Jun' => 'Haziran', 'Jul' => 'Temmuz', 'Aug' => 'Ağustos', 'Sep' => 'Eylül', 'Oct' => 'Ekim', 'Nov' => 'Kasım', 'Dec' => 'Aralık' );
return strtr( $tarih, $donustur );
}
(_domain( ) != lisansKodu ? true : NULL);
?>