@@ 171-176 (lines=6) @@ | ||
168 | $item = TDMDownloads_MygetItemIds('tdmdownloads_download_item', 'TDMDownloads'); |
|
169 | $count = 1; |
|
170 | foreach (array_keys($downloads_arr) as $i) { |
|
171 | if ($downloads_arr[$i]->getVar('logourl') == 'blank.gif') { |
|
172 | $logourl = ''; |
|
173 | } else { |
|
174 | $logourl = $downloads_arr[$i]->getVar('logourl'); |
|
175 | $logourl = $uploadurl_shots . $logourl; |
|
176 | } |
|
177 | $datetime = formatTimestamp($downloads_arr[$i]->getVar('date'),'s'); |
|
178 | $submitter = XoopsUser::getUnameFromId($downloads_arr[$i]->getVar('submitter')); |
|
179 | $description = $downloads_arr[$i]->getVar('description'); |
@@ 215-220 (lines=6) @@ | ||
212 | $categories = TDMDownloads_MygetItemIds('tdmdownloads_download', 'TDMDownloads'); |
|
213 | $item = TDMDownloads_MygetItemIds('tdmdownloads_download_item', 'TDMDownloads'); |
|
214 | foreach (array_keys($downloads_arr) as $i) { |
|
215 | if ($downloads_arr[$i]->getVar('logourl') == 'blank.gif') { |
|
216 | $logourl = ''; |
|
217 | } else { |
|
218 | $logourl = $downloads_arr[$i]->getVar('logourl'); |
|
219 | $logourl = $uploadurl_shots . $logourl; |
|
220 | } |
|
221 | $datetime = formatTimestamp($downloads_arr[$i]->getVar('date'),'s'); |
|
222 | $submitter = XoopsUser::getUnameFromId($downloads_arr[$i]->getVar('submitter')); |
|
223 | $description = $downloads_arr[$i]->getVar('description'); |