_("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; } $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, "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("