Stories
Slash Boxes
Comments

Slash Open Source Project

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • by chromatic (177) on Monday December 24 2001, @01:25AM (#3833) Homepage
    If you're using Slash 2.2, it's fairly easy. The heart of "download.pl" (or whatever) will be a call to isAnon() and a check of $user->{karma}. You can be obscure and redirect to the appropriate weekly location, or subtle, storing the files where the webserver cannot normally get to them, reading and printing them within the Perl program.

    I'm working on a plugin and an article concurrently, so I'll have some example authorization code for you in a couple of weeks. It's really simple.

    • Yes, I'm running 2.2. Very cool, looking forward to your examples....
      --

      --
      It's either on the beat or off the beat, it's that easy.
    • It was very easy to do. Thanks for the tip in the right direction.

      Now, how does one get a perl script to read and send out files that aren't accessible normally to Apache?

      --

      --
      It's either on the beat or off the beat, it's that easy.
      • by Anonymous Coward
        I believe apache allows spefic rights to be granted to defined files or filetypes. in conf/httpd.conf towards the end you'll see the section on this.

        hope this helps,

        orteling@hotmail.com

    • I've got Slash::Gallery, a picture gallery plugin, almost done. One of its features will be that you can only view pictures if that picture is assigned to a group that you are a member of. I'll make it publically available sometime in the next few weeks, probably.