Welcome to the Unofficial Help Forum
$g_report = allowedTo('downloads_report');
$g_dl = allowedTo('downloads_dl');
// Show the main download
if($g_dl){ // Show the main download
echo ' </td> </tr>';
}
// Show linking codes
if($g_dl){ // Show linking codes
echo '</table>';
function Downloads_DownloadFile(){ global $modSettings, $txt, $context, $smcFunc, $user_info; // Check Permission isAllowedTo('downloads_view');
function Downloads_DownloadFile(){ global $modSettings, $txt, $context, $smcFunc, $user_info; // Check Permission isAllowedTo('downloads_dl');
'downloads_view',
'downloads_dl',
$txt['permissionname_downloads_view'] = 'View Downloads';$txt['permissionhelp_downloads_view'] = 'Allows the user to view the Downloads';$txt['cannot_downloads_view'] = 'You are not allowed to view the Downloads';
$txt['permissionname_downloads_dl'] = 'Download';$txt['permissionhelp_downloads_dl'] = 'Allows the user to download.';$txt['cannot_downloads_dl'] = 'You are not allowed to download.';