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:

in conversions.db crashes unix webcat (1999) Permission denied? (2004) [WebDNA] WebDNA jQuery JSON javascript stuff (2010) Dubble Sku's in a Database (1999) RE: [WebDNA] OS and version (2019) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) OT (maybe) Setting up local (non internet) test computers (2000) WC Database Format (1997) Newbie problem blah blah blah (1997) IE-caching (1998) WebCatalog not running after upgrade (2000) WIDGET: random image generator (2007) Lineitems [text*] (2004) Search probl. since change WebCatalog from 2.1.3 to 3.0 (1998) database size? (1997) What am I doing wrong? (2000) Online reference (1997) problems with 2 tags (1997) Keep away (1997) [ipaddress] (2003)