diff options
Diffstat (limited to 'packages/freenas/www/services_rsyncd.php')
-rw-r--r-- | packages/freenas/www/services_rsyncd.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/freenas/www/services_rsyncd.php b/packages/freenas/www/services_rsyncd.php index ea85202d..a8b34b4c 100644 --- a/packages/freenas/www/services_rsyncd.php +++ b/packages/freenas/www/services_rsyncd.php @@ -42,12 +42,12 @@ require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); /* TODO: use pfSense users/groups. */ -if (!is_array($freenas_config['access']['user'])) - $freenas_config['access']['user'] = array(); +if (!is_array($freenas_config['system']['user'])) + $freenas_config['system']['user'] = array(); users_sort(); -$a_user = &$freenas_config['access']['user']; +$a_user = &$freenas_config['system']['user']; if (!is_array($freenas_config['rsync'])) { @@ -212,8 +212,8 @@ echo $pfSenseHead->getHTML(); <option value="ftp"<?php if ($pconfig['rsyncd_user'] == "ftp") echo "selected";?>> <?php echo htmlspecialchars("guest"); ?> <?php foreach ($a_user as $user): ?> - <option value="<?=$user['login'];?>"<?php if ($user['login'] == $pconfig['rsyncd_user']) echo "selected";?>> - <?php echo htmlspecialchars($user['login']); ?> + <option value="<?=$user['name'];?>"<?php if ($user['name'] == $pconfig['rsyncd_user']) echo "selected";?>> + <?php echo htmlspecialchars($user['name']); ?> </option> <?php endforeach; ?> </select> |