Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Apr 2002, 21:05
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

however when i do that i did a test user and i was still able to download the file.

any ideas?
Reply With Quote
  #2  
Old 21 Apr 2002, 21:16
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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!
Reply With Quote
  #3  
Old 21 Apr 2002, 21:20
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
no, the download.php is an external file from vbulletin, my can download attachments is already at "no"
Reply With Quote
  #4  
Old 21 Apr 2002, 21:24
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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!
Reply With Quote
  #5  
Old 21 Apr 2002, 21:29
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
especially with the

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

up top hehe

anyways still looking for a solution
Reply With Quote
  #6  
Old 22 Apr 2002, 01:37
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
I seemed to fix this by totally re-doing my download.php and putting it in my forums directory. anyways heres what i did:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Last edited by voogru : 22 Apr 2002 at 02:24.
Reply With Quote
  #7  
Old 22 Apr 2002, 12:50
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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
Reply With Quote
  #8  
Old 22 Apr 2002, 20:08
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
you dont understand it, if you set the ure to refresh to like


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

when you link to the file you would put.
download.php?file=yap.zip and it would access

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:
Reply With Quote
  #9  
Old 23 Apr 2002, 13:00
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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

Last edited by Chen : 23 Apr 2002 at 13:05.
Reply With Quote
  #10  
Old 23 Apr 2002, 15:31
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
yeah but they will have to be quick if u set the refresh to 0
Reply With Quote
  #11  
Old 23 Apr 2002, 15:39
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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
Reply With Quote
  #12  
Old 23 Apr 2002, 16:01
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Ill play with that header thing once my site gets back up, sites going
down everyday now :angry:
Reply With Quote
  #13  
Old 23 Apr 2002, 16:12
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
wow thanks FireFly, i got it working


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #14  
Old 23 Apr 2002, 16:40
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
hmm, vbulletin paresed it anyways thanks, and i got it working without the meta-refresh now
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:45.

Layout Options | Width: Wide Color: