XFileSharing Pro - [REQ] Export System (SOLVED)

Message
Author
Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

[REQ] Export System (SOLVED)

#1 Postby Namaless » May 01, 2008 5:04 pm

Hi, I want a possible to export links example rapidshare.com... is possible or in development this features?

Regards.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#2 Postby Namaless » May 31, 2008 8:36 am

Hi, I have implemented Export System to use "ORDER BY" like Rapidshare:

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;
}
Please Update new version with this modification.

Regards.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#3 Postby PilgrimX182 » Jun 02, 2008 7:54 am

I've ALREADY implemented this in my current code 2 weeks ago I think.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#4 Postby Namaless » Jun 02, 2008 8:04 am

PilgrimX182 wrote:I've ALREADY implemented this in my current code 2 weeks ago I think.
mmm.. it's released or your development version?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#5 Postby PilgrimX182 » Jun 02, 2008 8:54 am

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 ;)

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#6 Postby Namaless » Jun 02, 2008 9:26 am

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.