diff --git a/lam/config/print.php b/lam/config/print.php new file mode 100644 index 00000000..ce983b32 --- /dev/null +++ b/lam/config/print.php @@ -0,0 +1,27 @@ +Userinformation'; +echo '
'; +echo ''.$_SESSION['account']->personal_title .' '. $_SESSION['account']->personal_surname .' '. $_SESSION['account']->personal_givenname . ''; +echo ''.$_SESSION['account']->personal_employeeType.''; +echo ''.$_SESSION['account']->personal_street.''; +echo ''.$_SESSION['account']->personal_postalCode.$_SESSION['account']->personal_postalAddress.''; +echo '
'; +echo 'Telephone: '.$_SESSION['account']->personal_telephoneNumber.''; +echo 'Mobile Phone: '.$_SESSION['account']->personal_mobileTelephoneNumber.''; +echo 'Fax Number: '.$_SESSION['account']->personal_facsimileTelephoneNumber.''; +echo 'eMail-Address: '.$_SESSION['account']->personal_mail.''; +echo '
'; +echo 'Username: '.$_SESSION['account']->general_username.'UID-Number: '.$_SESSION['account']->general_uidNumber.''; +echo 'Unix-Password: '.$_SESSION['account']->unix_password.''; +echo 'Groupname: '.$_SESSION['account']->general_group.'GID-Number: '; +echo 'User is also member of the groups: '; +foreach ($_SESSION['account']->general_groupadd[] as $group) echo $group.' '; +echo ''; +echo 'Homedirectory: '.$_SESSION['account']->general_homedir.'Shell: '.$_SESSION['account']->general_shell.''; +echo '
'; +echo 'Windows-Password: '.$_SESSION['account']->smb_password.''; +echo 'Windows-Domain: '.$_SESSION['account']->smb_domain.''; +echo 'Allowed workstations: '.$_SESSION['account']->smb_smbuserworkstations.''; +echo 'Windows-Homedir: '.$_SESSION['account']->smb_smbhome.''; +echo ''; +?> \ No newline at end of file diff --git a/lam/templates/account.php b/lam/templates/account.php index 126ad829..16191682 100644 --- a/lam/templates/account.php +++ b/lam/templates/account.php @@ -200,32 +200,29 @@ if ( $create ) { // Create-Button was pressed switch ($_SESSION['type2']) { case 'user': $result = createuser(); // account.inc - if (1!=1) {//if ( $result==1 || $result==3 ) { + if ( $result==1 || $result==3 ) { $_SESSION['account'] = ""; $_SESSION['account_old'] = ""; $_SESSION['account_temp'] = ""; - $select = 'general'; - // Dialog anzeigen, dass Benutzer angelegt wurde und fragen, ob Daten ausgedruckt werden sollen + $select = 'finish'; } break; case 'group': $result = creategroup(); // account.inc - if (1!=1) {//if ( $result==1 || $result==3 ) { + if ( $result==1 || $result==3 ) { $_SESSION['account'] = ""; $_SESSION['account_old'] = ""; $_SESSION['account_temp'] = ""; - $select = 'general'; - // Dialog anzeigen, dass Gruppe angelegt wurde und fragen, ob Daten ausgedruckt werden sollen + $select = 'finish'; } break; case 'host': $result = createhost(); // account.inc - if (1!=1) {//if ( $result==1 || $result==3 ) { + if ( $result==1 || $result==3 ) { $_SESSION['account'] = ""; $_SESSION['account_old'] = ""; $_SESSION['account_temp'] = ""; - $select = 'general'; - // Dialog anzeigen, dass host angelegt wurde und fragen, ob Daten ausgedruckt werden sollen + $select = 'finish'; } break; } @@ -242,7 +239,8 @@ echo ' '; if (!$select) $select='general'; - +if ($createagain) $select='general'; +if ($backmain) $select='backmain'; switch ($select) { case 'general': @@ -753,6 +751,66 @@ switch ($select) { '; break; + case 'finish': + // Final Settings + echo ' + '; + switch ( $_SESSION['type2'] ) { + case 'user' : + echo ''; + include('../config/print.php'); + echo ''; + break; + case 'group' : + echo ''; + break; + case 'host' : + echo ''; + break; + } + break; + case 'backmain': + switch ( $_SESSION['type2'] ) { + case 'user' : + echo ''; + break; + case 'group' : + echo ''; + break; + case 'host' : + echo ''; + break; + } + break; } // Print end of HTML-Page
'; + echo _('Success'); + echo '
'; + echo _('User '); + echo $_SESSION['account']->general_username; + echo _('has been created'); + echo '
+ + + '; + echo _('Print'); + echo ' + +
'; + echo _('Group '); + echo $_SESSION['account']->general_username; + echo _('has been created'); + echo '
+ + + +
'; + echo _('Host '); + echo $_SESSION['account']->general_username; + echo _('has been created'); + echo '
+ + + +