//------------------------------------------------------------------------------ // Licensed Materials - Property of IBM // (c) Copyright IBM Corporation 2001,2002 All Rights Reserved. // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. //------------------------------------------------------------------------------ // User Modify // // Filename: ma_user_modify.htm // // This file displays the web UI uesrs and handles requests to modify // users. // // When POST data is recieved, operation result information is retrieved // from the POST data and displayed in the Message Box. // // // Input: POST data // url requesting page // userdata user data // libGuids lib guids // libNames lib names // libEmTypes emulation types // // Ouput: POST ('form_out') // url requesting page // userguid user guid // username username // pass password // role user role // libGuids lib guids // libNames lib names // libEmTypes emulation types // // // Change History: // // Date Defect Changed By Description of Change // ---- ------ ---------- --------------------- // 07/25/2005 rwinston File Created // //------------------------------------------------------------------------------ include('common_admin_inc.htm'); include('utils_inc.htm'); // Intialize variables $sortCriteria->sortColumn = LIB_SORT_DEFAULT; $sortCriteria->ascending = true; // for displaying message box $errorCode = 0; $displayMessage = 0; //no $loglibs = get_logical_libraries($user, $sortCriteria); // $emulationMap = get_emulation_map($user); // $mediaTypeMap = get_mediatype_map($user); $numRows = count($loglibs); if ($_SERVER['REQUEST_METHOD'] == "POST") { $url = $_REQUEST['url']; $userdata = split(":", $_REQUEST['userdata']); $libGuids = split(":", $_POST['libGuids']); $libNames = split(":", $_POST['libNames']); $libEmTypes = split(":", $_POST['libEmTypes']); $username = $userdata[0]; $userrole = $userdata[1]; $userguid = $userdata[2]; $userpass = $userdata[3]; $numLibs = count($libGuids); } $user_found = 0; $ma_users = get_all_users($user); $numUsers = count($ma_users); for ($u = 0; $u < $numUsers; $u++) { if ($userguid != $ma_users[$u]->guid) { if ($u == 0) { $usernames = $ma_users[$u]->username; } else { $usernames = $usernames. ":".$ma_users[$u]->username; } } else { $user_found = 1; } } ?>