From 43c508e585b8436cf14d492cbd01ea7551a7f8ea Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 9 Sep 2003 09:23:59 +0000 Subject: [PATCH] (#2946) removed sms notification from form --- presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php | 8 ++++---- presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php index e9d0ac4..99dbc1d 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php +++ b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php @@ -46,7 +46,7 @@ if (checkSession()) { $oAuth = new $default->authenticationClass; // user attributes to search for if ($default->authenticationClass == "DBAuthenticator") { - $aAttributes = array ("username", "name", "email", "mobile", "email_notification", "sms_notification"); + $aAttributes = array ("username", "name", "email", "mobile", "email_notification"); $bLdap = false; } else { //if its using LDAP get these attributes @@ -112,9 +112,9 @@ if (checkSession()) { } else if(isset($fAddToDb)) { // if db authentication if(isset($fFromDb)) { - $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,0,1,0); + $oUser = new User($fUsername,$fName,$fPassword,0,$fEmail,$fMobile,$fEmailNotification,false,0,1,0); } else { - $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,$fSmsNotification,$fLdap,1,0); + $oUser = new User($fUsername,$fName,0,0,$fEmail,$fMobile,$fEmailNotification,false,$fLdap,1,0); } if($oUser->create()) { @@ -131,7 +131,7 @@ if (checkSession()) { } } else { if ($default->authenticationClass == "DBAuthenticator") { - $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification", "sms_notification")); + $aAttributes = array("" => array ("username", "name", "email", "mobile", "email_notification")); $oPatternCustom->setHtml(getDetailsDBPage(null,$aAttributes)); $main->setFormAction($_SERVER["PHP_SELF"]. "?fAddToDb=1&fFromDb=1"); } else { diff --git a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc index e1b958b..8be6c85 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserUI.inc @@ -82,9 +82,6 @@ function getDetailsDBPage($sUserName, $aAttributes) { $sToRender .= "\n"; $sToRender .= "Email Notification: \n"; $sToRender .= "\n"; - $sToRender .= "\n"; - $sToRender .= "Sms Notification: \n"; - $sToRender .= "\n"; $sToRender .= "Initial Group" . getGroupListBox() . "\n"; $sToRender .= "\n"; $sToRender .= "" . getAddButton() . getCancelButton("listUsers") . ""; -- libgit2 0.21.4