Open vendethiel opened 9 years ago
This can go:
#==== Downloads Data Array ============================== | if ($config['server_name'] == 'phpbb-amod.com') { $q = "SELECT lid, url FROM " . $table_prefix . "downloads_downloads"; $r = $db->sql_query($q); $download_data = $db->sql_fetchrowset($r); }
and this below:
for ($j = 0; $j <= sizeof($download_data); $j++) { if (eregi('http://phpbb-amod.com/games/games/' . $game_rows[$i]['game_name'] . '.zip', $download_data[$j]["url"])) { $download_link = '<br /><b>·</b> <a href="downloads.php?mode=download&cid=910&lid=' . $download_data[$j]['lid'] . '&sid=' . $user->data['session_id'] . '" class="nav"><font color="#339933">Download This</font></a><br />'; break; } }
And finally:
'DOWNLOAD_LINK' => $download_link,
(the part in the templates also can, obviously)
This can go:
and this below:
And finally:
(the part in the templates also can, obviously)