M-jay:can you share images spirtblue :thumb
function getexttype($ext = '')
{
$ext = strtolower($ext);
$music = array('mp3', 'wav', 'flac', 'm3u');
$video = array('mp4', 'avi', 'mkv', 'flv', 'wmv');
$file = array('txt', 'pdf', 'doc', 'zip', 'nfo', 'srt', 'exe');
$image = array('jpeg', 'gif', 'png');
if ($ext == false || $ext == '') {
$filetype_icon = " <i class='fa fa-question'></i>";
} else if (in_array($ext, $music)) {
$filetype_icon = " <i class='fa fa-music'></i>";
} else if (in_array($ext, $video)) {
$filetype_icon = " <i class='fa fa-film'></i>";
} else if (in_array($ext, $file)) {
$filetype_icon = " <i class='fa fa-file'></i>";
} else if (in_array($ext, $image)) {
$filetype_icon = " <i class='fa fa-picture-o'></i>";
}
return $filetype_icon;
}while ($frow = mysqli_fetch_assoc($fres)) {
echo "<tr><td class='table_col1'>while ($frow = mysqli_fetch_assoc($fres)) {
$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
$filetype_icon = getexttype($ext);
echo "<tr><td class='table_col1'>" . $filetype_icon . "</td>
$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
if ($ext !== false && $ext == 'mp3') {
$filetype_icon = " <i class='flaticon-mp3' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'flac') {
$filetype_icon = " <i class='flaticon-sound' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'aac') {
$filetype_icon = " <i class='flaticon-aac' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'cue') {
$filetype_icon = " <i class='flaticon-audiobook' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'm3u') {
$filetype_icon = " <i class='flaticon-boxset' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'ape') {
$filetype_icon = " <i class='flaticon-music-other' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'iso') {
$filetype_icon = " <i class='flaticon-emulation' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'jpg') {
$filetype_icon = " <i class='flaticon-images' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'png') {
$filetype_icon = " <i class='flaticon-images' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'bmp') {
$filetype_icon = " <i class='flaticon-images' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'mp4') {
$filetype_icon = " <i class='flaticon-mp4' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'mkv') {
$filetype_icon = " <i class='flaticon-hd' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'divx') {
$filetype_icon = " <i class='flaticon-divx' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'vob') {
$filetype_icon = " <i class='flaticon-dvd' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'avi') {
$filetype_icon = " <i class='flaticon-movies' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'txt') {
$filetype_icon = " <i class='flaticon-book' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'srt') {
$filetype_icon = " <i class='flaticon-list' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'ass') {
$filetype_icon = " <i class='flaticon-message' style='color:gold;font-size:24px;'></i> ";
}
else if ($ext !== false && $ext == 'NFO' || 'nfo') {
$filetype_icon = " <i class='flaticon-info' style='color:gold;font-size:24px;'></i> ";
}
}else if ( $ext !== false && $ext == 'nfo' xor $ext == 'NFO') {
$filetype_icon = "<img width=40 height=40 src=/images/nfo.png>";
} }else if ( $ext !== false && $ext == 'nfo' || $ext == 'NFO') {
$filetype_icon = "<img width=40 height=40 src=/images/nfo.png>";
}else if ( $ext !== false && $ext == 'nfo' || 'NFO')
.fa{
display:inline-block;
font:normal normal normal 14px/1 FontAwesome;
font-size:inherit;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale
}
.fa-2x {
font-size: 2em
}
.fa-3x {
font-size: 3em
}
.fa-4x {
font-size: 4em
}
.fa-5x {
font-size: 5em
} \"><i class='fa-2x fa fa-lg fa-weibo'></i>echo "<br /><br /><b>".T_("FILE_LIST").":</b> <img src='images/plus.gif' id='pic1' onclick='klappe_torrent(1)' alt='' /><div id='k1' style='display: none;'><table align='center' cellpadding='0' cellspacing='0' class='table_table' border='1' width='100%'><tr><th width='50' class='table_head'> ".T_("TYPE")."</th><th class='table_head' align='left'> ".T_("FILE")."</th><th width='50' class='table_head'> ".T_("SIZE")."</th></tr>";
$fres = SQL_Query_exec("SELECT * FROM `files` WHERE `torrent` = $id ORDER BY `path` ASC");
if (mysqli_num_rows($fres)) {
while ($frow = mysqli_fetch_assoc($fres)) {
$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
$filetype_icons = [
"mp3" => "/images/filetype-icons/mp3.png",
"iso" => "/images/filetype-icons/iso.png",
"mp4" => "/images/filetype-icons/mp4.png",
"png" => "/images/filetype-icons/png.png",
"jpg" => "/images/filetype-icons/jpg.png",
"mkv" => "/images/filetype-icons/mkv.png",
"rar" => "/images/filetype-icons/rar.png",
"avi" => "/images/filetype-icons/avi.png",
"nfo" => "/images/filetype-icons/nfo.png"
];
if(preg_match("/^r\d{2}$/", $ext)) {
$filetype_icon = "<img width=40 height=40 src='/images/filetype-icons/rar.png'>";
} elseif(isset($filetype_icons[$ext])) {
$filetype_icon = "<img width=40 height=40 src='" . $filetype_icons[$ext] . "'>";
} else {
$filetype_icon = "<img width=40 height=40 src='/images/filetype-icons/unknown.png'>";
}
echo "<tr><td class='table_col1'>".$filetype_icon."</td><td class='table_col1'>".htmlspecialchars($frow['path'])."</td><td class='table_col2'>".mksize($frow['filesize'])."</td></tr>";
}
if ($ext !== false) {
switch ($ext) {
case 'mp3':
case 'FMP3':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/mp3.png>";
break;
case 'flac':
case 'FLAC':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/flac.png>";
break;
case 'mp4':
case 'MP4':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/mp4.png>";
break;
case 'm3u':
case 'M3U':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/m3u.png>";
break;
case 'pdf':
case 'PDF':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/pdf.png>";
break;
case 'jpg':
case 'JPG':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/jpg.png>";
break;
case 'png':
case 'PNG':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/png.png>";
break;
case 'txt':
case 'TXT':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/txt.png>";
break;
case 'lng':
case 'LNH':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/lng.png>";
break;
case 'btskin':
case 'BTSKIN':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/btskin.png>";
break;
case 'epub':
case 'EPUB':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/epub.png>";
break;
case 'bmp':
case 'BMP':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/bmp.png>";
break;
case 'conf':
case 'CONF':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/conf.png>";
break;
case 'dll':
case 'DLL':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/dll.png>";
break;
case 'ini':
case 'INI':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/ini.png>";
break;
case 'dat':
case 'DAT':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/dat.png>";
break;
case 'apk':
case 'APK':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/apk.png>";
break;
case '7z':
case '7Z':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/7z.png>";
break;
case 'zip':
case 'ZIP':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/zip.png>";
break;
case 'rar':
case 'RAR':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/rar.png>";
break;
case 'exe':
case 'EXE':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/exe.png>";
break;
case 'iso':
case 'ISO':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/iso.png>";
break;
case 'mkv':
case 'MKV':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/mkv.png>";
break;
case 'avi':
case 'AVI':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/avi.png>";
break;
case 'url':
case 'URL':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/url.png>";
break;
case 'NFO':
case 'nfo':
case 'NFO':
$filetype_icon = "<img width=100 height=30 src=/images/Torrents/nfo.png>";
break;
default:
// Handle unknown file extensions
break;
}
}
No users online
Torrents
Members
Online