Файл: index.php
Строк: 23
<?php
require_once "sys/func.php";
$title = $title_site;
require_once "sys/head.php";
if (isset($_GET['like'])) like($_GET['like']);
$select_st = mysql_query("SELECT * FROM `data_status` ORDER BY `id` DESC LIMIT $onpage");
while ($status = mysql_fetch_assoc($select_st)) {
echo '
<div class="menu">'.$status['text'].'</div>
<div class="share">
<a href="index.php?like='.$status['id'].'"><img src="images/like.png" alt="like"></a> '.countLike($status['id']).'
<a href="/page/copy.php?id='.$status['id'].'"><img src="images/copy.png" alt="Copy"></a>
'.share($urlsite,$status['text']).'
</div>';
}
?>
<a class="link" href="/page/category.php"><img src="images/category.png" alt="*"> Категории</a>
<a class="link" href="/page/recall.php"><img src="images/recall.png" alt="*"> Отзывы</a>
<a class="link" href="/page/contact.php"><img src="images/contact.png" alt="*"> Контакты</a>
<?php
$ad = mysql_query("SELECT * FROM `ads` ORDER BY `addtime` LIMIT 3");
if (mysql_num_rows($ad) > 0) echo '<div class="title">Реклама</div>';
while ($ads = mysql_fetch_array($ad)) {
echo '<div class="ads">
<a href="'.$ads['link'].'"><img width="13px" src="/images/star1.png" /> '.$ads['name'].'</a><br/>
</div>';
}
require_once "sys/foot.php";
?>