server()) { echo("\n"); exit; } // print header echo ("\n"); echo ("\n"); echo ("\n\n\n
\n"); $acct = new Account(); // get list of login shells $shelllist = file('../../config/shells'); $hells = array(); for ($i = 0; $i < sizeof($shelllist); $i++) { $shelllist[$i] = chop($shelllist[$i]); $shelllist[$i] = trim($shelllist[$i]); if ($shelllist[$i] != "") $shells[sizeof($shells)] = $shelllist[$i]; } // check if profile should be edited if ($_GET['edit']) { $acct = loadUserProfile($_GET['edit']); } // search available groups $groups = findgroups(); // display formular echo ("
\n"); // Unix part echo ("
" . _("Unix account") . "\n"); echo ("\n"); // primary group echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // additional groups echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // path to home directory echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // login shell echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // no Unix password echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // Unix: password expiry warn echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // Unix: password expiry echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // maximum password age echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // minimum password age echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // password expire date echo ("\n"); echo ("\n"); echo (""); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // deactivate account echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("
" . _("Primary group") . ": " . _("Help") . "
" . _("Additional groups") . ": " . _("Help") . "
   
" . _("Home Directory") . ": general_homedir . "\" name=\"general_homedir\">" . _("Help") . "
" . _("Login Shell") . ": " . _("Help") . "
   
" . _("Set Unix Password") . ": " . _("Help") . "
" . _("Password warning") . ": unix_pwdwarn . "\">" . _("Help") . "
" . _("Password expiry") . ": unix_pwdallowlogin . "\">" . _("Help") . "
" . _("Maximum password age") . ": unix_pwdmaxage . "\">" . _("Help") . "
" . _("Minimum password age") . ": unix_pwdminage . "\">" . _("Help") . "
" . _("Password expires on") . ": \n"); echo ("\n"); echo ("\n"); echo ("" . _("Help") . "
   
" . _("Account is deactivated") . ": " . _("Help") . "
\n"); echo ("
\n"); echo ("
"); // Samba part echo ("
" . _("Samba account") . "\n"); echo ("\n"); // no Samba password echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // use Unix password as Samba password echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // user can change his password echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // user must change his password echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // drive letter for home directory echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // path to home directory echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // path to profile echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // path to logon scripts echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // workstations echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); // empty row echo ("\n"); // domain echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("
" . _("Set Samba Password") . ": " . _("Help") . "
" . _("Set Unix Password for Samba") . ": " . _("Help") . "
" . _("User can change password") . ": " . _("Help") . "
" . _("User must change password") . ": " . _("Help") . "
   
" . _("Home drive") . ": " . _("Help") . "
" . _("Path to home directory") . ": smb_smbhome . "\" name=\"smb_smbhome\">" . _("Help") . "
" . _("Profile path") . ": smb_profilePath . "\" name=\"smb_profilepath\">" . _("Help") . "
" . _("Script path") . ": smb_scriptPath . "\" name=\"smb_scriptPath\">" . _("Help") . "
   
" . _("Workstations") . ": smb_smbuserworkstations . "\" name=\"smb_smbuserworkstations\">" . _("Help") . "
   
" . _("Domain") . ": smb_domain . "\" name=\"smb_domain\">" . _("Help") . "
\n"); echo ("
\n"); echo ("

\n"); // profile name and submit/abort buttons echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo (""); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo (""); echo ("\n"); echo ("
" . _("Profile Name") . ":" . _("Help") . "
 
\n"); echo (" 
\n"); echo ("
\n");