Exemplo n.º 1
0
         }
         if (isset($usersAllClasses[$className])) {
             unset($usersAllClasses[$className]);
             if (!isset($usersAllClasses[$groupName])) {
                 $usersAllClasses[$groupName] = $groupParts;
             }
         }
     }
 }
 // Sort the classes
 $usersCurrentClasses = array_keys(sortClasses($usersCurrentClasses));
 $usersOldClasses = array_keys(sortClasses($usersOldClasses));
 $usersFutureClasses = array_keys(sortClasses($usersFutureClasses));
 $usersAllClasses = array_keys(sortClasses($usersAllClasses));
 // Fetch all of the class info
 $usersAllClassesInfo = slot::getSlotInfoForSlots($usersAllClasses);
 foreach ($usersAllClasses as $classSiteName) {
     if (!isset($usersAllClassesInfo[$classSiteName])) {
         $usersAllClassesInfo[$classSiteName] = array();
         $usersAllClassesInfo[$classSiteName]['slot_name'] = $classSiteName;
         $usersAllClassesInfo[$classSiteName]['slot_type'] = 'class';
         $usersAllClassesInfo[$classSiteName]['slot_owner'] = null;
         $usersAllClassesInfo[$classSiteName]['site_exits'] = false;
     }
 }
 // visitor are users who post to public discussions w/o logging in
 // visitors are not allowed to create sites
 if ($_SESSION[atype] == 'visitor') {
     printc("Welcome to Segue.  You have a visitor account that was created when you registered with Segue.  ");
     printc("This account will allow you to post to any public discussions ");
     printc("and view all publically accessible sites.<br /><br />");