Re: permission stuff -> download-section

Reto Gassmann <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Christian Stocker schrieb:

 >
 > On 23.11.2005 16:11 Uhr, Adrian Nussbaum wrote:
 >
 >> hello again ;)
 >>
 >> What is the actual stadium of all the permission-stuff? Is there 
already anything more than "just" the simple perm?
 >
 >
 >
 > no. it's still on the todo list.
 >
 >
 >> I need a download-section, a page, where some files (pdf/mp3) could 
only be downloaded when you are logged in. To protect the download- page
 >> with the links to the files is one thing. Should be possible.  But how
 >> do I protect the files themselves? Can I just lay the simple- perm-thing
 >> on the "files"-directory?
 >
 >
 >
 > Gassi made something like that lately, I bug him about the code. It's
 > nothing fancy,

:(
but you're right, the code is just a quick/dirty hack :)

 > but should do the trick for you. But you currently can't
 > just use the simple-perm-thing for the files directory. All the stuff
 > from the files directory is served without PHP and Flux CMS for
 > performance reasons.

the "trick" is another rewrite rule like

RewriteCond  %{REQUEST_URI}  ^/*files/user/
RewriteRule ^(.*)$ ./inc/bx/php/i'll do some perm-checks here.php?file=$1

i can help you to implement :)

 >> and one last question about all this:
 >> where do I enter the users? All in the admin interface? Could they 
theoretically log in also into the admin-part?
 >
 >
 >
 > If you use simpleperm, and don't give them the GID-bit 1, then they
 > can't login into the admin-part. But yes, you have to enter them in the
 > admin interface

but you can make a loginform also on the public-page

cheers gassi

 >
 > chregu
 >
 >
 >>
 >> thanx a lot
 >>
 >> adrian
 >>
 >>
 >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 >>  xpure - communication. digital and printed - www.xpure.ch
 >>  adrian nussbaum | neumattstrasse 107 | ch-3422 ruedtligen
 >>  mobile: + 41 764 283 913   |    private: + 41 344 456 061
 >>  [email protected] | http://www.xpure.ch |  http://blogomanie.xpure.ch
 >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 >>
 >>
 >
 >


-- 

mit freundlichen grüssen

reto gassmann

:: netzwirt.ch - housing - hosting - entwicklung
:: www.netzwirt.ch - [email protected]
:: mobile - 079 418 74 61
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.