diff --git a/lam/index.php b/lam/index.php new file mode 100644 index 00000000..3119b57a --- /dev/null +++ b/lam/index.php @@ -0,0 +1,28 @@ + diff --git a/lam/templates/account.php b/lam/templates/account.php index a57dae3f..a2aa6631 100644 --- a/lam/templates/account.php +++ b/lam/templates/account.php @@ -26,6 +26,7 @@ $Id$ include_once('../lib/account.inc'); // File with custom functions include_once('../lib/config.inc'); include_once('../lib/ldap.inc'); +include_once('../lib/profiles.inc'); registervars(); // Register all needed variables in session and register session $error = "0"; @@ -236,6 +237,8 @@ if ($backmain) { $_SESSION['account_old']=""; } +if ($load) $select='load'; +if ($save) $select='save'; @@ -319,7 +322,9 @@ switch ($select) { if ( $_SESSION['account']->general_shell == '/usr/bin/zsh' ) echo ' /usr/bin/zsh'; else echo ' /usr/bin/zsh'; echo ''; echo _('To disable login use /bin/false.'); - echo ''; + echo ' + + '; break; case 'group': echo ''; @@ -374,12 +379,12 @@ switch ($select) { echo ' '; echo _('Host descriptopn. If left empty hostname will be used.'); - echo ''; + echo ' + + '; break; } - echo ' - - + echo ' '; break; @@ -743,9 +748,13 @@ switch ($select) { } echo ''; echo ' - - - + '; + if (($_SESSION['type2']=='user') || ($_SESSION['type2']=='host')) { + echo ''; + } + echo ' '; break; @@ -809,6 +818,26 @@ switch ($select) { break; } break; + case 'load': + switch ( $_SESSION['type2'] ) { + case 'user': + print_r (getUserProfiles()); + break; + case 'host': + print_r (getHostProfiles()); + break; + } + break; + case 'save': + switch ( $_SESSION['type2'] ) { + case 'user': + print_r (getUserProfiles()); + break; + case 'host': + print_r (getUserProfiles()); + break; + } + break; } // Print end of HTML-Page