BARRAcUDA, <?php
/**
* Удалён JohnCMS
*
http://johncms.com
* Удалён Copyright (C) 2008-2011 JohnCMS Community
* Удалён LICENSE.txt (see attached file)
* Удалён VERSION.txt (see attached file)
* Удалён
http://johncms.com/about
*/
defined('_IN_JOHNCMS') or die('Error: restricted access');
$mp = new mainpage();
echo'<form action="download/search.php?" method="get">
<div class="gmenu" style="text-align: center"><input type="text" name="query" size="30" placeholder="Введите ключевое слово" value="" /> <input type="submit" name="submit" value="Искать!"/></div></form>';
/*
-----------------------------------------------------------------
Блок информации
-----------------------------------------------------------------
*/
echo '<div class="phdr"><center>Добавь в закладки - LOLKA.NET!</center></div>';
echo $mp->news;
$i = 0;
include_once 'download/functions.php';
$zap = mysql_query("SELECT * FROM `downfiles` WHERE `type` != 1 AND `status` = 1 ORDER BY `time` DESC LIMIT 0,3"
;
while ($zap2 = mysql_fetch_array($zap)) {
echo ($i % 2) ? '<div class="list1">' : '<div class="list2">';
++$i;
$tf = pathinfo($zap2['way'], PATHINFO_EXTENSION); // Тип файла
if($tf == 'mp3'){
$set_view = array('variant' => 1, 'way_to_path' => 1);
}elseif((($tf == 'thm' or $tf == 'nth') && $down_setting['tmini']) || (($tf == '3gp' or $tf == 'mp4' or $tf == 'avi') && $down_setting['vmini']) || ($tf == 'jpg' or $tf == 'png' or $tf == 'jpeg' or $tf == 'gif')){
$set_view = array('link_download' => 1, 'div' => 1, 'way_to_path' => 1);
}else{
$set_view = array('variant' => 1,
'size' => 1, 'desc' => 1, 'count' => 1, 'div' => 1,
'comments' => 1, 'add_date' => 1, 'rating' => 1, 'way_to_path' => 1);
}
echo f_preview($zap2, $set_view, $tf);
echo '</div>';
}
/*
-----------------------------------------------------------------
Блок общения
-----------------------------------------------------------------
*/
// Ссылка на гостевую
include'pages/files.php';
echo '<ul class="umenu"><li><a href="/download/new.html"><img src="/video/new.png" alt="*" /> <b>Новинки</b></a></li></ul>';
echo '<ul class="umenu"><li><a href="/download/top.html"><img src="/video/new.png" alt="*" /> <b>Популярные</b></a></li></ul>';
include'download/download.php';
?>