Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
services:network:vpnpwreq2 [2011/11/15 18:29]
zanello
— (current)
Line 1: Line 1:
-~~NOCACHE~~ 
-===== Group Authentication ===== 
- 
-<php> 
- 
-$group_vpns = array( 
-  ap => array(n => '​SISSA-VPN-AP',​ p => '​ap123'​),​ 
-  cm => array(n => '​SISSA-VPN-CM',​ p => '​cm123'​),​ 
-  cns => array(n => '​SISSA-VPN-CNS',​ p => '​cns123'​),​ 
-  elab => array(n => '​SISSA-VPN-ELAB',​ p => '​elab123'​),​ 
-  fm => array(n => '​SISSA-VPN-FM',​ p => '​fm123'​),​ 
-  he => array(n => '​SISSA-VPN-HE',​ p => '​he123'​),​ 
-  ilas => array(n => '​SISSA-VPN-ILAS',​ p => '​ilas123'​),​ 
-  lm => array(n => '​SISSA-VPN-LM',​ p => '​lm123'​),​ 
-  ma => array(n => '​SISSA-VPN-MA',​ p => '​ma123'​),​ 
-  nb => array(n => '​SISSA-VPN-NB',​ p => '​nb123'​),​ 
-  sbp => array(n => '​SISSA-VPN-SBP',​ p => '​sbp123'​),​ 
-  staff => array(n => '​SISSA-VPN-STAFF',​ p => '​staff123'​),​ 
-  other => array(n => '​SISSA-VPN-OTHER',​ p => '​other123'​),​ 
-  app => array(n => '​SISSA-VPN-APP',​ p => '​app123'​),​ 
-  medialab => array(n => '​SISSA-VPN-MEDIALAB',​ p => '​medialab123'​),​ 
-  sis => array(n => '​SISSA-VPN-SIS',​ p => '​sis123'​),​ 
-); 
- 
-global $USERINFO; 
- 
-$grps = $USERINFO['​grps'​];​ 
- 
-echo "<​div class=\"​table sectioneditPW\"><​table class=\"​inline\">​\n";​ 
- 
-echo "<​tr class=\"​row0\"><​th class=\"​col0\">​Name</​th><​th class=\"​col1\">​Password</​th></​tr>​\n";​ 
- 
-$i = 0; 
-foreach ($grps as $group) { 
-  if (isset($group_vpns[$group])) { 
-    $group_vpn = $group_vpns[$group];​ 
-    echo "<​tr class=\"​row"​ . ++$i . "​\"><​td class=\"​col0\">"​ . $group_vpn['​n'​]. "</​td><​td class=\"​col1\">"​ . $group_vpn['​p'​]. "</​td></​tr>​\n";​ 
-  } 
-} 
- 
-echo "</​table></​div>";​ 
- 
-</​php>​