diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index ac827d9376..6e6c094935 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -1,6 +1,6 @@  -2 +8 1 pfSense Setup Wizard @@ -17,6 +17,18 @@ General Information On this screen you will set the General pfSense paramaters. + + Hostname + input + system->hostname + EXAMPLE: myserver + + + Domain + input + system->domain + EXAMPLE: mydomain.com + Primary DNS Server input @@ -24,7 +36,7 @@ yes 0 - + Secondary DNS Server input @@ -39,22 +51,25 @@ 3 - Time and Date + Time Server Information Please enter the time, date and time zone. - Date - Enter the date in MM/DD/YY format. + Time server update frequency + Enter the amount in minutes. input + system->time-update-interval - Time - Enter the time in HH:MM format. + Time server dns name + Enter the name of the time server. input + system->timeservers Timezone select + system->timezone - - system("date " . $_POST['Date'] . $_POST['Time']); - 4 @@ -1714,10 +1726,13 @@ WAN IP Address + interfaces->wan->ipaddr input + Type dhcp if this interface uses dhcp to obtain its ip address. Subnet Mask + interfaces->wan->subnet select @@ -2010,6 +2032,22 @@ ADMIN Password password + + ADMIN Password AGAIN + password + + if($_POST['adminpassword'] == $_POST['adminpasswordagain']) { + $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w"); + $salt = md5(time()); + $crypted_pw = crypt($_POST['adminpassword'],$salt); + fwrite($fd, $crypted_pw); + pclose($fd); + } else { + print_info_box_np("Passwords do not match!"); + die; + } + + Next submit @@ -2022,9 +2060,18 @@ On this screen we will reboot pfSense so your changes will take affect.. + /sbin/shutdown -r now Reboot submit + + system("/sbin/shutdown -r now"); + + + + 8 + Reboot in progress + A reboot is now in progress. \ No newline at end of file