Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=64229
Postga havola
RNDTV [310] [off]
WmTeam, mana downloadni bosh sahifaga chiqaradigan lod yangiliklarga qizil +00 ham kursatadi
<?php include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php'; echo'<div class="phdr"><center><b>' . $lng['downloads'] . '</b></center></div>'; $dirid = $cat; } else { echo '<div class="phdr"><a href="index.html">Загруз-Центр</a> | '; foreach ($tree as $value) { echo $value; if ($value != $cdir) echo ' | '; } } $totalcat = mysql_result(mysql_query("SELECT COUNT(*) FROM `downpath` WHERE `refid` = '" . $cat ."'"), 0); if ($totalcat > 0) { $zap = mysql_query("SELECT * FROM `downpath` WHERE `refid` = '" . $cat . "' ORDER BY `position` ASC LIMIT 35"); { $opencache = 'true'; }else{ } $i = 0; { echo ($i % 2) ? '<div class="menu">' : '<div class="menu">'; ++$i; if(!$count_cache[$zap2['id']]) { ////////// счётчики ////////// $countf = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `way` LIKE '" . $zap2['way'] ."%' "), 0); $old = $vaqt; $countnf = mysql_result(mysql_query("SELECT COUNT(*) FROM `downfiles` WHERE `type` != 1 AND `status` = 1 && `time` > '".$old."' && `way` LIKE '" . $zap2['way'] ."%' "), 0); //$countp = mysql_result(mysql_query("SELECT COUNT(*) FROM `downpath` WHERE `way` LIKE '" . $zap2['way'] ."%';"), 0); //$countp--; // Счётчик папок. Раскомментировать если нужен. if($countnf){ $countnf = '/<span class="red">+'.$countnf.'</span>'; }else{ $countnf = ''; } $count_cache[$zap2['id']] = $countf.$countnf; // Сюда вставлять $countp если нужен счётчик папок. } echo '<img style="margin: 0 0 -3px 0; border-radius: 10px;" src="/download/down/' . $zap2['id'] . '.png" alt="" width="16" height="16"/> <a href="/download/dir_' . $zap2['id'] . '.html">' . $zap2['name'] .'</a><div class="rio"><b> '.$count_cache[$zap2['id']].'</b></div>'; if($zap2['desc']) { echo'<div class="sub">' . $zap2['desc'] .'</div>'; } echo'</div>'; } if ($totalcat > $kmess){ // echo'<div class="topmenu"></div>'; } //// Создаём файл с кэшем если он устарел или его нет //// //echo 'Кэш обновлен или создан!'; } } else { if ($totalfile > 0) if($sort) { $_SESSION['downsort'] = $sort; } else { } { $order = $_GET['orderby'] == 'desc' ? 'desc' : 'asc'; $_SESSION['orderby'] = $order; } else { } } ?>