|
|
|
|
150
|
for ($i = 0; $i < count($Freeleeches); $i++) {
|
150
|
for ($i = 0; $i < count($Freeleeches); $i++) {
|
151
|
list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
|
151
|
list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
|
152
|
if ($ExpiryTime < time()) { continue; }
|
152
|
if ($ExpiryTime < time()) { continue; }
|
153
|
- $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
|
|
|
|
|
153
|
+ $DisplayTime = '('.str_replace(['year','month','week','day','hour','min','Just now','s',' '],['y','M','w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
|
154
|
$DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
|
154
|
$DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
|
155
|
if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
|
155
|
if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
|
156
|
$DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image, true)."\" onmouseleave=\"ungetCover(event)\"";
|
156
|
$DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image, true)."\" onmouseleave=\"ungetCover(event)\"";
|