Rev 17665 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6678 | guerimand | 1 | !distribute item $wims_read_parm into http_,size_ |
2 | !default size_=50 |
||
6717 | guerimand | 3 | !if session isin $http_ |
17665 | bpr | 4 | !exit |
6717 | guerimand | 5 | !endif |
6 | !let qrencode_=!defof QRencode_command\ |
||
7 | QRencode_open in wimshome/log/wims.conf |
||
8 | !distribute line $qrencode_ into qrencode_,qrencodeopen_ |
||
9 | !if $qrencodeopen_!=yes |
||
17665 | bpr | 10 | !exit |
6717 | guerimand | 11 | !endif |
12 | !default qrencode_=!defof DF_QRencode_command in wimshome/public_html/bases/sys/defaults.conf |
||
6689 | guerimand | 13 | !let name_=!word 1 of $qrencode_ |
14 | !let test_=!sh which $name_ |
||
15 | !if /$name_ notin $test_ |
||
17665 | bpr | 16 | !exit |
6689 | guerimand | 17 | !endif |
17672 | czzmrn | 18 | !! need quotes to escape & in shell |
19 | !sh $qrencode_ $wims_home/s2/$wims_session/qrencode.png "$http_" |
||
17186 | bpr | 20 | <img src="$wims_ref_name?session=$wims_session&+cmd=getins&+special_parm=qrencode.png" |
21 | style="width:$(size_)px" alt="qrencode"> |