316 lines
15 KiB
PHP
316 lines
15 KiB
PHP
<?
|
||
# Yeah, that sucks, but it's pretty much all we need here
|
||
mysql_connect("localhost", "rock", "nla3YjQ0pL");
|
||
mysql_select_db("rock");
|
||
mysql_query("SET NAMES 'utf8';");
|
||
?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||
"http://www.w3.org/TR/html4/loose.dtd">
|
||
<HTML>
|
||
<HEAD><TITLE>WWW.ROCK.RU - Российский Рок-портал</TITLE>
|
||
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
|
||
<META content="Grave Digger, Elvenking, Martin Walkyier, Slash, Sonata Arctica" name="keywords">
|
||
<META content="WWW.ROCK.RU - посвящен его величеству Року! Подробнейшая информация как о легендах мирового и русского рока, так и молодых, но перспективных командах. Любителям MP3 предосталена довольно большая коллекция. Сайт ежедневно публикует последние новости рок-индустрии, информацию о предстоящих концертах, рецензии, статьи, интервью...Также к Вашим услугам мощный форум - место где Вы можите оттянуть душу и пообщяться с скаими же как и Вы любителями рока."
|
||
name="description">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta property="fb:admins" content="1137870918" />
|
||
<meta property="og:type" content="website"/>
|
||
<meta property="og:title" content="Российский Рок-портал"/>
|
||
<meta property="og:image" content="http://img.rock.ru/images/logo-square.jpg"/>
|
||
<meta property="og:url" content="http://rock.ru/"/>
|
||
<LINK href="http://rock.ru/style.main.css" rel=STYLESHEET type="TEXT/CSS">
|
||
<script src="http://rock.ru/buttons.js" type="text/javascript"></script>
|
||
<script src="http://yandex.st/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
|
||
<?/*<script type="text/javascript" src="http://rock.ru/flowplayer-3.1.4.min.js"></script>*/?>
|
||
<script type="text/javascript">
|
||
var _gaq = _gaq || [];
|
||
_gaq.push(['_setAccount', 'UA-883600-3']);
|
||
_gaq.push(['_setDomainName', '.rock.ru']);
|
||
_gaq.push(['_trackPageview']);
|
||
|
||
(function() {
|
||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||
})();
|
||
$(function(){
|
||
$('.fadein img:gt(0)').hide();
|
||
setInterval(function(){$('.fadein :first-child').hide().next('img').show().end().appendTo('.fadein');}, 3000);
|
||
});
|
||
</script>
|
||
</HEAD>
|
||
<BODY bgColor="#000000">
|
||
<table align="center" border="0" cellspacing="0" cellpadding="0" width="700">
|
||
<tr>
|
||
<td><IMG SRC="http://rock.ru/IMG/logotop.gif" WIDTH="700" HEIGHT="88" BORDER="0"></td>
|
||
</tr>
|
||
<tr>
|
||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||
<tr>
|
||
<td><A HREF="http://rock.ru/index.php" ONMOUSEOVER="SetImg('logo1','I1_1')" ONMOUSEOUT="SetImg('logo1','I1')"><IMG SRC="http://img.rock.ru/main/main.png" ALT="На главную страницу" WIDTH="92" HEIGHT="28" BORDER="0" name="logo1"></a></td>
|
||
<td><A HREF="http://rock.ru/news" ONMOUSEOVER="SetImg('logo2','I2_2')" ONMOUSEOUT="SetImg('logo2','I2')"><IMG SRC="http://img.rock.ru/main/news.png" ALT="Новости" WIDTH="93" HEIGHT="28" BORDER="0" name="logo2"></a></td>
|
||
<td><A HREF="http://rock.ru/reviews" ONMOUSEOVER="SetImg('logo3','I3_3')" ONMOUSEOUT="SetImg('logo3','I3')"><IMG SRC="http://img.rock.ru/main/reviews.png" ALT="Рецензии" WIDTH="99" HEIGHT="28" BORDER="0" name="logo3"></a></td>
|
||
<td><A HREF="http://rock.ru/hard.html" ONMOUSEOVER="SetImg('logo4','I4_4')" ONMOUSEOUT="SetImg('logo4','I4')"><IMG SRC="http://img.rock.ru/main/wiki.png" ALT="Энциклопедия" WIDTH="156" HEIGHT="28" BORDER="0" name="logo4"></a></td>
|
||
<td><A HREF="http://rock.ru/forum/" ONMOUSEOVER="SetImg('logo5','I5_5')" ONMOUSEOUT="SetImg('logo5','I5')"><IMG SRC="http://img.rock.ru/main/forum.png" ALT="Наш Форум" WIDTH="78" HEIGHT="28" BORDER="0" name="logo5"></a></td>
|
||
<td><A HREF="http://rock.ru/chat/" ONMOUSEOVER="SetImg('logo6','I6_6')" ONMOUSEOUT="SetImg('logo6','I6')"><IMG SRC="http://img.rock.ru/main/chat.png" ALT="Рок-Чат" WIDTH="46" HEIGHT="28" BORDER="0" name="logo6"></a></td>
|
||
<td><IMG SRC="IMG/logoright.gif" WIDTH="136" HEIGHT="28" BORDER="0"></td></tr>
|
||
</table></td></tr>
|
||
<tr>
|
||
<td height="18"><IMG SRC="IMG/linetop.gif" WIDTH="700" HEIGHT="18" BORDER="0"></td>
|
||
</tr>
|
||
</tbody></table>
|
||
<!-- end header -->
|
||
<!-- 1.225.963 -->
|
||
|
||
<TABLE align="center" border="0" cellspacing="0" cellpadding="0" width="700" bgcolor="#202020">
|
||
<TBODY>
|
||
<TR valign="top" bgcolor="black">
|
||
|
||
<!-- begin menu column -->
|
||
<td background="IMG/bgleftmenu.gif" width="151" vAlign="top">
|
||
<TABLE background="IMG/hand.gif" border="0" height="100%" cellPadding="0" cellSpacing="0" width="151">
|
||
|
||
<TR><TD class="menuheader" height="20">ОБЗОРЫ >>> </TD></TR>
|
||
|
||
<TR><TD class="menucell"
|
||
onmouseout="background='IMG/1.gif'"
|
||
onmouseover="background='IMG/1s.gif'"
|
||
onclick="document.localtion='http://rock.ru/news';">
|
||
<A href="/news">Новости</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/2.gif'"
|
||
onmouseover="background='IMG/2s.gif'"
|
||
onclick="document.localtion='http://rock.ru/afisha.shtml';">
|
||
<A href="http://rock.ru/afisha.shtml">Афиша</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/3.gif'"
|
||
onmouseover="background='IMG/3s.gif'"
|
||
onclick="document.localtion='/interviews';">
|
||
<A href="/interviews">Интервью</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/4.gif'"
|
||
onmouseover="background='IMG/4s.gif'"
|
||
onclick="document.localtion='http://rock.ru/reviews';">
|
||
<A href="/reviews">Рецензии</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/5.gif'"
|
||
onmouseover="background='IMG/5s.gif'"
|
||
onclick="document.localtion='http://rock.ru/articles';">
|
||
<A href="/articles">Статьи</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/6.gif'"
|
||
onmouseover="background='IMG/6s.gif'"
|
||
onclick="document.localtion='http://rock.ru/lyrics';">
|
||
<A href="http://rock.ru/lyrics">Тексты песен</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/7.gif'"
|
||
onmouseover="background='IMG/7s.gif'"
|
||
onclick="document.localtion='http://rock.ru/concerts';">
|
||
<A href="/concerts">Отчеты о концертах</A>
|
||
</TD></TR>
|
||
|
||
<TR><TD class="menuheader" height="20">РОК-ПЬЕДЕСТАЛ >>> </TD></TR>
|
||
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/9.gif'"
|
||
onmouseover="background='IMG/9s.gif'"
|
||
onclick="document.localtion='http://rock.ru/legends.html';">
|
||
<A href="/legends.html">Все о Легендах Века</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/10.gif'"
|
||
onmouseover="background='IMG/10s.gif'"
|
||
onclick="document.localtion='http://rock.ru/hard.html';">
|
||
<A href="/hard.html">Рок-энциклопедия</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/11.gif'"
|
||
onmouseover="background='IMG/11s.gif'"
|
||
onclick="document.localtion='http://rock.ru/rusrock.html;'">
|
||
<A href="/rusrock.html">Русский Рок</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/13.gif'"
|
||
onmouseover="background='IMG/13s.gif'"
|
||
onclick="document.localtion='http://rock.ru/younggrups.html';">
|
||
<A href="/younggrups.html">Молодые группы</A>
|
||
</TD></TR>
|
||
|
||
<TR><TD class="menuheader" height="20">РАЗНОЕ >>> </TD></TR>
|
||
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/15.gif'"
|
||
onmouseover="background='IMG/15s.gif'"
|
||
onclick="document.localtion='http://rock.ru/links.html';">
|
||
<A href="/links.html">Полезные Ссылки</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/16.gif'"
|
||
onmouseover="background='IMG/16s.gif'"
|
||
onclick="document.localtion='http://rock.ru/cgi-bin/topsites/topsites.cgi';">
|
||
<A href="/cgi-bin/topsites/topsites.cgi">Каталог рок-сайтов</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='/IMG/16.gif'"
|
||
onmouseover="background='/IMG/16s.gif'"
|
||
onclick="document.localtion='http://rock.ru/funny.html';">
|
||
<A href="/funny.html">Забавное</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='/IMG/18.gif'"
|
||
onmouseover="background='/IMG/18s.gif'"
|
||
onclick="document.localtion='http://rock.ru/webmasters.html';">
|
||
<A href="/webmasters.html">Веб-мастерам</A>
|
||
</TD></TR>
|
||
|
||
<TR><TD class="menuheader" height="20">ИНТЕРАКТИВ >>> </TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/22.gif'"
|
||
onmouseover="background='IMG/22s.gif'"
|
||
onclick="document.localtion='http://rock.ru/mail.html';">
|
||
<A href="/mail.html">Обратная Связь</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/23.gif'"
|
||
onmouseover="background='IMG/23s.gif'"
|
||
onclick="document.localtion='http://rock.ru/forum/';">
|
||
<A href="http://rock.ru/forum/">Форум</A>
|
||
</TD></TR>
|
||
<TR><TD class="menucell" height="20"
|
||
onmouseout="background='IMG/23.gif'"
|
||
onmouseover="background='IMG/23s.gif'"
|
||
onclick="document.localtion='http://rock.ru/chat/';">
|
||
<A href="/chat">ЧАТ</A>
|
||
</TD></TR>
|
||
|
||
<TR>
|
||
<TD vAlign=top align="center" class="menucellmiddle" background="IMG/bgleftmenu.gif"><br>
|
||
<script type='text/javascript'><!--//<![CDATA[
|
||
var m3_u = (location.protocol=='https:'?'https://ads.rock.ru/www/delivery/ajs.php':'http://ads.rock.ru/www/delivery/ajs.php');
|
||
var m3_r = Math.floor(Math.random()*99999999999);
|
||
if (!document.MAX_used) document.MAX_used = ',';
|
||
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
|
||
document.write ("?zoneid=2");
|
||
document.write ('&cb=' + m3_r);
|
||
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
|
||
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
|
||
document.write ("&loc=" + escape(window.location));
|
||
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
|
||
if (document.context) document.write ("&context=" + escape(document.context));
|
||
if (document.mmm_fo) document.write ("&mmm_fo=1");
|
||
document.write ("'><\/scr"+"ipt>");
|
||
//]]>--></script>
|
||
<script type="text/javascript"><!--<![CDATA[
|
||
google_ad_client = "pub-7163001599713810";
|
||
/* 120x240, banner-left */
|
||
google_ad_slot = "0054909044";
|
||
google_ad_width = 120;
|
||
google_ad_height = 240;
|
||
//]]>-->
|
||
</script>
|
||
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||
</script>
|
||
<br>
|
||
|
||
<a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?259915" alt="Rambler's Top100" width=1 height=1 border=0></a>
|
||
<a href="http://top100.rambler.ru/top100/"><img src="http://top100-images.rambler.ru/top100/banner-88x31-rambler-black2.gif" alt="Rambler's Top100" width=88 height=31 border=0></a><br>
|
||
<a href="http://musiccounter.ru"><img src="http://musiccounter.ru/hit.pl?id=3501&style=3" height="40" width="88" border="0"></a>
|
||
<!--LiveInternet counter--><script type="text/javascript"><!--
|
||
document.write("<a href='http://www.liveinternet.ru/click' "+
|
||
"target=_blank><img src='//counter.yadro.ru/hit?t20.6;r"+
|
||
escape(document.referrer)+((typeof(screen)=="undefined")?"":
|
||
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
|
||
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||
";h"+escape(document.title.substring(0,80))+";"+Math.random()+
|
||
"' alt='' title='LiveInternet: показано число просмотров за 24"+
|
||
" часа, посетителей за 24 часа и за сегодня' "+
|
||
"border='0' width='88' height='31'><\/a>")
|
||
//--></script><!--/LiveInternet-->
|
||
</TD></TR>
|
||
</TBODY></TABLE>
|
||
|
||
</td>
|
||
<!-- end menu column -->
|
||
<td bgcolor="#404040" vAlign="top" width="290">
|
||
|
||
<?
|
||
function pub_block($id, $count=5, $show_all=false){
|
||
if (! is_array($id)) {
|
||
$cat=mysql_fetch_assoc(mysql_query("SELECT * from categories WHERE id=$id"));
|
||
?>
|
||
<h1><a class="news_headline" href="http://rock.ru/<?=$cat['urlname']?>"><?=$cat['name']?></a></h1>
|
||
<?
|
||
$id = array ($id);
|
||
} else {
|
||
?>
|
||
<h1 class="news_headline">Новые материалы на сайте</h1>
|
||
<?
|
||
}
|
||
$id = implode (',', $id);
|
||
?>
|
||
<div class="news_preview">
|
||
<? $pubs=mysql_query("SELECT p.id, p.title, m.ID_MSG, m.ID_TOPIC, m.ID_MEMBER, m.posterName, p.brief, p.timestamp, p.uri as uri, c.id as cid, c.urlname as c_urlname FROM publications p, smf_messages m, categories c WHERE p.id_post=m.ID_MSG AND p.id_category=c.id AND id_category IN($id) AND p.display=1 ORDER BY p.timestamp DESC LIMIT $count");
|
||
$first = true;
|
||
while($art=mysql_fetch_assoc($pubs)) {
|
||
$date=date("d.m.y H:i",$art['timestamp']);
|
||
if ($art['uri'] == '') $art['uri'] = $art['id'];
|
||
?>
|
||
<p style="clear: both">
|
||
<a href="/<?=$art['c_urlname']?>/<?=$art['uri']?>.html"><?=$art['title']?></a>
|
||
<? if ($first OR $show_all) {
|
||
$first = false;
|
||
?>
|
||
<?/*<br><small>Опубликовано: <?=$date;?></small>*/?>
|
||
<br>
|
||
<?=$art['brief'];?>
|
||
<? } ?>
|
||
</p>
|
||
<?
|
||
}
|
||
?>
|
||
</div>
|
||
<?
|
||
}
|
||
?>
|
||
<div class="news_preview">
|
||
<h1 class="news_headline">Tuska Open Air</h1>
|
||
<p style="clear: both">
|
||
<img src="http://photo.rock.ru/thumb/aO4Da.jpg" alt="Tusca Open Air">
|
||
<br />
|
||
27-29.06.2013 - Хельсинки, Сувилахти
|
||
<br />
|
||
<a href="http://www.tuska-festival.fi/">Официальный сайт</a>
|
||
</p>
|
||
</div>
|
||
<? pub_block(1, 5); ?>
|
||
<? pub_block(3, 5); ?>
|
||
<? pub_block(array (2,4,5), 15); ?>
|
||
</td>
|
||
|
||
<!-- закончилась средняя колонка -->
|
||
<td width="3" bgcolor="#202020"></td>
|
||
<!-- правая колонка -->
|
||
<TD valign="top" width="240" bgcolor="#404040">
|
||
<?pub_block(9,5,true);?>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table border="0" cellspacing="0" cellpadding="0" width="700" align="center">
|
||
<tr colspan="3">
|
||
<TD><IMG src="/IMG/linetop.gif" width="700" height="18" border="0"></TD>
|
||
</TR>
|
||
</table>
|
||
<br />
|
||
<div style="color: #b4b4b4; text-align: center; font-weight: bold; font-size: x-small;">Copyright © 2001-<?=date("Y")?>.<br>
|
||
Веб-дизайн и основная идея - <A HREF="mailto:rocklegends@narod.ru">Old Rocker</A><br>
|
||
Программирование - <a href="http://ru.miheev.info/">Алексей "rusty_angel" Михеев</a>
|
||
</div>
|
||
</BODY>
|
||
</html>
|