man that's a seeming conudrum question, eh?  Ever hear the famous problem? 
"There is a barber who lives in a small town.  The barber shaves all
those men and only those men who do not shave themselves.
Does the barber shave himself?"

DK

On 8/4/05, Mike Soultanian <[EMAIL PROTECTED]> wrote:
> Hey Barney,
> Thanks for the code example.  I'm going to start working on the security
> tag and keep people posted with my progress.  It's a pretty involved
> system that people might be interested.
> 
> > with that at the raw filesystem level.  And since it's happening once
> > for the file, not once per execution, you'll also alleviate issues
> > with running the file on your dev server and having to unset the IDs
> > befor eyou deploy live and stuff.
> 
> You know, while somewhat unrelated, you indirectly brought up a good
> point.  Obviously the file will be assigned a unique ID upon first run
> and that ID is registered in the, let's say dev, database.  I would then
> compile the file and send it over to the prod server.  I would also need
> to copy the table in the dev databse that stores all the unique file IDs
> for those files over to the prod database, but at least I don't need
> those files to edit themselves after they've been compiled...
> 
> Thanks for your help!
> Mike
> 
> 
> > On 8/3/05, Mike Soultanian <[EMAIL PROTECTED]> wrote:
> >
> >>I am trying to create a file security system and I have a custom tag
> >>that checks the security settings on a CFM file every time it is
> >>accessed.  So, at the top of the page would be:
> >>
> >><CF_SECURITYCHECK>
> >>
> >>This tag checks the database to see if the logged-in user has access to
> >>the file and continues loading the page if the user does.  If the user
> >>doesn't have access, the user will be sent to an error page.  Obviously,
> >>to keep track of every file on the system the database needs to have a
> >>unique identifier for each file.  I could use the directory/filename,
> >>but if move a file, that would cause problems because the database would
> >>"lose" the information on that file and permissions would have to be
> >>reset (pain).
> >>
> >>So, what I want to happen is when a CFM page is accessed for the first
> >>time, I want it to edit itself and put in a a unique file identifier
> >>that it will then be stored in the database.  So, for example, it will
> >>take the following:
> >>
> >><CF_SECURITYCHECK>
> >>
> >>and change it to:
> >>
> >><CF_SECURITYCHECK FileID="[some randomly generated unique number]">
> >>
> >>I know this may not be possible, but I thought I'd check anyways.
> >>Otherwise, does anyone know how I can identify a file by some unique
> >>characteristic (i.e. checksum maybe)?  It's kinda similar to an NTFS
> >>system where the system knows the permissions on a file regardless of
> >>where it moves to.
> >>
> >>What I would like to avoid is generating my own unique numbers in each
> >>file.  I could do it that way, but I'd like to find a clean and more
> >>automatic way to take care of it.
> >>
> >>Thanks,
> >>Mike
> >>
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213795
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to