I have a bit of a problem, and can't think of a nice clean way of sorting it out.
Here's some back-ground:
I have written a little php application which enables a user to 'book' / 'reserve' a parcel of land through a little webpage. I've written an LSL script which talks to a MySQL database to determine if (at any point in time) that parcel has been reserved ... and who has access to it. So currently, I have set my parcel of land to 'no public access' ... so everyone sees the 'No Entry' sign around the land - if my parcel-manager script detects the person who made the booking (on the website) then they are granted access to the parcel. So, this means that only the person who has made a booking for the parcel has access to the parcel... - a simple reservation system.
OK, the problem is ... it works the wrong way around. What I really want is .... for the land to have public access ... a part from the times which are booked. So, normally anyone can visit and use the parcel. But, if someone has made a booking ... then only the person who has made the booking can have access (e.g. the public access is removed during the booking period).
So, what I would like to do is to control the public access attribute of a parcel of land from within a script ( in an object which resides in the parcel, and is owned by the same group which owns the parcel).
Does anyone have any ideas ? I've been looking through the LSL library / API and can't see (perhaps I can't see the wood for the trees
) a way of controlling the public access (I can see the 'Get' functions .... appears to not be any 'Set' functions though - grrrrr).I've thought about trying to work-out the members of a group and adding all members to the access-list (but ... don't appear to be able to do this either). The only approach I can think of at the moment is sensing anyone near the parcel and granting them access (by default) and then removing access for a booking .... though this is really clunky --- I would very much rather not do this.... .... what I want to do is to control the public access attribute from within a script.
Please, if you have any ideas / approaches / experience of this type of problem ... please help - it would be very much appreciated.
Thanks in advance, Eli


