version 2b

<cfif application.url.farcry EQ left(URL.returnUrl,
len(application.url.farcry))>
        <cfthrow message="not application directory" type="customLogin"
detail="only use custom login for application" extendedinfo="use
farcry login">
</cfif>

The first version did not work in the application was in wwwroot, eg /
This version checks for the farcry mapping rather than the application mapping.


On Sat, 28 Aug 2004 14:43:32 +0800, Andrew Mercer <[EMAIL PROTECTED]> wrote:
> 
> 
> Hmmm, dont know what I was testing last time, but here is a better version
> 
> <cfif application.url.webroot NEQ left(URL.returnUrl,
> len(application.url.webroot))>
>         <cfthrow message="not application directory" type="customLogin"
> detail="only use custom login for application" extendedinfo="use
> farcry login">
> </cfif>
> 
> On Sat, 28 Aug 2004 14:05:55 +0800, Andrew Mercer <[EMAIL PROTECTED]> wrote:
> > I have put this at the top of my custom login (customadmin\login\login.cfm)
> >
> > <cfif listFind(CGI.SCRIPT_NAME, application.url.webroot, '/') NEQ 1>
> >         <cfthrow message="not application directory" type="Security"
> > detail="only use custom login for application" extendedinfo="use
> > farcry login">
> > </cfif>
> >
> > you could also use CGI.PATH_INFO
> > depends if you are on linux or windows or what webserver is being user
> > or a combination of any of the above. I think one is always available
> > and the other isnt.
> >
> >
> >
> > On Sat, 28 Aug 2004 10:02:12 +0800, Andrew Mercer <[EMAIL PROTECTED]> wrote:
> > > OK, I will go with this.
> > >
> > > What would be a good thing to test for?
> > > During the install, you get to enter the farcry adming direcory
> > > (default /farcry), is this saved in the application scope? And then
> > > test it agains the CGI or similar?? or maybe I should be testing for
> > > the application.
> > >
> > > What is the best way to detirmine if it is a farCry or application login?
> > >
> > >
> > >
> > > On Fri, 27 Aug 2004 17:27:48 +1000, Geoff Bowers <[EMAIL PROTECTED]> wrote:
> > > > Andrew Mercer wrote:
> > > > > Is there a way to get farcry to use it's login and the site use the custom 
> > > > > one?
> > > > > I have through about gernerating an error (cfabort) in the custom
> > > > > login is not referenced from the site, but would like a more elegant
> > > > > solution
> > > >
> > > > Have you tried using CFTHROW?  ie. if the person is logging into the
> > > > farcry admin then CFTHROW.  Althernatively you could write a switch and
> > > > have two custom forms in your login.cfm; one for admin users and one for
> > > > members.
> > > >
> > > > -- geoff
> > > > http://www.daemon.com.au/
> > > >
> > > >
> > > >
> > > > ---
> > > > You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
> > > > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > > > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > > >
> > >
> >
> 
> ---
> You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to