XFileSharing Pro - Impurities bugs, must be quickly modified

Message
Author
adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

Impurities bugs, must be quickly modified

#1 Postby adiga » Oct 13, 2011 2:32 am

1- When you upload image file with password, image is displayed directly without prompting for password for visitors and members

2 - When you upload video file with password, video is displayed directly without prompting for password for visitors and members, but you are prompted for the password to download the file only and without password to watch

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#2 Postby adiga » Oct 13, 2011 10:59 am

3 - If the file is protected with a password and public , any member can add the file to their account without knowing the password, and therefore easily download the file

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

#3 Postby admin » Oct 13, 2011 11:33 am

Password is for download, but not for preview.
As for adding to my account - thanks, will fix that.

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#4 Postby adiga » Oct 13, 2011 12:06 pm

thanks admin
adding to my account, the most important thing is to preserve of privacy

glumbo
Posts: 211
Joined: Mar 11, 2011 6:26 am

#5 Postby glumbo » Oct 14, 2011 11:55 pm

Good catches adiga

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#6 Postby PowerChaos » Oct 15, 2011 3:13 pm

those things can be easy changed inside the script

the adding to premium is fixed by me on a easy way

Code: Select all

<TMPL_IF premium><TMPL_IF add_to_account><TD colspan=2 align=right><small id="am<TMPL_VAR file_id>"><a href="#" onClick="return jah('<TMPL_VAR site_url>/?op=my_files&add_my_acc=<TMPL_VAR file_code>','am<TMPL_VAR file_id>');"><TMPL_VAR lang_add_to_my_account></a></small></TD></TMPL_IF></TMPL_IF>
you can modifie this code a litle so it does not show when there is a pass on it ??

Code: Select all


<TMPL_UNLESS pass_required><TMPL_IF add_to_account><TD colspan=2 align=right><small id="am<TMPL_VAR file_id>"><a href="#" onClick="return jah('<TMPL_VAR site_url>/?op=my_files&add_my_acc=<TMPL_VAR file_code>','am<TMPL_VAR file_id>');"><TMPL_VAR lang_add_to_my_account></a></small></TD></TMPL_IF></TMPL_UNLESS>
you can do the same for image previeuw

use

Code: Select all

TMPL_UNLESS
to show exept if value is avaible (in this case a password)

you can find it back in download1.html

here is the code for image previeuw

Code: Select all

<TMPL_IF image_url>
<TMPL_UNLESS pass_required>
<div id="hid" style="display:none;">
<p><img src="<TMPL_VAR image_url>" class="pic" alt="<TMPL_VAR file_name>" onLoad="scaleImg(this)" style="-ms-interpolation-mode:bicubic" GALLERYIMG="no"></p>
</div>
</TMPL_UNLESS>
</TMPL_IF>
please note ,
my code is a bit modified because i use a differend system (i use a preload system) so i would suggest to take it as a example and not for live usage as that will not work ( your counters will be missing and maybe some more things)

it is to show that the
<TMPL_UNLESS pass_required>
is the code you need to use to hide everything when a pass is asked

enjoy

Greetings From PowerChaos

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#7 Postby adiga » Oct 15, 2011 6:59 pm

Really good work PowerChaos
you are genius
thank you