1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
Token File System - alpha
This is the 1st public release of the Token File System module forthe Roxen Web Server. At the moment I am not able to actively support this, but I do ask that any changes you make get sent back to me so that I can add it to the tarball.
I have a problem that I failed miserably at high school english, as I was to interested in geek stuff, so I quite often find it hard to communicate things, so if it sounds like I am rambling here, get what you can out of it, and forgive my incoherency.
** authors note - from here on in the word tokens can/will be used interchangeable with the word credits
We wrote this as we wanted to be able to sell access to a directory tree based on Paying per view. - It doesn't sound simple, but read below for an incredibly inarticulate, but hopefully understandable map of how it works.
you mount a copy of this module as you would any normal filesystem on roxen.
(ie /cards)
what we want to do is to allow someone to purchase credits (or tokens) to view the indiuvidual items underneath /cards - ie /cards/one/ or /cards/two/
tokenfs.pike will allow you to, based on time & credits, to limit access to these sub directories below where the module is mounted.
if each item we are selling has a sale value of 10 credits, and joe has 15 credits, he will be able to view /cards/one *or* cards/two. once he has viewed either of these directories, he will only have 5 credits left, and hence will not be able to view the other.
we can set the expire time of a user to as little as required, the tokenfs.pike script will garbage collect for you.
you set the value of the items by filesystem. just make copys of token fs within roxen, and give them new values for time & credit costs. all you have to do is to create a directory below the mounted one, for each item at that cost.
email me <allen@gist.net.au> if you have any questions, but please, plug it in first & see what you can make out before you waste my time with *silly* questions (ie ones with obvious answers)
The code should be simple enough, Bill Welliver helped me write most of it (see his excellent site at source.riverweb.com)
Thank you Bill, for all of your help!!.
Good Luck with this, and please let me know how you get on.
regards..
Allen Bolderoff
allen@gist.net.au
|