_("Your account"))); dual_begin(array()); print("

" . _("Home") . " / " . _("Your account") . "

\n"); 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, "\n"); for ($i = 0; $i < count($networks_network); $i++) if (${(sha1($networks_network[$i]) . "delete")} != "on") fputs($fp, "\t\n"); if ((strlen(trim($network)) > 0) && (strlen(trim($netmask)) > 0) && (strlen(trim($name)) > 0)) fputs($fp, "\t\n"); fputs($fp, "\n"); fputs($fp, "\n"); pclose($fp); header("Location: ./general.html"); exit; } generic_header(array("title" => _("Administration Section"))); single_begin(array()); print("

" . _("Home") . " / " . _("Administration Section") . "

\n"); ?>

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"); print("\n"); print("
\n"); print("\n"); ?> \n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\n"); } $dvalue = $GLOBALS["color_table_heading"]; print("\n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\n"); print("
" align="center">Delete ">Name ">Network ">Netmask
" . htmlentities($networks_name[$i]) . "" . $networks_network[$i] . "" . $networks_netmask[$i] . "
New
\n"); print("
\n"); print("

\n"); print("
\n"); nested_tab_end(); single_end(array()); generic_footer(array()); ?>