hostname = $aHostName; $this->dhcpEnabled = $aUseDHCP; $this->ip = $aIpAddr; $this->gateway = $aGateway; $this->netmask = $aNetmask; } }; // Handle the progress screen if opened and get the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); $netInfo = new CNetInfoV4($_POST['hostname'], $_POST['useDHCP'], $_POST['ipAddress'], $_POST['gateway'], $_POST['netmask']); error_log("Setting Network with: ". $_POST['hostname'] .", ". $_POST['useDHCP'].", ".$_POST['ipAddress'].", ". $_POST['gateway'].", ". $_POST['netmask'] ); error_log("Sending: " . print_r($netInfo, true) ); set_network_configuration_ipv4($user, $netInfo ); // Only do the DNS is IPv6 is NOT enabled. if( ! $IPv6Enabled && ! isset($_POST['useDHCP']) ) { // Save the New DNS class CDns { var $dnsPrimary; var $dnsSecondary; function CDns( $aDnsPrimary, $aDnsSecondary ) { $this->dnsPrimary = $aDnsPrimary; $this->dnsSecondary = $aDnsSecondary; } }; $dns = new CDns( $_POST['dnsPrimary'], $_POST['dnsSecondary'] ); set_network_dns($user, $dns ); } //error_log("Back from extentions - waiting 30 seconds to continue:"); // Give the spawned thread a few seconds to complete so we don't refresh the page with the OLD data // This happens if the user just changes the host name or DNS without changing the IP address or DHCP // sleep( 30 ); //error_log("30 seconds is over - the progress window should show now...."); print $status->closeOut(2); // Close the Browser /* echo ""; print $status->out(); error_log("Distroying the Session in updateSoftware"); session_destroy(); unset( $_SESSION['login'] ); unset( $_SESSION['user'] ); unset( $_SESSION ); error_log("Exiting now!!!"); exit(0); */ return; } else { // Load stuff up for the first time $netConf = get_network_configuration_ipv4( $user ); error_log("netConf = ". print_r($netConf, true) ); // print_r( $netConf ); // echo "
"; // var_dump( $netConf ); $dns = get_network_dns($user); error_log("dns = ". print_r($dns, true) ); } ?> Setup Network IPv4
Setup - Network IPv4
Select DHCP to obtain an IP address automatically.
Modifying these settings will restart your network services such as web login. Logins and connections will be lost!
Select the network settings you would like to modify on the library with the hostname "hostname?>":
Select the network settings you would like to modify:

Library Name:
Use DHCP:
dhcpEnabled ) echo "checked" ?>>  
IP Address:
Subnet Mask:
Default Gateway Address:
 
Primary DNS Address:  (Optional)
Alternate DNS Address:  (Optional)