function account_shellselects($current) { include_once 'common/user/User.class.php'; if (!$current) { $current = '/sbin/nologin'; } foreach (PFUser::getAllUnixShells() as $shell) { $selected = ''; if ($current == $shell) { $selected = ' selected="selected"'; } echo '<option value="' . $shell . '"' . $selected . '>' . $shell . '</option>' . PHP_EOL; } }