_("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; } $serverstring = ""; $encryptedpasswords = 1; function smb_startelement($parser, $name, $attrs) { global $serverstring; global $encryptedpasswords; if ($name == "SERVERSTRING") $serverstring = $attrs["VALUE"]; else if ($name == "ENCRYPTEDPASSWORDS") $encryptedpasswords = ($attrs["VALUE"] == "on"); } function smb_endelement($parser, $name) { } $smb_parser = xml_parser_create(); xml_set_element_handler($smb_parser, "smb_startelement", "smb_endelement"); $smb_fp = fopen("/opt/openfiler/etc/smb_settings.xml", "r"); while ($smb_data = fread($smb_fp, 4096)) xml_parse($smb_parser, $smb_data, feof($smb_fp)); fclose($smb_fp); xml_parser_free($smb_parser); if ($actionnewserverstring == "Change") { $fp = popen("/usr/bin/sudo /usr/bin/tee /opt/openfiler/etc/smb_settings.xml", "w"); fputs($fp, "\n"); fputs($fp, "\n"); fputs($fp, "\t\n"); fputs($fp, "\t\n"); fputs($fp, "\n"); pclose($fp); apply_configuration(); header("Location: ./services_smb.html"); exit; } else if ($actionnewworkgroup == "Change") { $fp = popen("/usr/bin/sudo /usr/bin/tee /opt/openfiler/etc/smb_settings.xml", "w"); fputs($fp, "\n"); fputs($fp, "\n"); fputs($fp, "\t\n"); fputs($fp, "\t\n"); fputs($fp, "\n"); pclose($fp); apply_configuration(); header("Location: ./services_smb.html"); exit; } else if ($actionnewencryptedpasswords == "Change") { $fp = popen("/usr/bin/sudo /usr/bin/tee /opt/openfiler/etc/smb_settings.xml", "w"); fputs($fp, "\n"); fputs($fp, "\n"); fputs($fp, "\t\n"); fputs($fp, "\t\n"); fputs($fp, "\n"); pclose($fp); apply_configuration(); header("Location: ./services_smb.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.

SMB settings\n"); print("
\n"); print("
\n"); print("\n"); print("\n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\n"); print("\n"); print("\t\n"); print("\t\n"); print("\t\n"); print("\n"); print("
Server string
Passwords\n"); print("\t\t\n"); print("\t
\n"); print("
\n"); print("
\n"); nested_tab_end(); single_end(array()); generic_footer(array()); ?>