Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | 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
4
 clist=
5
!endif
6
 
7
clist=!words2items $clist
8
Clist=
9
!for s in $clist
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
27
!next s
28
 
29
ccnt=!wordcnt $Clist
30
 
31
cl=!translate ,; to $   $ in $class_connections
32
cl=!words2items $cl
33
clcnt=!itemcnt $cl
34
cllist=
35
!for clc in $cl
36
 c1=!char 1 of $clc
37
 c2=!char -1 of $clc
38
 ct=!translate /+ to , $ in $clc
39
 !distribute items $ct into n_,c_
40
 o_=0
41
 i_=0
42
 !if $c1=+
43
  o_=1
44
 !endif
45
 !if $c2=+
46
  i_=1
47
 !endif
48
 cllist=!append item $n_ $c_ $i_ $o_ to $cllist
49
 !if $n_ $c_=$connident $connclass
50
  !distribute words $i_ $o_ into connupd2, connupd1
51
 !endif
52
!next clc
53
 
54
!if $ccnt<1
55
 job2=first
56
!endif
57
 
58
!if $connident!=$empty
59
 wims_prefix=
60
 !readdef wimshome/log/classes/.connections/$connident
61
 wims_prefix=$wims_pfback
62
 url=$(url_$connident)
63
 site=$(site_$connident)
64
!else
65
 job2=first
66
!endif
67