<?php
   $orgunit 
'';
   
# Split up several structural units if necessary:
   #    Divide to ;
   
foreach (preg_split("/;/"$_SERVER['HTTP_SHIB_ORGPERSON_ORGUNIT']) as $ou) {
      if (
$orgunit$orgunit .= ' + ';
      
$orgunit .= $ou;
   }
   
# | Replace with ,
   
$orgunit preg_replace('/ \|/'','$orgunit);

   echo 
'Hello ' htmlspecialchars($_SERVER['HTTP_SHIB_PERSON_COMMONNAME']) .
        
'! You have logged in with user ID ' .
        
htmlspecialchars($_SERVER['REMOTE_USER']) .
        
' and been assigned to ' .
        
htmlspecialchars($_SERVER['HTTP_SHIB_EP_UNSCOPEDAFFILIATION']) .
        
' in the field ' .
        
htmlspecialchars($orgunit) .
        
'. Your E-mail address: ' .
        
htmlspecialchars($_SERVER['HTTP_SHIB_ORGPERSON_EMAILADDRESS']);

?>
<p><a href="../../../wtc.html#dir24">Back</a></p>