Yangi formatda davom etish uchun: https://uzfor.net/view.php?id=90&page=5
JohnCMS da bosh sahifaga chiqarish
Mavzu fayllari (15)
Xabarlar
href="add_file.php?cat='.$cat.'">Fayl yuklash</a></div>';
}
}
echo '<div class="menu"><img src="img/search.png" alt="."/><a href="search.php">Izlash</a></div>';
if (!empty($_GET['cat'])) {
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
shu yerda izlashni olib tashlash uchun qayerdan qayergacha o'chiraman. nima qilsam ham oqarib qolyapti
}
}
echo '<div class="menu"><img src="img/search.png" alt="."/><a href="search.php">Izlash</a></div>';
if (!empty($_GET['cat'])) {
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
shu yerda izlashni olib tashlash uchun qayerdan qayergacha o'chiraman. nima qilsam ham oqarib qolyapti
Genius, echo '<div class="menu"><img src="img/search.png" alt="."/><a href="search.php">Izlash</a></div>';
Genius, if (!empty($_GET['cat'])) {
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
}
}
echo'</div>';
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
}
}
echo'</div>';
+ (1): mstar,
$dost = mysql_query("select * from `downpath` where id = '" . $cat . "';");
$dost = mysql_fetch_array($dost);
if($dost['dost'] && $user_id != 0){
echo'<div class="menu"><img src="img/upload.png" alt="."/><a href="add_file.php?cat='.$cat.'">Fayl yuklash</a></div>';
}
}
echo '<div class="menu"><img src="img/search.png" alt="."/><a href="search.php">Izlash</a></div>';
if (!empty($_GET['cat'])) {
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
}
echo '- <a href="admin.php">Adminka</a></div>'; }
}
require_once '../incfiles/end.php';
to'liq yozilar iltimos. yo boshqa narsadanmikin
$dost = mysql_fetch_array($dost);
if($dost['dost'] && $user_id != 0){
echo'<div class="menu"><img src="img/upload.png" alt="."/><a href="add_file.php?cat='.$cat.'">Fayl yuklash</a></div>';
}
}
echo '<div class="menu"><img src="img/search.png" alt="."/><a href="search.php">Izlash</a></div>';
if (!empty($_GET['cat'])) {
// echo '<div class="menu"><a href="index.html">Yuklamalar markazi</a><br/>';
foreach ($tree as $value) {
echo $value;
echo '<br/>';
}
echo'</div>';
}
if ($rights == 4 || $rights >= 6){
echo'<div class="func">';
if($totalcat > 0){
echo '- <a href="admin.php?act=import&cat='.$cat.'">Fayl importlash</a><br/>';
echo'- <a href="admin.php?act=upload&cat='.$cat.'">Fayl yuklash</a><br/>';
}
echo '- <a href="admin.php">Adminka</a></div>'; }
}
require_once '../incfiles/end.php';
to'liq yozilar iltimos. yo boshqa narsadanmikin
SnipeR, # SnipeR (21.01.2018 / 22:27)
<?php
/*Design By Umidshox Xits.uz */
include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php';
echo '<div class="list-group-item active"><i class="fa fa-square"></i> <b> Клипы </b></div>bunda
<?php
/*Design By Umidshox Xits.uz */
include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php';
echo '<div class="list-group-item active"><i class="fa fa-square"></i> <b> Клипы </b></div>bunda
$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`");
$cachetime = time()-$down_setting['cachetime']*3600;
if(is_file('download/cache/'.$cat.'.dat') && filemtime('download/cache/'.$cat.'.dat') > $cachetime)
{
$count_cache = file_get_contents('download/cache/'.$cat.'.dat');
$count_cache = unserialize($count_cache);
$opencache = 'true';
}else{
$count_cache = array();
}
$i = 0;
while ($zap2 = mysql_fetch_array($zap))
{
//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 = time() - (3 * 24 * 3600);
$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;
}
echo '<div class="menu"><img src="/img/2.gif" alt="*"> <a href="/download/dir_' . $zap2['id'] . '.html"> ' . $zap2['name'] .' </a> ('.$count_cache[$zap2['id']].') </div>';
// echo'</div>';
}
if(!$opencache && $arr = fopen('download/cache/'.$cat.'.dat', "w")){
fwrite($arr, serialize($count_cache));
fclose($arr);
//echo 'Кэш обновлен или создан!';
}
}
Mana shu kod downloaddagi papkalarni bosh sahifaga shiqaradigan kod ekan, Shu koddan faqat (palon papkada) nechta fayl borligini hisoblaydigan joyini olib beringlar + va rahmat mendan.
if ($totalcat > 0) {
$zap = mysql_query("SELECT * FROM `downpath` WHERE `refid` = '" . $cat . "' ORDER BY `position`");
$cachetime = time()-$down_setting['cachetime']*3600;
if(is_file('download/cache/'.$cat.'.dat') && filemtime('download/cache/'.$cat.'.dat') > $cachetime)
{
$count_cache = file_get_contents('download/cache/'.$cat.'.dat');
$count_cache = unserialize($count_cache);
$opencache = 'true';
}else{
$count_cache = array();
}
$i = 0;
while ($zap2 = mysql_fetch_array($zap))
{
//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 = time() - (3 * 24 * 3600);
$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;
}
echo '<div class="menu"><img src="/img/2.gif" alt="*"> <a href="/download/dir_' . $zap2['id'] . '.html"> ' . $zap2['name'] .' </a> ('.$count_cache[$zap2['id']].') </div>';
// echo'</div>';
}
if(!$opencache && $arr = fopen('download/cache/'.$cat.'.dat', "w")){
fwrite($arr, serialize($count_cache));
fclose($arr);
//echo 'Кэш обновлен или создан!';
}
}
Mana shu kod downloaddagi papkalarni bosh sahifaga shiqaradigan kod ekan, Shu koddan faqat (palon papkada) nechta fayl borligini hisoblaydigan joyini olib beringlar + va rahmat mendan.
Clubmix,
$papka_id_raqami = '5'; / 5 o'rniga papkaning id raqamini yozing $fayllar_soni = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `downpath` WHERE `refid` = '" . $papka_id_raqami ."'"), 0); echo 'Umumiy fayllar soni: '.$fayllar_soni;
Сирожиддин, Bu kod bitta papkada nechta kod borligini hisoblar ekan. Qarang menga musiqa va video papkalarini bosh sahifada hisoblash kerak misol musiqa (id raqam aytayli 1) 5ta video (id raqam 2) 2 va h.k shunga bu kodni qayerini o'zgartirish kerak.
Ajalbek, Shunday qilib ko`ring lekin aniq hisoblidimi yo`qmi bilmadim! tekshirib ko`rganim yo`q
$papka_id_raqami = '1'; / 1 o'rniga papkaning id raqamini yozing $papka_id_raqami2 = '2'; / 2 o'rniga papkaning id raqamini yozing $papka_id_raqami3 = '3'; / 3 o'rniga papkaning id raqamini yozing $fayllar_soni = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `downpath` WHERE `refid` = '" . $papka_id_raqami ."', `refid` = '" . $papka_id_raqami2 ."', `refid` = '" . $papka_id_raqami3 ."'"), 0); echo 'Umumiy fayllar soni: '.$fayllar_soni;
Clubmix, qaysi papkani ichidagi fayllarni hisoblamoqchi bo`lsangiz shu papka id raqamini yozasiz
+ (1): Clubmix,
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 536 ta
So'ngi faollik vaqti: 02:12:02, 25 Feb 2021