require_once ("/00_PHP/src/f/i/file2array.inc"); function wwwgroups2AssocArray ($groupfile) { $y = array(); $arr = file2array ($groupfile); foreach ($arr as $entry) { $lineParse = split (":", $entry); $groupName = $lineParse[0]; $members = split (" ", $lineParse[1]); if (!isset ($y[$groupName])) $y[$groupName] = array(); $y[$groupName] = array_merge ($y[$groupName], $members); } // print_r ($y); return ($y); } function stdgroups2AssocArray ($groupfile) { print ("*** Not implemented"); exit (1); } function groups2AssocArray ($groupfile, $passwdfile) { if ($passwdfile == "www") { $y = wwwgroups2AssocArray ($groupfile); } else { $y = stdgroups2AssocArray ($groupfile, $passwdfile); } return ($y); } ?>
University of Cologne
Faculty of Mathematics and Natural Sciences
Department of Mathematics and Computer Science, Division of Mathematics
Home
|
Sitemap
|
Disclaimer
|
Contact
|
A-Z
|
Deutsch
|
Location Map
All
Prospective Students
Students
Scientists
Alumni
Employees
... /
All
/
Studies
/
Information for students
/
Information for Beginners
Einführende Hinweise
Studium Integrale
Modulhandbuch B-Mathematik
Modulhandbuch B-Wirtschaftsmathematik
Calendar
Studies
Research
People
Gender
Service
© Mathematisches Institut der Universität zu Köln