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 textTry 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, 107009 Palma de Mallorca, Spain_____________________________________________Tel: +34 971.43.12.77Fax: +34 971.43.08.18E-mail: ckefauver@ibacom.esURL: 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:
>---------->>> 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 textTry 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, 107009 Palma de Mallorca, Spain_____________________________________________Tel: +34 971.43.12.77Fax: +34 971.43.08.18E-mail: ckefauver@ibacom.esURL: 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)