Xfilesharing 1.7 Fixed by me GhoHan

Powerfull XFileSharing version

Moderator: admin

Message
Author
ghohan
Posts: 9
Joined: Mar 04, 2010 8:22 am

Xfilesharing 1.7 Fixed by me GhoHan

#1 Postby ghohan » Mar 07, 2010 11:09 am

Ok i'm Just try to fix what problem i'm get and share to another.
I'm not cgi programer but just try to understand mean of that cgi script :)

Today i get one problem when i'm open link of download and i'm try click Premium Download. So... Page moved to Login page and then i'm login as Premium user then Page not come back to Download Page or link as i want to download.

This solustion from me:
1. Not redirect to download link after login as premium
I'm fixed that:
On file: <your cgi-bin folder>/index.cgi
Find text: sub Download1 in myfiles v1.7 on line 698

See text below:

Code: Select all

$f->{referer}||=$ENV{HTTP_REFERER};

after that code add this below code

Code: Select all

$f->{redirect}=$ENV{REQUEST_URI};

and save now....



Ok now you may open download link as guest and try to login and page will redirect automatic to download page as premium good luck.

Hope this fix will help you ...
Regards,

GhoHan[/code]

mrperl
Posts: 65
Joined: Mar 06, 2010 11:40 am

Re: Xfilesharing 1.7 Fixed by me GhoHan

#2 Postby mrperl » Mar 08, 2010 12:29 pm

Mantap!

(Cool!)

admin
Site Admin
Posts: 1785
Joined: Mar 22, 2006 12:32 pm

#3 Postby admin » Mar 08, 2010 3:41 pm

Please remove this file from public access or we will cancel your license because of privacy policy violation:

This program is the intellectual property of SibSoft Ltd. By ordering one copy of XFileSharing Pro license, you obtain right to use (install) it on only one domain/website. Redistribution is prohibited, and copies are permitted only for backup purposes. You are free to modify the program for your own use, but you may not distribute any modified copies of it.

ghohan
Posts: 9
Joined: Mar 04, 2010 8:22 am

#4 Postby ghohan » Mar 08, 2010 4:07 pm

Dear Admin, Sorry if this is a violation.
I just try to help others and there is no intention whatsoever.

I have remove that file and thanks for your information before.

mrperl
Posts: 65
Joined: Mar 06, 2010 11:40 am

Re: Xfilesharing 1.7 Fixed by me GhoHan

#5 Postby mrperl » Mar 09, 2010 12:21 am

ghohan:

If you want to share improvements, don't use whole files.

Instead, if you're on linux, do this:

Code: Select all

diff -u index.cgi index.new.cgi


and post that if it's only a few lines.

Then users can either apply the patch manually, or use the patch command
automatically.

Thanks, mrperl.


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests