| View previous topic :: View next topic |
| Author |
Message |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: May 01, 2008 5:04 pm Post subject: [REQ] Export System (SOLVED) |
|
|
Hi, I want a possible to export links example rapidshare.com... is possible or in development this features?
Regards. |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: May 31, 2008 8:36 am Post subject: |
|
|
Hi, I have implemented Export System to use "ORDER BY" like Rapidshare:
| Code: |
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;
}
|
Please Update new version with this modification.
Regards. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Jun 02, 2008 7:54 am Post subject: |
|
|
| I've ALREADY implemented this in my current code 2 weeks ago I think. |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: Jun 02, 2008 8:04 am Post subject: |
|
|
| PilgrimX182 wrote: | | I've ALREADY implemented this in my current code 2 weeks ago I think. |
mmm.. it's released or your development version? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Jun 02, 2008 8:54 am Post subject: |
|
|
Dvelopment version. Still fixing some bugs there for new features.
Estimated time for next version release is begining of July. Cause I'm leaving on vacation this Sat for 2 weeks  |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: Jun 02, 2008 9:26 am Post subject: |
|
|
| PilgrimX182 wrote: | Dvelopment version. Still fixing some bugs there for new features.
Estimated time for next version release is begining of July. Cause I'm leaving on vacation this Sat for 2 weeks  |
It's good work.
Regards. |
|
| Back to top |
|
 |
|