Hi, I want a possible to export links example rapidshare.com... is possible or in development this features?
Regards.
XFileSharing Pro - [REQ] Export System (SOLVED)
Hi, I have implemented Export System to use "ORDER BY" like Rapidshare:
Please Update new version with this modification.
Regards.
Code: Select all
sub MyFilesExport
{
my $filter_folder="AND file_folder='$f->{fld}' " if defined($f->{fld}) && $f->{fld}=~/^[a-zA-Z0-9-_\.]*$/;
my $list = $db->SelectARef("SELECT * FROM Files WHERE usr_id=? $filter_folder ORDER BY file_name",$ses->getUserId);
print"Content-type:text/plain\n\n";
for my $file (@$list)
{
$file->{file_code} = $ses->getUser->{usr_login}."/$file->{file_code}" if $ses->getUser->{usr_add_login};
$file->{download_link} = "$c->{site_url}/$file->{file_code}";
$file->{download_link} .= {0 => "/$file->{file_name}.html",
1 => "/$file->{file_name}.htm",
2 => "/$file->{file_name}",
3 => ".html",
4 => ".htm"
}->{$c->{link_format}};
print"$file->{download_link}\n";
}
exit;
}
Regards.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm