|
@@ -132,6 +132,8 @@ if (($Freeleeches = $Cache->get_value('shop_freeleech_list')) === false) {
|
132
|
132
|
TorrentID,
|
133
|
133
|
UNIX_TIMESTAMP(ExpiryTime),
|
134
|
134
|
Name,
|
|
135
|
+ NameRJ,
|
|
136
|
+ NameJP,
|
135
|
137
|
WikiImage
|
136
|
138
|
FROM shop_freeleeches AS sf
|
137
|
139
|
LEFT JOIN torrents AS t on sf.TorrentID=t.ID
|
|
@@ -148,13 +150,14 @@ if (count($Freeleeches)) {
|
148
|
150
|
<ul class="stats nobullet">
|
149
|
151
|
<?
|
150
|
152
|
for ($i = 0; $i < count($Freeleeches); $i++) {
|
151
|
|
- list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
|
152
|
|
- $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff(max($ExpiryTime, time()), 1, false)).') ';
|
|
153
|
+ list($ID, $ExpiryTime, $Name, $NameRJ, $NameJP, $Image) = $Freeleeches[$i];
|
|
154
|
+ if ($ExpiryTime < time()) { continue; }
|
|
155
|
+ $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
|
153
|
156
|
$DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
|
154
|
157
|
if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
|
155
|
158
|
$DisplayName .= " onmouseover=\"getCover(event)\" cover=\"".ImageTools::process($Image)."\" onmouseleave=\"ungetCover(event)\"";
|
156
|
159
|
}
|
157
|
|
- $DisplayName .= '>'.$Name.'</a>';
|
|
160
|
+ $DisplayName .= '>'.($Name?$Name:($NameRJ?$NameRJ:$NameJP)).'</a>';
|
158
|
161
|
?>
|
159
|
162
|
<li>
|
160
|
163
|
<strong class="fl_time"><?=$DisplayTime?></strong>
|