| View previous topic :: View next topic |
| Author |
Message |
ghohan
Joined: 04 Mar 2010 Posts: 9
|
Posted: Mar 07, 2010 11:09 am Post subject: Xfilesharing 1.7 Fixed by me GhoHan |
|
|
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: | | $f->{referer}||=$ENV{HTTP_REFERER}; |
after that code add this below code
| Code: | | $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] |
|
| Back to top |
|
 |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Mar 08, 2010 12:29 pm Post subject: Re: Xfilesharing 1.7 Fixed by me GhoHan |
|
|
Mantap!
(Cool!) |
|
| Back to top |
|
 |
admin Site Admin

Joined: 22 Mar 2006 Posts: 1123
|
Posted: Mar 08, 2010 3:41 pm Post subject: |
|
|
Please remove this file from public access or we will cancel your license because of privacy policy violation:
| Quote: | | 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. |
|
|
| Back to top |
|
 |
ghohan
Joined: 04 Mar 2010 Posts: 9
|
Posted: Mar 08, 2010 4:07 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
mrperl
Joined: 06 Mar 2010 Posts: 65
|
Posted: Mar 09, 2010 12:21 am Post subject: Re: Xfilesharing 1.7 Fixed by me GhoHan |
|
|
ghohan:
If you want to share improvements, don't use whole files.
Instead, if you're on linux, do this:
| Code: |
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. |
|
| Back to top |
|
 |
|