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