Rev 4667 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4561 | obado | 1 | # ListClasses |
2 | # liste toutes les classes de ce serveur qui autorisent une connexion avec le serveur distant |
||
3 | |||
4629 | obado | 4 | #Option contient la liste des attributs a afficher |
4640 | obado | 5 | #l'option "all" est un raccourci pour obtenir la liste complete des infos possibles |
6 | !if all iswordof $option |
||
7 | option=$low_classdefs |
||
8 | !endif |
||
1211 | bpr | 9 | |
4640 | obado | 10 | #On restreint la liste des options aux informations affichables dans un niveau "bas" de sŽcuritŽ |
11 | options=!listintersect $option and $low_classdefs |
||
12 | |||
13 | |||
1211 | bpr | 14 | cnt_class=!recordcnt wimshome/log/classes/.index |
4365 | obado | 15 | # On parcourt l'index des classes du serveur |
1211 | bpr | 16 | !for i = 1 to $cnt_class |
17 | cl=!record $i of wimshome/log/classes/.index |
||
4667 | obado | 18 | # lorsqu'une des classes autorise une connexion, on verifie |
1373 | bpr | 19 | !if $(cl[10]) != $empty |
4652 | bpr | 20 | rc=!words2items $(cl[10]) |
4365 | obado | 21 | index=1 |
22 | rchain = $ident,$rclass |
||
4640 | obado | 23 | |
24 | # On parcourt toutes les connexions declaree par la classe |
||
1373 | bpr | 25 | !while $(rc[$index]) != $empty |
4365 | obado | 26 | # on compare la connexion avec celle demandee |
27 | current= $(rc[$index]) |
||
28 | current=!translate internal +,; to $ $ in $current |
||
29 | current = !singlespace $current |
||
30 | current=!translate internal / to , in $current |
||
4640 | obado | 31 | |
32 | !if $(current[1]) = $(rchain[1]) |
||
33 | !if $rclass=ALL or $(current[2]) = $(rchain[2]) |
||
34 | listclasses=!append item $(cl[1]) to $listclasses |
||
35 | list_rclasses=!append item $(current[2]) to $list_rclasses |
||
36 | !endif |
||
1373 | bpr | 37 | !endif |
4640 | obado | 38 | |
1373 | bpr | 39 | !increase index |
4652 | bpr | 40 | !endwhile |
1211 | bpr | 41 | !endif |
42 | !next |
||
4365 | obado | 43 | |
44 | !if $listclasses = $empty |
||
45 | error= $error \ |
||
4746 | obado | 46 | there is no class allowed for this server |
4365 | obado | 47 | !endif |
48 | |||
49 | |||
50 | |||
1211 | bpr | 51 | !if $error!=$empty |
52 | !exit |
||
53 | !endif |
||
54 |