<?php /* Выше этой строки в файле ничего не должно быть */
$url='http://yarik42.ru/blog/tmp/morda.txt'; # Место хранения морды блога.
$file=$_s['logs'].'cash.blog.txt'; # Файл кэша.
$tm=60*60*0; # Пусть будет кэш на 8 часов.
if (file_exists($file) and filemtime($file)+$tm > $_s['unix'])
$c=file_get_contents($file);
else
file_put_contents($file,$c=file_get_contents($url));
$c=preg_replace('~<a ([^ >]+)>(.+)<\/a>~Usi','<a \1 target="_blank">\2</a>',$c);
$c=preg_replace('~<style type="text\/css">(.+)<\/style>~Usi','',$c);
$_s['content']='
<style type="text/css">
/* <![CDATA[ */
.postdate {
color:#656565;
margin:5px 10px;
text-align:right;
}
.anoncetxt {
margin:10px;
text-align:justify;
}
.anoncetxt img {
float:left;
border:0;
border-radius:10px;
box-shadow:3px 3px 5px #999;
-o-transform:scale(1);
-o-transition-duration:1s;
-webkit-box-shadow:3px 3px 5px #999;
-webkit-transform:scale(1);
-webkit-transition-duration:1s;
-moz-box-shadow:3px 3px 5px #999;
-moz-transform:scale(1);
-moz-transition-duration:1s;
opacity:0.9;
}
.anoncetxt img:hover {
-webkit-transform:scale(1.1);
-webkit-transition-duration:1s;
-webkit-box-shadow:3px 3px 10px gray;
-moz-transform:scale(1.1);
-moz-transition-duration:1s;
-moz-box-shadow:3px 3px 10px gray;
-o-transform:scale(1.1);
-o-transition-duration:1s;
box-shadow:3px 3px 10px gray;
opacity: 1;
}
.postbody img {margin:5px 20px 10px 10px;}
address {font-style:normal;margin:5px 15px;text-align:right;}
.ano {border-left:1px solid silver;margin:10px 20px;padding:0 20px;text-align:left;}
.ano a {display:block;color:#555;}
.postbody span {color:#a00;}
.postbody span:hover, .ano a:hover {color:blue;}
.postbody {margin:10px 0;}
.rightero {font-weight:normal;margin:15px 25px;text-align:right;}
.rightero a {background:#f2f2f2;border:#d5d5d5 1px solid;color:#45f;padding:4px;}
.rightero a:hover {border:#f00 1px solid;color:#f00;}
.rightero span {border:#f00 1px solid;padding:4px;}
.rightero a span {border:0;padding:0;}
/* ]]> */
</style>
<h2>Свежие статьи в блоге:</h2>'.$c;
$_s['title']='Новости блога Yarik42';
/* Ниже этой строки в файле ничего не должно быть. */ ?>