Re: Replace context problem ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12530
interpreted = N
texte = At 7:11 PM -1000 7/17/97, Kenneth Grome altered the fabric of cyberspace, writing:> As the administrator of my web site I would like to be able to update ANY > record in ANY database. This seems like a reasonable request, right? >Here! Here! > Okay, so in order to do that, first I have to type my own username/password > into the browser's authentication box in order to access the [protected] > page for my admin replace template. So far, so good. I enter MY admin > username and password into the browser's authenticate box and I can then > access the replace form. >Thats right. If you use a protected page you will have to type a usr/pass combo. Ant this is where your problem begins. WebCat now has only your user/pass and not the record owners in the db.Solution??You have to now do a $Search for the record that you want to replace again on this page. Then include a link that will have a form to replace the values that you want to change. The URL to the link needs to contain &user=[username]&pass=[password]. This should collect the user/pass combo from the searched record. On the Edit.tmpl file you can do your editing and then send that off to a validator.tmpl to replace the values you changed.Remember if you try to use [protect] on the .tmpl pages down the path, you will again be forced into the same loop as before.The solution that I used had a differant approach, since this kind of action always takes place here. I used [ShowIf [IPAddress]^.net-hwy.com] to hide the link. Yes, I know that [IPAddress] should return a number, BUT if you have 'use DNS' checked in WebStar, it will return the 'host name' of a DNS named box. Since I control the DNS, I name the box. That way someone can't spoof an IP number. Even if I am away from home, I can change the IP address on the box that I'm using to one that I have a DNS record to and get the same effect.> > I was asking Grant if it would make sense to make WebCat2 use the > username/password values I'm trying to get it to use - before trying to use > the browser's username/password values. I don't know how the WebCat2 code > is written, though, so I don't know if this even possible. I feel that it would be ever so much more practical to have WebCat also look at the user.db for Admin user/pass combo that would be acceptable to over ride the standard username password security in the .db.Hope that I have brought some light to this...Just another 'Local Boy' displaced to the 'Mainland' by circumstance.Aloha<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Associated Messages, from the most recent to the oldest:

    
  1. Re: Replace context problem ... (Glenn Davis 1997)
  2. Re: Replace context problem ... (Kenneth Grome 1997)
  3. Re: Replace context problem ... (Glenn Davis 1997)
  4. Replace context problem ... and answers (Kenneth Grome 1997)
  5. Replace context problem ... (Kenneth Grome 1997)
At 7:11 PM -1000 7/17/97, Kenneth Grome altered the fabric of cyberspace, writing:> As the administrator of my web site I would like to be able to update ANY > record in ANY database. This seems like a reasonable request, right? >Here! Here! > Okay, so in order to do that, first I have to type my own username/password > into the browser's authentication box in order to access the [protected] > page for my admin replace template. So far, so good. I enter MY admin > username and password into the browser's authenticate box and I can then > access the replace form. >Thats right. If you use a protected page you will have to type a usr/pass combo. Ant this is where your problem begins. WebCat now has only your user/pass and not the record owners in the db.Solution??You have to now do a $Search for the record that you want to replace again on this page. Then include a link that will have a form to replace the values that you want to change. The URL to the link needs to contain &user=[username]&pass=[password]. This should collect the user/pass combo from the searched record. On the Edit.tmpl file you can do your editing and then send that off to a validator.tmpl to replace the values you changed.Remember if you try to use [protect] on the .tmpl pages down the path, you will again be forced into the same loop as before.The solution that I used had a differant approach, since this kind of action always takes place here. I used [ShowIf [ipaddress]^.net-hwy.com] to hide the link. Yes, I know that [ipaddress] should return a number, BUT if you have 'use DNS' checked in WebStar, it will return the 'host name' of a DNS named box. Since I control the DNS, I name the box. That way someone can't spoof an IP number. Even if I am away from home, I can change the IP address on the box that I'm using to one that I have a DNS record to and get the same effect.> > I was asking Grant if it would make sense to make WebCat2 use the > username/password values I'm trying to get it to use - before trying to use > the browser's username/password values. I don't know how the WebCat2 code > is written, though, so I don't know if this even possible. I feel that it would be ever so much more practical to have WebCat also look at the user.db for Admin user/pass combo that would be acceptable to over ride the standard username password security in the .db.Hope that I have brought some light to this...Just another 'Local Boy' displaced to the 'Mainland' by circumstance.Aloha<--Glenn-->~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Glenn & Renee Davis Exclusively Web / Net Highway (916) 887-0678 Web Page Design / Hosting Services POB 157, Cool,CA 95614-0157 http://www.ExclusivelyWeb.com http://www.Net-Hwy.com &&& ||| (@ @) (@ @) ----------------------------ooO---U---Ooo---------------ooO--(_)--Ooo------->> Mailto:renee@Net-Hwy.com Mailto:glenn@Net-Hwy.com Mailto:renee@ExclusivelyWeb.com Mailto:glenn@ExclusivelyWeb.com Graphics Design Webmaster Glenn Davis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Search/sort in URL Was: GuestBook example (1997) Uh...can someone help me out with the b10? (1997) Protect vs Authenicate (1997) Getting total number of items ordered (1997) quantity minimum problem (1997) So many lookers, hey smith micro (2003) Using Cookie for client specific info? (1997) Emailer (WebCat2) (1997) template includes encrypted template (1999) Multiple catalog databases and showcart (1997) more trouble with [showif] in [search] = busted [shownext] (2000) CyberSource (2005) [WebDNA] WebDNA 8.2 and BioType (2016) [WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016) groupfields .. again... (2000) dates as search criteria (2000) [TCPConnect] questions/problems (2001) Execute Applescript (1997) Help! WebCat2 bug (1997) Re:Emailer Set Up (1997)