Thanks for the nice plugin... Cheers, Dan
On Sat, Jan 2, 2010 at 11:02 PM, Kevin <[email protected]> wrote: > Not sure if this could be obtained another way, but I wanted to access the > web server variables on who the web visitor was from. > > In most of my website templates, I have these setup so that I can access > them system wide incase I need the info to do something. > > Created a plugin to load the some variables with common Apache web server > info like: > > {wv-remote_addr} Visitor's Remote IP > {wv-remote_host} Visitor's Hostname if available > {wv-webroot} Webroot > {wv-requri} Requested URI > {wv-servername} Requested Server Name > {wv-useragent} Visitor's User Agent String > {wv-referer} Referer if any > {wv-self} Self Script Name > > These are simply loads of what the web server knows about the visitor like: > > $BOLTvar['$wv-remote_addr'] = $_SERVER['REMOTE_ADDR']; > > I used unique variable names so that they don't collide with other boltwire > variables. > > To use it on a site, you would use [(webvisitor)] in the top zone and then > reference the variables like {vw-remote_addr} to see the IP the visitor is > coming from for example. > > Had a lot of problems posting this to the Boltwire site due to Connection > Timeouts but it appears to have posted okay. > > -- > > You received this message because you are subscribed to the Google Groups > "BoltWire" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/boltwire?hl=en. > -- You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/boltwire?hl=en.
