Re: Protect and Serve

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23482
interpreted = N
texte = >---------- > >> ok I changed it then tried it with this >> >> [ShowIf id![id]] >> [text]unauthorized=T[/text] >> [/ShowIf] >> >> [ShowIf access![access]] >> [text]unauthorized=T[/text] >> [/ShowIf] >> >> [ShowIf [unauthorized]=T] >> show me >> [/ShowIf] >> >> then no matter what it id and access was even if the name and password >> were in the database it still brings up the unauthorized text Try this, it works for me (I have added returns to make it readable): [hideif [url][password][/url] = [url][lookup db=RPCUsers.db&lookinfield=USER&value=[USERNAME] &returnfield=pass¬found=somethingrubbish][/url] ] [authenticate RiuRPC] [/hideif] [showif [url][password][/url] = [url][lookup db=RPCUsers.db&lookinfield=USER&value=[USERNAME] &returnfield=pass¬found=somethingrubbish][/url] ]

Protected stuff...

[/showif] Hope this helps, Charles _____________________________________________ Institut Balear de Comunicacions, S.L. Gremio Tejedores 22, 1 07009 Palma de Mallorca, Spain _____________________________________________ Tel: +34 971.43.12.77 Fax: +34 971.43.08.18 E-mail: ckefauver@ibacom.es URL: http://www.ibacom.es/ _____________________________________________ Public PGP signature (Clave publica PGP): http://www.ibacom.es/PGP/kefauver.txt _____________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Re: Protect and Serve (Joseph Pugh 1999)
  2. Re: Protect and Serve (Charles Kefauver 1999)
  3. Re: Protect and Serve (Mike_Davis 1999)
  4. Re: Protect and Serve (Dave MacLeay 1999)
  5. Re: Protect and Serve (Joseph Pugh 1999)
  6. Re: Protect and Serve (Kenneth Grome 1999)
  7. Re: Protect and Serve (Joseph Pugh 1999)
  8. Re: Protect and Serve (PCS Technical Support 1999)
  9. Re: Protect and Serve (Rob Marquardt 1999)
  10. Re: Protect and Serve (The Mooseman 1999)
  11. Re: Protect and Serve (Christer Olsson 1999)
  12. Re: Protect and Serve (Dave MacLeay 1999)
  13. Re: Protect and Serve (Martin Bech 1999)
  14. Re: Protect and Serve (The Mooseman 1999)
  15. Re: Protect and Serve (Christer Olsson 1999)
  16. Re: Protect and Serve (Rob Marquardt 1999)
  17. Re: Protect and Serve (The Mooseman 1999)
  18. Re: Protect and Serve (Lorenzo Perone 1999)
  19. Re: Protect and Serve (Lorenzo Perone 1999)
  20. Re: Protect and Serve (The Mooseman 1999)
  21. Re: Protect and Serve (RH Prouty 1999)
  22. Re: Protect and Serve (Kenneth Grome 1999)
  23. Re: Protect and Serve (Dave MacLeay 1999)
  24. Re: Protect and Serve (The Mooseman 1999)
  25. Re: Protect and Serve (Dave MacLeay 1999)
  26. Protect and Serve (The Mooseman 1999)
>---------- > >> ok I changed it then tried it with this >> >> [ShowIf id![id]] >> [text]unauthorized=T[/text] >> [/ShowIf] >> >> [ShowIf access![access]] >> [text]unauthorized=T[/text] >> [/ShowIf] >> >> [ShowIf [unauthorized]=T] >> show me >> [/ShowIf] >> >> then no matter what it id and access was even if the name and password >> were in the database it still brings up the unauthorized text Try this, it works for me (I have added returns to make it readable): [hideif [url][password][/url] = [url][lookup db=RPCUsers.db&lookinfield=USER&value=[username] &returnfield=pass¬found=somethingrubbish][/url] ] [authenticate RiuRPC] [/hideif] [showif [url][password][/url] = [url][lookup db=RPCUsers.db&lookinfield=USER&value=[username] &returnfield=pass¬found=somethingrubbish][/url] ]

Protected stuff...

[/showif] Hope this helps, Charles _____________________________________________ Institut Balear de Comunicacions, S.L. Gremio Tejedores 22, 1 07009 Palma de Mallorca, Spain _____________________________________________ Tel: +34 971.43.12.77 Fax: +34 971.43.08.18 E-mail: ckefauver@ibacom.es URL: http://www.ibacom.es/ _____________________________________________ Public PGP signature (Clave publica PGP): http://www.ibacom.es/PGP/kefauver.txt _____________________________________________ Charles Kefauver

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:

SUMM=T does not summarize by the sort parameters ... (2003) Upgrading to 10.1.5 (2002) Conveting Characters to Graphics (1997) using showpage and showcart commands (1996) What's New Date (2002) Shipping cost out of synch (1998) Rubbish in form fields (2004) WebCat2: Found Items syntax, etc. (1997) New Plug-in and Type 11 errors (1997) Sorry WebDNA server not running ????? (2002) no global [username] or [password] displayed ... (1997) Globals in 3.x (2002) HELP WITH DATES (1997) taxTotal, grandTotal (1997) Can't use old cart file (was One more try) (1997) Cart Numbers (1997) F3 crashing server (1997) emailer setup (1997) Limiting user access to .tmpl files (1997) Modulo function? (2000)