![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
trying to mod download.php
trying to mod this download.php to reject members who havent been authed by the email.
heres what i got:
however when i do that i did a test user and i was still able to download the file. any ideas? No members have liked this post.
|
||||
|
#2
|
||||
|
||||
|
Out of curiousity why don't you just set the appropriate permissions for the 'Users Awaiting Email Confirmation' group? Just set 'Can download attachments' to 'No'.
__________________
Steve Machol, vBulletin Moderator Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request! No members have liked this post.
|
|
#3
|
||||
|
||||
|
no, the download.php is an external file from vbulletin, my can download attachments is already at "no"
No members have liked this post.
|
|
#4
|
||||
|
||||
|
Ah, ok. I should have noticed this wasn't a normal vB file!
__________________
Steve Machol, vBulletin Moderator Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request! No members have liked this post.
|
|
#5
|
||||
|
||||
|
especially with the
up top hehe ![]() anyways still looking for a solution ![]() No members have liked this post.
|
||||
|
#6
|
||||
|
||||
|
I seemed to fix this by totally re-doing my download.php and putting it in my forums directory. anyways heres what i did:
i love meta refresh hehe anyways feel free to use it, just change the address, also the to link to the file:Usage: if you have www.domain.com/files/yap.zip you would make the link: http://www.domain.com/forum/download.php?file=yap.zip if you have a link like: www.domain.com/files/coolstuff/yap.zip you would make the link: http://forums.voogru.com/download.ph...lstuff/yap.zip and ect. *wonder if this would qualify as a hack aranoid:No members have liked this post.
Last edited by voogru : 22 Apr 2002 at 02:24. |
||||
|
#7
|
||||
|
||||
|
What's the point in this hack if you can see the filename in the URL? You can just go straight to it without using download.php.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#8
|
||||||||
|
||||||||
|
you dont understand it, if you set the ure to refresh to like
when you link to the file you would put. download.php?file=yap.zip and it would access
i just put the main dir as an example, the file could be called from anywhere on the server only showing the path and file after the directory where the files are hiden, i cant really explain it that well :ermm: No members have liked this post.
|
||||||||
|
#9
|
||||
|
||||
|
In that case don't use META tags, it's very easy to find them out (just view the HTML source!). Use PHP's header() function. (i.e header('Location: yourfile');)
![]()
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
Last edited by Chen : 23 Apr 2002 at 13:05. |
|
#10
|
||||
|
||||
|
yeah but they will have to be quick if u set the refresh to 0
No members have liked this post.
|
|
#11
|
||||
|
||||
|
You can "Save Target As..." and have the HTML page downloaded to your computer.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
|
#12
|
||||
|
||||
|
Ill play with that header thing once my site gets back up, sites going
down everyday now :angry: No members have liked this post.
|
|
#13
|
||||
|
||||
|
wow thanks FireFly, i got it working
![]()
No members have liked this post.
|
||||
|
#14
|
||||
|
||||
|
hmm, vbulletin paresed it
anyways thanks, and i got it working without the meta-refresh now ![]() No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 10:45.




aranoid:
anyways thanks, and i got it working without the meta-refresh now
