Skip to content

[Activity] activity.php contains code for phpbb-amod.com #30

@vendethiel

Description

@vendethiel

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>&middot;</b> <a href="downloads.php?mode=download&amp;cid=910&amp;lid=' . $download_data[$j]['lid'] . '&amp;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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions