Code: Select all
<a href="<TMPL_VAR direct_link>"><img src="<TMPL_VAR site_url>/images/download.gif" border="0"></a>
Code: Select all
<a href="<TMPL_VAR direct_link>"><img src="<TMPL_VAR site_url>/images/download.gif" border="0"></a>
Code: Select all
my $fname = $file->{file_name};
Code: Select all
if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && !$file->{message})
{
DownloadTrack($file) if $c->{mp3_mod_no_download};
$file->{song_url} = DownloadGenLink($file,"$file->{file_code}.mp3");
(undef,$file->{mp3_secs},$file->{mp3_bitrate},$file->{mp3_freq},$file->{mp3_artist},$file->{mp3_title},$file->{mp3_album},$file->{mp3_year}) = split(/\|/,$file->{file_spec}) if $file->{file_spec}=~/^A\|/;
$file->{no_link}=1 if $c->{mp3_mod_no_download};
$ses->{meta_keywords}.=", $file->{mp3_artist}" if $file->{mp3_artist};
$ses->{meta_keywords}.=", $file->{mp3_title}" if $file->{mp3_title};
$ses->{meta_keywords}.=", $file->{mp3_album}" if $file->{mp3_album};
}
Code: Select all
$file->{direct_link} = &DownloadGenLink($file);
Code: Select all
if($c->{mp3_mod} && $file->{file_name}=~/\.mp3$/i && !$file->{message})
{
DownloadTrack($file) if $c->{mp3_mod_no_download};
$file->{song_url} = DownloadGenLink($file,"$file->{file_code}.mp3");
(undef,$file->{mp3_secs},$file->{mp3_bitrate},$file->{mp3_freq},$file->{mp3_artist},$file->{mp3_title},$file->{mp3_album},$file->{mp3_year}) = split(/\|/,$file->{file_spec}) if $file->{file_spec}=~/^A\|/;
$file->{no_link}=1 if $c->{mp3_mod_no_download};
$ses->{meta_keywords}.=", $file->{mp3_artist}" if $file->{mp3_artist};
$ses->{meta_keywords}.=", $file->{mp3_title}" if $file->{mp3_title};
$ses->{meta_keywords}.=", $file->{mp3_album}" if $file->{mp3_album};
}
Code: Select all
<TMPL_UNLESS song_url>
<TMPL_IF direct_links>
<input type="hidden" name="down_direct" value="1">
<input type="submit" id="btn_download" value="Get Direct Link">
<TMPL_ELSE>
<input type="hidden" name="down_script" value="1">
<input type="submit" id="btn_download" value="<TMPL_VAR lang_download_file>">
</TMPL_IF>
</TMPL_UNLESS>
<TMPL_IF song_url>
<a href="<TMPL_VAR direct_link>" id="btn_download">Download Song Instantly</a>
</TMPL_IF>