_("Your account"))); dual_begin(array()); print("
" . _("You have not authenticated yourself to the system yet with your") . " " . _("username") . " " . _("and") . " " . _("password") . ". " . _("You will not be able to use this section of the website without authenticating yourself first. So, please continue and login using the form on the right hand side.") . "
\n"); dual_middle(array()); show_account_details(array()); dual_end(array()); generic_footer(array()); exit; } $networks_count = 0; $networks_name = array(); $networks_network = array(); $networks_netmask = array(); function network_startelement($parser, $name, $attrs) { global $networks_count, $networks_name, $networks_network, $networks_netmask; if ($name == "NETWORK") { $networks_name[$networks_count] = $attrs["NAME"]; $networks_network[$networks_count] = $attrs["NETWORK"]; $networks_netmask[$networks_count] = $attrs["NETMASK"]; $networks_count++; } } function network_endelement($parser, $name) { } if (is_file("/opt/openfiler/etc/networks.xml")) { $network_parser = xml_parser_create(); xml_set_element_handler($network_parser, "network_startelement", "network_endelement"); $network_fp = fopen("/opt/openfiler/etc/networks.xml", "r"); while ($network_data = fread($network_fp, 4096)) xml_parse($network_parser, $network_data, feof($network_fp)); fclose($network_fp); xml_parser_free($network_parser); } if ($action == "setnetworks") { $fp = popen("/usr/bin/sudo /usr/bin/tee /opt/openfiler/etc/networks.xml", "w"); fputs($fp, "\n"); fputs($fp, "Welcome Administrator. The following are various system information and preferences, arranged into tabs. Please click on a tab to open up that category.
Local networks configuration\n"); print("\n"); nested_tab_end(); single_end(array()); generic_footer(array()); ?>