_("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; } global $cluster_enabled, $cluster_nodename, $cluster_resource; $cluster_enabled = false; $cluster_nodename = ""; $cluster_resource = array(); function cluster_startelement($parser, $name, $attrs) { global $cluster_enabled, $cluster_nodename, $cluster_resource; if ($name == "CLUSTERING") { if ($attrs["STATE"] == "on") $cluster_enabled = true; else $cluster_enabled = false; } else if ($name == "NODENAME") $cluster_nodename = $attrs["VALUE"]; else if ($name == "RESOURCE") array_push($cluster_resource, $attrs["VALUE"]); } function cluster_endelement($parser, $name) { } $cluster_parser = xml_parser_create(); xml_set_element_handler($cluster_parser, "cluster_startelement", "cluster_endelement"); $cluster_fp = fopen("/opt/openfiler/etc/cluster.xml", "r"); while ($cluster_data = fread($cluster_fp, 4096)) xml_parse($cluster_parser, $cluster_data, feof($cluster_fp)); fclose($cluster_fp); xml_parser_free($cluster_parser); if ($action == "setclusterresources") { $fp = popen("/usr/bin/sudo /usr/bin/tee /opt/openfiler/etc/cluster.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.
HA cluster resources\n"); if ($cluster_enabled) print("Cluster mode is currently enabled.
\n"); else print("Cluster mode is currently disabled.
\n"); print("Node name is " . ((strlen($cluster_nodename) > 0) ? $cluster_nodename : "currently unset") . "
\n"); print("\n"); nested_tab_end(); single_end(array()); generic_footer(array()); ?>