DJ ShaWon All MiLalten Jara Ke Dutch Mix DJ Shawon
Remixer : DJ Shawon
Downloads : 0 Times
Release On : Sep 05, 2026
Category : DJ Shawon All Type Mp3
/* ========================================================= BDREMIX24 REMIXER ALBUM ART Manual artwork always wins. If no manual artwork exists, a valid image from /public_html/img/ is used automatically. Supports every image format that the server's image decoder (GD) can read. ========================================================= */ if(!function_exists('BDGetRemixerArtwork')) { function BDGetRemixerArtwork($id = 0) { global $ThumbsUploadDir; $id = (int)$id; /* Convert a local filesystem path to a public URL. */ $makeUrl = function ($file) { $file = str_replace('\\', '/', $file); $baseUrl = defined('site_url') ? rtrim((string)site_url, '/') : ''; $docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? str_replace('\\', '/', rtrim((string)$_SERVER['DOCUMENT_ROOT'], '/\\')) : ''; if ($docRoot && strpos($file, $docRoot . '/') === 0) { $relative = substr($file, strlen($docRoot)); return $baseUrl . '/' . ltrim($relative, '/'); } if (preg_match('~^https?://~i', $file)) { return $file; } return $baseUrl . '/' . ltrim($file, '/'); }; /* 1) Manual artwork ALWAYS wins. */ if ($id > 0 && !empty($ThumbsUploadDir)) { $manualDir = rtrim((string)$ThumbsUploadDir, '/\\') . '/remixer'; $manualFiles = array( $id . '_og.jpg', $id . '_og.jpeg', $id . '_og.png', $id . '_og.webp', $id . '_og.gif' ); foreach ($manualFiles as $manualName) { $manualPath = $manualDir . '/' . $manualName; if (is_file($manualPath) && is_readable($manualPath)) { return $makeUrl($manualPath); } } } /* 2) Automatic fallback: scan public_html/img for real images. */ static $validImages = null; if ($validImages === null) { $validImages = array(); $roots = array(); $docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? rtrim((string)$_SERVER['DOCUMENT_ROOT'], '/\\') : ''; if ($docRoot) { $roots[] = $docRoot . '/img'; } $roots[] = dirname(__DIR__) . '/img'; $roots[] = dirname(__DIR__) . '/public_html/img'; foreach (array_unique($roots) as $dir) { if (!is_dir($dir) || !is_readable($dir)) { continue; } $files = @scandir($dir); if (!$files) { continue; } foreach ($files as $fileName) { if ($fileName === '.' || $fileName === '..') { continue; } $filePath = $dir . '/' . $fileName; if (!is_file($filePath) || !is_readable($filePath)) { continue; } $imageInfo = @getimagesize($filePath); if ( $imageInfo && isset($imageInfo[0], $imageInfo[1]) && (int)$imageInfo[0] > 0 && (int)$imageInfo[1] > 0 ) { $validImages[] = array( 'path' => $filePath, 'name' => $fileName ); } } if (!empty($validImages)) { break; } } } /* 3) Automatic fallback image. Use a deterministic index per remixer so the same remixer shows the same album art in the A-Z list and on the 220x220 detail page. */ if (!empty($validImages)) { $count=count($validImages); $index=$id>0 ? (($id*7919) % $count) : 0; if($index<0) $index=abs($index)%$count; return $makeUrl($validImages[(int)$index]['path']); } /* 4) Default fallback. */ $baseUrl = defined('site_url') ? rtrim((string)site_url, '/') : ''; return $baseUrl . '/images/no_participant_cover.jpg'; } }
DJ ShaWon All MiLalten Jara Ke Dutch Mix DJ Shawon
Remixer : DJ Shawon
Downloads : 0 Times
Release On : Sep 05, 2026
Category : DJ Shawon All Type Mp3