Mavzu: Johncms da script tuzamiz (sayt ochamiz)
22. sarvarbek (M) (156) [off] | TXT | 19| 8 Nov 2016, 20:31
fayllarni bosh sahifaga chiqaramiz :)




function size_convert($size){
$size = round($size / 1024, 2);
if($size > 1024000){
$size = round($size / 1024000, 2).' Gb';
}elseif($size > 1024){
$size = round($size / 1024, 2).' mb';
}else{ $size = $size.' kb'; }
return $size;
}
///// Yangi Musiclar
$mus = mysql_query("SELECT * FROM `downfiles` WHERE `way` LIKE 'music/%' ORDER BY `id` DESC LIMIT 20");
//20ni ozgartirish mumkin
$musr = mysql_num_rows($mus);
if ($musr != 0) {
echo '<div class="phdr"><b>Original Musiqalat</b></div>';
while ($music = mysql_fetch_assoc($mus)) {
$namee = explode('||||', $music['name']);
echo '<div class="menu"><img src="http://voydod.net/element/music.png">  <a href="download/file_'.$music['id'].'.html">' . str_replace('_', ' ', $namee[0]) . '</a> </div>';

}
}


//// endi videolar
$mus = mysql_query("SELECT * FROM `downfiles` WHERE `way` LIKE 'clip/%' ORDER BY `id` DESC LIMIT 20");
$musr = mysql_num_rows($mus);
if ($musr != 0) {
echo '<div class="phdr">Yangi kliplar</div>';!
while ($video = mysql_fetch_assoc($mus)) {
$namee = explode('||||', $video['name']);
echo '<div class="menu"><img src="images/video.png">  <a href="download/file_'.$video['id'].'.html">' . str_replace('_', ' ', $namee[0]) . '</a> ['.size_convert($video['size']).']</div>';
}

}


*BYE*
Raxmat aytdi (1): BAXABEK,
23. Mr ShaXRuX (580) [off] | TXT | 19| 8 Dec 2016, 16:45
Qachon boshlemiz tanishuv sayt yaratishni
24. TESTER (3) [off] | TXT | 19| 8 Dec 2016, 17:25
Mr ShaXRuX (8 Dec 2016, 16:45):
Qachon boshlemiz tanishuv sayt yaratishni
Mr ShaXRuX, Katta busak.
25. Mr ShaXRuX (580) [off] | TXT | 19| 8 Dec 2016, 20:19
TESTER (8 Dec 2016, 17:25):
Mr ShaXRuX, Katta busak.
TESTER, JohnCMS da yaratamiz degan ekansizlaru tanishuv sayt deb
26. TESTER (3) [off] | TXT | 19| 8 Dec 2016, 21:28
Mr ShaXRuX (8 Dec 2016, 20:19):
TESTER, JohnCMS da yaratamiz degan ekansizlaru tanishuv sayt deb
Mr ShaXRuX, ular ketgan saytdan;)))
27. Mr ShaXRuX (580) [off] | TXT | 19| 9 Dec 2016, 11:41
TESTER (8 Dec 2016, 21:28):
Mr ShaXRuX, ular ketgan saytdan;)))
TESTER, qoyileee musqanikini orgatib qochib qoldimikin
28. TESTER (3) [off] | TXT | 19| 9 Dec 2016, 15:49
Mr ShaXRuX (9 Dec 2016, 11:41):
TESTER, qoyileee musqanikini orgatib qochib qoldimikin
Mr ShaXRuX, xaa :-)
Ma'lumotlar
Mavzu id raqami: 204
Mavzuga oid xabarlar soni: 91 ta
So'ngi faollik vaqti: 7 Nov 2018, 08:30
Mavzuni ko'rishgan: 96 kishi
» txt shaklida yuklab olish
» Mavzudagi yangi xabarlardan xabardor bo'lishni rad etish
uzmasters.ru Onlayn 38 (2/36)
uzmasters.ru Forumga a'zo bo'lish
uzmasters.ru Forumdan qidirish
uzmasters.ru Bosh sahifa
Яндекс.Метрика UzMasterS.Ru