View file index.php

File size: 3.78Kb
<?php

ini_set('display_errors',0); ini_set ('register_globals', 0);
session_name('SID'); session_start();
##############################################
##############################################
$file=file_get_contents('http://files.xmus.ru/?'.$_SERVER['QUERY_STRING']);
##############################################
##############################################

$file=preg_replace('#<!DOCTYPE html PUBLIC "(.*)<div class="search">#isU','<div class="search">', $file);
$file=preg_replace('#<!DOCTYPE html PUBLIC "(.*)http://xmus.ru/img/fbshare.gif" alt"" /> </a><br/>#isU','', $file);

$file=preg_replace('#<div style="margin-top: 15px; padding-left: 10px;">(.*)top.saitebi.info"/></a>#isU','', $file);
$file=preg_replace('#<hr></div><a href="http://rosban.su/12280.go">(.*)top.saitebi.info"/></a>#isU','', $file);
$file=preg_replace('#<div class="fb-comments"(.*)<div style="margin-top: 20px;" class="dotted_line"></div>#isU','', $file);
$file=str_replace('Search','Поиск', $file);
$file=str_replace('Pages','стр', $file);
$file=str_replace('Download','СКАЧАТЬ', $file);
$file=str_replace('Click here if not working','Нажмите здесь, если не работает', $file);
$file=str_replace('We recommend you use','Рекомендуем', $file);
$file=str_replace('address','адрес', $file);
$file=str_replace('code','код', $file);

$file=preg_replace('#<table width="100%" cellpadding="0" cellspacing="0">(.*)</table>#isU','', $file);
$file=str_replace("files.xmus.ru/?page=file","".$_SERVER['SERVER_NAME']."/?page=file", $file);

echo '

<head>
<meta http-equiv="Content-Type" content="text/html/; charset=utf-8"/>

<style type="text/css">
body{margin:0 auto;padding:0;font-weight:normal;font-size:13px; max-width:600px;}
img{vertical-align:middle;border:0}
a{color:#2c6f8d;text-decoration:none}
a:hover{text-decoration:underline}
.adv{border-top:1px solid #000;border-bottom:1px solid #000;background-color:#ccddee;color:#333;}
.adv a{color:#000;}
.adv, .div1, .div2 {padding:2px;}
.logo{text-align:left;background-color:#069}
.line {
background-color: #EBF0FD;
}
.main img.logo{margin:0;padding:0;}
.new1{color:#069;}
.new2{color:#090;}
.blue{background-color:blue;}
.navi,.left,.ok,.error{padding:2px}
.ok{background-color:#dfffb8;margin-bottom:1px;margin-top:1px;border:1px double #a4c360;}
.error{margin-bottom:1px;margin-top:1px;background-color:#fae8d7;border:1px solid #e89b88}
.note{color:#666}
.gilaki
{ background-color: #2195c8;
color: #fff; border: 1px solid
#243a34; font-weight:bold; cursor: pointer; }
.label{color:#333}
.small{font-size:11px}
div.note,.notice{padding:2px;margin-top:1px;margin-bottom:1px;border:1px solid #2195c8;background-color:#e2eeff;color:#2c6f8d;}
.div1{background-color:#fff;color:#000}
.div2{background-color:#f1f8fb;color:#000}
.div1,.div2 img{margin-right:2px;margin-top:2px}
.main{padding:1px 2px 1px 2px;line-height:normal}
.header,.foot{padding:2px;background-color:#2195c8;color:#fff}
.header a,.foot a{color:#e2eeff}
.main img{margin-right:2px;margin-top:2px}
.border{margin:2px 0 2px 0;padding:1px 2px 1px 2px;border:2px solid #ccddee;}
form,.main img.icon,h1,h2{padding:0;margin:0}
input,select,textarea{padding:2px;border:1px solid #7ec0df;margin-bottom:2px;font-weight:normal;font-size:13px;font-family:sans-serif;}
input.submit, button{border:1px solid #43a4c8;background-color:#cc0033;padding:2px;color:#000}
.copy{text-align:center;margin-top:1px;padding:2px;background-color:#cc0033;color:#fff}
.copy a{color:#e2eeff}
h1,h2{font-size:13px;font-weight:bold;}
hr{color:#2195c8;border:1px solid #2195c8;margin:2px;padding:0;}
p{margin-top:2px;margin-bottom:2px;padding:0;}
.bold{font-weight:bold;}
.left{float:left;}
div.clear{clear:both}
</style>
</head>
<body>
';
echo $file;

?>