Rev 2477 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | clist=!filelist $wims_home/log/classes/.connections |
2 | !read adm/class/authchars |
||
3 | !if / isin $clist |
||
12412 | bpr | 4 | clist= |
23 | reyssat | 5 | !endif |
6 | |||
7 | clist=!words2items $clist |
||
8 | Clist= |
||
9 | !for s in $clist |
||
12412 | bpr | 10 | !reset ident_site ident_password ident_type back_url back_ident back_password |
11 | wims_prefix= |
||
12 | !readdef wimshome/log/classes/.connections/$s |
||
13 | wims_prefix=$wims_pfback |
||
14 | si=!replace :// by $ $ in $back_url |
||
15 | site_$s=!word -1 of $si |
||
16 | ptest=!text select $char_alnum in $ident_password |
||
17 | ptest2=!text select $char_alnum in $back_password |
||
18 | !if $ident_password!=$empty and $ptest=$ident_password and \ |
||
19 | $back_password!=$empty and $ptest2=$back_password and \ |
||
20 | :// isin $back_url |
||
21 | url_$s=!replace https:// by http:// in $back_url |
||
22 | desc_$s=$ident_desc |
||
23 | type_$s=$ident_type |
||
24 | ip_$s=ident_site |
||
25 | Clist=!append item $s to $Clist |
||
26 | !endif |
||
23 | reyssat | 27 | !next s |
28 | ccnt=!wordcnt $Clist |
||
29 | |||
30 | cl=!translate ,; to $ $ in $class_connections |
||
31 | cl=!words2items $cl |
||
32 | clcnt=!itemcnt $cl |
||
33 | cllist= |
||
34 | !for clc in $cl |
||
12412 | bpr | 35 | c1=!char 1 of $clc |
36 | c2=!char -1 of $clc |
||
37 | ct=!translate /+ to , $ in $clc |
||
38 | !distribute items $ct into n_,c_ |
||
39 | o_=0 |
||
40 | i_=0 |
||
41 | !if $c1=+ |
||
42 | o_=1 |
||
43 | !endif |
||
44 | !if $c2=+ |
||
45 | i_=1 |
||
46 | !endif |
||
47 | cllist=!append item $n_ $c_ $i_ $o_ to $cllist |
||
48 | !if $n_ $c_=$connident $connclass |
||
49 | !distribute words $i_ $o_ into connupd2, connupd1 |
||
50 | !endif |
||
23 | reyssat | 51 | !next clc |
52 | |||
53 | !if $ccnt<1 |
||
12412 | bpr | 54 | job2=first |
23 | reyssat | 55 | !endif |
56 | !if $connident!=$empty |
||
12412 | bpr | 57 | wims_prefix= |
58 | !readdef wimshome/log/classes/.connections/$connident |
||
59 | wims_prefix=$wims_pfback |
||
60 | url=$(url_$connident) |
||
61 | site=$(site_$connident) |
||
23 | reyssat | 62 | !else |
12412 | bpr | 63 | job2=first |
23 | reyssat | 64 | !endif |