From e179967151cd23f84c4f8e285bdddd6eb1a6b690 Mon Sep 17 00:00:00 2001 From: katagia Date: Fri, 12 Sep 2003 13:00:44 +0000 Subject: [PATCH] smaler link fixes --- lam/lib/account.inc | 2 ++ lam/templates/account/hostedit.php | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index ea95ad31..1b751f42 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -288,6 +288,7 @@ function checkglobal($values, $type, $values_old=false) { // This functions chec // Create automatic groupaccount with number if original user already exists while ($temp = ldapexists($return, $type, $values_old)) { // get last character of username + $return->general_username = substr($return->general_username, 0, $return->general_username-1); $lastchar = substr($return->general_username, strlen($return->general_username)-2, 1); // Last character is no number if ( !ereg('^([0-9])+$', $lastchar)) @@ -304,6 +305,7 @@ function checkglobal($values, $type, $values_old=false) { // This functions chec $lastchars = substr($return->general_username, $i+1, strlen($return->general_username)-$i); $return->general_username = $firstchars . (intval($lastchars)+1). '$'; } + $return->general_username = $return->general_username . "$"; } if ($values->general_username != $return->general_username) $errors[] = array('WARN', _('Host name'), _('Hostname already in use. Selected next free hostname.')); break; diff --git a/lam/templates/account/hostedit.php b/lam/templates/account/hostedit.php index 280c9b2d..fbf2b73d 100644 --- a/lam/templates/account/hostedit.php +++ b/lam/templates/account/hostedit.php @@ -176,7 +176,7 @@ do { // X-Or, only one if() can be true break; } if ($_POST['backmain']) { - echo "\n"; + echo "\n"; $select_local='backmain'; break; } @@ -402,9 +402,6 @@ switch ($select_local) { // Select which part of page will be loaded echo "
"._('Success')."\n"; echo "'."\n"; - echo '
"; echo '
'; - echo _('Success'); - echo '
'; echo _('Host'); echo ' '.$_SESSION['account']->general_username.' '; if ($_SESSION['account_old']) echo ' '._('has been modified').'.'; @@ -418,7 +415,7 @@ switch ($select_local) { // Select which part of page will be loaded break; case 'backmain': // unregister sessionvar and select which list should be shown - echo ''; + echo ''; echo _('Please press here if meta-refresh didn\'t work.'); echo "\n"; if (isset($_SESSION['shelllist'])) unset($_SESSION['shelllist']);